Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AdvancedNoise_AdvancedNoise.Examples.FaultTrigger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo", uses=false) Using package AdvancedNoise with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(AdvancedNoise.Examples.FaultTrigger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="AdvancedNoise_AdvancedNoise.Examples.FaultTrigger") translateModel(AdvancedNoise.Examples.FaultTrigger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="AdvancedNoise_AdvancedNoise.Examples.FaultTrigger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001231/0.001231, allocations: 104.2 kB / 16.4 MB, free: 6.465 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001216/0.001216, allocations: 192.2 kB / 17.34 MB, free: 5.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.272/1.272, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.02504/0.02504, allocations: 3.909 MB / 295.1 MB, free: 11.03 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002031/0.002031, allocations: 63.09 kB / 407.6 MB, free: 28.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08407/0.08612, allocations: 50.18 MB / 457.8 MB, free: 10.02 MB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.FaultTrigger): time 0.001686/0.08782, allocations: 0.7776 MB / 458.5 MB, free: 9.242 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006957/0.08853, allocations: 378.8 kB / 458.9 MB, free: 8.871 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.442e-05/0.08859, allocations: 0 / 458.9 MB, free: 8.871 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 8.18e-05/0.08869, allocations: 7.875 kB / 458.9 MB, free: 8.863 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.052e-05/0.08874, allocations: 7.875 kB / 458.9 MB, free: 8.855 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Math/Random.mo:1057:5-1146:31:writable] Warning: Pure function 'Modelica.Math.Random.Utilities.initializeImpureRandom' contains a call to impure function 'Modelica.Math.Random.Utilities.initializeImpureRandom.setInternalState'. Notification: Performance of NFTyping.typeClassSections: time 0.0004306/0.08918, allocations: 99.7 kB / 459 MB, free: 8.758 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001105/0.0893, allocations: 67.77 kB / 459.1 MB, free: 8.691 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.12e-05/0.08938, allocations: 16.19 kB / 459.1 MB, free: 8.672 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.587e-05/0.08943, allocations: 19.92 kB / 459.1 MB, free: 8.652 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.208e-05/0.0895, allocations: 27.86 kB / 459.2 MB, free: 8.625 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.521e-05/0.08952, allocations: 4 kB / 459.2 MB, free: 8.621 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001711/0.08969, allocations: 87.84 kB / 459.2 MB, free: 8.535 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.529e-05/0.08973, allocations: 23.91 kB / 459.3 MB, free: 8.512 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.837e-05/0.08977, allocations: 19.88 kB / 459.3 MB, free: 8.492 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002008/0.08998, allocations: 127.6 kB / 459.4 MB, free: 8.367 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.984e-06/0.08999, allocations: 0 / 459.4 MB, free: 8.367 MB / 334.1 MB Notification: Performance of FrontEnd: time 6.41e-07/0.09, allocations: 0 / 459.4 MB, free: 8.367 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.248e-06/0.09001, allocations: 0 / 459.4 MB, free: 8.367 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0004743/0.09048, allocations: 387.3 kB / 459.8 MB, free: 7.941 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.456e-05/0.09053, allocations: 8.031 kB / 459.8 MB, free: 7.934 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.173e-05/0.09057, allocations: 8.844 kB / 459.8 MB, free: 7.926 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001845/0.09076, allocations: 188.2 kB / 460 MB, free: 7.703 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.246e-05/0.0908, allocations: 20.3 kB / 460 MB, free: 7.684 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.154e-05/0.09083, allocations: 4.375 kB / 460 MB, free: 7.68 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001656/0.091, allocations: 70.22 kB / 460.1 MB, free: 7.605 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.007e-06/0.09102, allocations: 3.938 kB / 460.1 MB, free: 7.602 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.38e-05/0.09104, allocations: 4 kB / 460.1 MB, free: 7.598 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.158e-06/0.09105, allocations: 0 / 460.1 MB, free: 7.598 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001027/0.09116, allocations: 31.98 kB / 460.1 MB, free: 7.566 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006305/0.09179, allocations: 336.5 kB / 460.4 MB, free: 7.188 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001641/0.09197, allocations: 54.62 kB / 460.5 MB, free: 7.125 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.034e-05/0.09203, allocations: 20.84 kB / 460.5 MB, free: 7.102 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.042e-05/0.09205, allocations: 0 / 460.5 MB, free: 7.102 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001295/0.09219, allocations: 75.33 kB / 460.6 MB, free: 7.016 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.332e-06/0.0922, allocations: 0 / 460.6 MB, free: 7.016 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.00027/0.09248, allocations: 101.5 kB / 460.7 MB, free: 6.91 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.962e-05/0.09253, allocations: 51.41 kB / 460.7 MB, free: 6.848 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001135/0.09265, allocations: 137.7 kB / 460.9 MB, free: 6.703 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.389e-05/0.09268, allocations: 33.7 kB / 460.9 MB, free: 6.664 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.003e-05/0.09274, allocations: 99.89 kB / 461 MB, free: 6.562 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.844e-05/0.09277, allocations: 15.8 kB / 461 MB, free: 6.547 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.584e-05/0.09283, allocations: 33.7 kB / 461.1 MB, free: 6.508 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001162/0.09295, allocations: 318.8 kB / 461.4 MB, free: 6.188 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.839e-05/0.09303, allocations: 27.98 kB / 461.4 MB, free: 6.16 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.469e-05/0.09313, allocations: 76.39 kB / 461.5 MB, free: 6.066 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002983/0.09343, allocations: 122.2 kB / 461.6 MB, free: 5.926 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.09345, allocations: 0 / 461.6 MB, free: 5.926 MB / 334.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002457/0.0937, allocations: 129.4 kB / 461.7 MB, free: 5.793 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.253e-05/0.09372, allocations: 4 kB / 461.7 MB, free: 5.789 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.152e-06/0.09373, allocations: 4 kB / 461.7 MB, free: 5.785 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.275e-05/0.09375, allocations: 160 / 461.7 MB, free: 5.785 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.653e-05/0.09384, allocations: 27.92 kB / 461.8 MB, free: 5.758 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.816e-06/0.09386, allocations: 7.938 kB / 461.8 MB, free: 5.75 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.526e-05/0.09393, allocations: 15.84 kB / 461.8 MB, free: 5.734 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.13e-05/0.09394, allocations: 7.984 kB / 461.8 MB, free: 5.727 MB / 334.1 MB Warning: Assuming fixed start value for the following 1 variables: faultTrigger.F:VARIABLE(min = 0.0 max = 1.0 fixed = true ) "The current probability to have failed already" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 13 ($PRE.faultTrigger.y,$whenCondition1,countFaults.y,$PRE.countFaults.y,globalSeed.id_impure,globalSeed.seed,faultTrigger.r,faultTrigger.y,$whenCondition2,one.y,faultTrigger.reset,countFaults.local_set,countFaults.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001134/0.09406, allocations: 126.3 kB / 461.9 MB, free: 5.594 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.357e-05/0.09409, allocations: 7.906 kB / 461.9 MB, free: 5.586 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.754e-05/0.09412, allocations: 12.38 kB / 461.9 MB, free: 5.574 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.943e-06/0.09413, allocations: 0 / 461.9 MB, free: 5.574 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.618e-06/0.09414, allocations: 4 kB / 461.9 MB, free: 5.57 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/0.09415, allocations: 7.922 kB / 461.9 MB, free: 5.562 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004178/0.09457, allocations: 338.5 kB / 462.3 MB, free: 5.176 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.085e-06/0.09459, allocations: 7.984 kB / 462.3 MB, free: 5.168 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.152e-05/0.09465, allocations: 7.984 kB / 462.3 MB, free: 5.16 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.09466, allocations: 0 / 462.3 MB, free: 5.16 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.426e-05/0.09468, allocations: 7.938 kB / 462.3 MB, free: 5.152 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.09468, allocations: 0 / 462.3 MB, free: 5.152 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.09469, allocations: 4 kB / 462.3 MB, free: 5.148 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002526/0.09495, allocations: 199.3 kB / 462.5 MB, free: 4.938 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.523e-05/0.095, allocations: 81.02 kB / 462.6 MB, free: 4.84 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.208e-05/0.09503, allocations: 11.97 kB / 462.6 MB, free: 4.828 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.847e-05/0.09511, allocations: 7.984 kB / 462.6 MB, free: 4.82 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.736e-05/0.09515, allocations: 4 kB / 462.6 MB, free: 4.816 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.222e-05/0.09516, allocations: 4 kB / 462.6 MB, free: 4.812 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.406e-05/0.09522, allocations: 103.3 kB / 462.7 MB, free: 4.711 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.09523, allocations: 0 / 462.7 MB, free: 4.711 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002959/0.09553, allocations: 36.11 kB / 462.7 MB, free: 4.676 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (faultTrigger.F) * Number of discrete variables: 5 ($whenCondition2,$whenCondition1,faultTrigger.y,faultTrigger.r,countFaults.y) * Number of discrete states: 2 (faultTrigger.y,countFaults.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003255/0.09586, allocations: 189.8 kB / 462.9 MB, free: 4.512 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001894/0.09606, allocations: 71.84 kB / 463 MB, free: 4.441 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.09608, allocations: 0 / 463 MB, free: 4.441 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.208e-05/0.09615, allocations: 23.92 kB / 463 MB, free: 4.418 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002682/0.09643, allocations: 14.03 kB / 463 MB, free: 4.406 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004114/0.09685, allocations: 208.2 kB / 463.2 MB, free: 4.172 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002288/0.09709, allocations: 0.6922 MB / 463.9 MB, free: 3.453 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.882e-05/0.09713, allocations: 19.44 kB / 463.9 MB, free: 3.434 MB / 334.1 MB Notification: Performance of SimCode: time 3.1e-07/0.09713, allocations: 0 / 463.9 MB, free: 3.434 MB / 334.1 MB Notification: Performance of Templates: time 0.003289/0.1004, allocations: 1.687 MB / 465.6 MB, free: 1.742 MB / 334.1 MB make -j1 -f AdvancedNoise_AdvancedNoise.Examples.FaultTrigger.makefile (rm -f AdvancedNoise_AdvancedNoise.Examples.FaultTrigger.pipe ; mkfifo AdvancedNoise_AdvancedNoise.Examples.FaultTrigger.pipe ; head -c 1048576 < AdvancedNoise_AdvancedNoise.Examples.FaultTrigger.pipe >> ../files/AdvancedNoise_AdvancedNoise.Examples.FaultTrigger.sim & ./AdvancedNoise_AdvancedNoise.Examples.FaultTrigger -abortSlowSimulation -alarm=480 -lv LOG_STATS > AdvancedNoise_AdvancedNoise.Examples.FaultTrigger.pipe 2>&1)