scram --help--validate Validate input files without analysis
--verbosity int Set log verbosityHi,
For my work, i try to use scram for doing a calculation. when i use a small tree as xml file,I got a nice result. But when the file is bigger it's cause a trouble like this for example:
First i compile the file : (i don't success to use the configuration mode when i want to compile, so i did it directly wihtout the configuration file)
scram example9601-basic-event.xml example9601.xlm>result_file.xml.
After the execution , i have as a result:
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
Abandon.
This kind of trouble dont't let me to work with scram when i want to use a big xml file for doing calculation.
So my question is: what can I do to resolve or to avoid this kind of problem? And how can we get a more lighter file containing the result?
scram example9601-basic-event.xml example9601.xlm>result_file.xml.
This is indeed a demanding non-coherent model with over 10 million resultant products.
--
You received this message because you are subscribed to the Google Groups "SCRAM Support and User Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scram-users+unsubscribe@googlegroups.com.
To post to this group, send email to scram...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scram-users/fca9a918-ebd9-4ab6-b597-93ea53dd0220%40googlegroups.com.
To gain experience I tried to open above file in scram-gui and received this error message.Initialization Error
scram error: in file '/home/dl/scram-develop/inputCEA9601/CEA9601.xml', line 23:
Undefined basic-event e1 with base path cea9601
About the scram-gui +file name , I could not launch this command, i got each time a message who said that this command in not found . Moreover, i tried to document myself (http://scram.readthedocs.io/en/latest/doc/gui.html)more about how to launch or install scram-gui but finaly I don't success to launch it. So I don't really know how to do .
scram example9601-basic-event.xml example9601.xlm > result_file.xmlscram CEA9601-basic-events.xml CEA9601.xml > result_file.xmlhistory | tailxmllint --noout your_test_file.xml; echo $?split -b 100k result_file.xmlDevelopment NotesIt certainly is a stress test but useful to understand what breaks.
XMLCopyEditor could not open the result_file.xml.
I searched for an editor to open large (1.6 GB) result_file.xml
https://askubuntu.com/questions/28847/text-editor-to-edit-large-4-3-gb-plain-text-file
I chose to install glogg 1.1.0-1 log viewer (which is in Ubuntu 16.04 software centre and easy to install) and used that to view result_file.xml. The glogg tool launched from terminal took a few minutes to index all the file.
glogg reported 53,688,649 lines indexed.
I navigated to the end of viewed result_ file.xml and line 53,688,649 was broken ..
so it seems that the scram process had not completed.
I saw errors in glogg terminal as reported here ...
https://github.com/nickbnf/glogg/issues/117
I have not yet built v1.1.4 which cures that bug.Another approach tried was using split command which works.split -b 100k result_file.xml
I will now look for a more representative model to test my ongoing workflow.OP still has a problem using scram-gui.
Thanks for insights.
I didn't mean a plain text editor. You can use vi/less or other simple text editor/viewer without much problem.Processing any large XML with XML specific tools like BaseX, libxml2 DOM, vim/emacs with XML pluginspretty much futile.I want to emphasize this once more. SCRAM is not broken.I am pretty sure none of you waited 6 minutes with 26 GB of spare disk space for the reporting to finish.I bet OP hasn't even installed scram-gui in the first place to start having problems.
qmake --versionqmake --version
QMake version 3.0
Using Qt version 5.5.1 in /usr/lib/x86_64-linux-gnuscram --helpscram --help
Usage: scram [options] input-files...
Options:
--help Display this help message
--version Display version information
--config-file path XML file with analysis configurations
--validate Validate input files without analysis
--bdd Perform qualitative analysis with BDD
--zbdd Perform qualitative analysis with ZBDD
--mocus Perform qualitative analysis with MOCUS
--prime-implicants Calculate prime implicants
--probability bool Perform probability analysis
--importance bool Perform importance analysis
--uncertainty bool Perform uncertainty analysis
--ccf bool Perform common-cause failure analysis
--sil bool Compute the Safety Integrity Level metrics
--rare-event Use the rare event approximation
--mcub Use the MCUB approximation
-l [ --limit-order ] int Upper limit for the product order
--cut-off double Cut-off probability for products
--mission-time double System mission time in hours
--time-step double Time step in hours for probability analysis
--num-trials int Number of trials for Monte Carlo simulations
--num-quantiles int Number of quantiles for distributions
--num-bins int Number of bins for histograms
--seed int Seed for the pseudo-random number generator
-o [ --output-path ] path Output path for reports
--verbosity int Set log verbosity --config-file path XML file with analysis configurations
scram --config-file config_CEA9601.xml > results.xmlscram --versionSCRAM 0.13.0 ()
Dependencies:
Boost 1_58
libxml++ 2.40.1
libxml2 2.9.3
run scram
Option error: the argument ('--config-file') for option '--verbosity' is invalid
Usage: scram [options] input-files...