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.001571/0.001571, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001894/0.001894, allocations: 192.8 kB / 16.53 MB, free: 6.391 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.401/1.401, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.1506/0.1506, allocations: 3.884 MB / 294.3 MB, free: 3.266 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001968/0.001968, allocations: 63.89 kB / 355.5 MB, free: 3.617 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1384/0.1404, allocations: 50.18 MB / 405.6 MB, free: 1.395 MB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.FaultTrigger): time 0.002808/0.1432, allocations: 0.7743 MB / 406.4 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009364/0.1442, allocations: 370.7 kB / 406.8 MB, free: 260 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.951e-05/0.1443, allocations: 4 kB / 406.8 MB, free: 256 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001138/0.1444, allocations: 15.8 kB / 406.8 MB, free: 240 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.862e-05/0.1445, allocations: 3.938 kB / 406.8 MB, free: 236 kB / 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.0006119/0.1451, allocations: 99.7 kB / 406.9 MB, free: 136 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001508/0.1453, allocations: 55.84 kB / 407 MB, free: 80 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001286/0.1454, allocations: 16.17 kB / 407 MB, free: 60 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.44e-05/0.1455, allocations: 23.88 kB / 407 MB, free: 36 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.728e-05/0.1456, allocations: 35.89 kB / 407 MB, free: 0 / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.192e-05/0.1456, allocations: 4.047 kB / 407 MB, free: 15.99 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002415/0.1459, allocations: 83.88 kB / 407.1 MB, free: 15.91 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.089e-05/0.1459, allocations: 11.92 kB / 407.1 MB, free: 15.9 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.666e-05/0.146, allocations: 35.8 kB / 407.2 MB, free: 15.87 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002819/0.1463, allocations: 115.7 kB / 407.3 MB, free: 15.75 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.1463, allocations: 0 / 407.3 MB, free: 15.75 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.405e-06/0.1463, allocations: 0 / 407.3 MB, free: 15.75 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.751e-06/0.1463, allocations: 0 / 407.3 MB, free: 15.75 MB / 350.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.0006274/0.147, allocations: 391.6 kB / 407.7 MB, free: 15.32 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.702e-05/0.147, allocations: 12.03 kB / 407.7 MB, free: 15.31 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.283e-05/0.1471, allocations: 8.844 kB / 407.7 MB, free: 15.3 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002112/0.1473, allocations: 184.3 kB / 407.9 MB, free: 15.09 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.44e-05/0.1473, allocations: 384 / 407.9 MB, free: 15.09 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.784e-05/0.1474, allocations: 16.31 kB / 407.9 MB, free: 15.07 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002268/0.1476, allocations: 78.09 kB / 408 MB, free: 14.99 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.169e-05/0.1476, allocations: 3.938 kB / 408 MB, free: 14.98 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.703e-05/0.1477, allocations: 4 kB / 408 MB, free: 14.98 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.771e-06/0.1477, allocations: 0 / 408 MB, free: 14.98 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001611/0.1479, allocations: 35.97 kB / 408 MB, free: 14.95 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000849/0.1487, allocations: 328.6 kB / 408.3 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002335/0.149, allocations: 54.5 kB / 408.4 MB, free: 14.51 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.422e-05/0.1491, allocations: 20.91 kB / 408.4 MB, free: 14.49 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.227e-05/0.1491, allocations: 0 / 408.4 MB, free: 14.49 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002412/0.1493, allocations: 71.39 kB / 408.5 MB, free: 14.41 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 2.164e-06/0.1494, allocations: 0 / 408.5 MB, free: 14.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003725/0.1497, allocations: 105.5 kB / 408.6 MB, free: 14.3 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.1e-05/0.1498, allocations: 51.41 kB / 408.6 MB, free: 14.23 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001471/0.15, allocations: 140 kB / 408.8 MB, free: 14.09 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.094e-05/0.15, allocations: 33.7 kB / 408.8 MB, free: 14.05 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.853e-05/0.1501, allocations: 95.94 kB / 408.9 MB, free: 13.95 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.547e-05/0.1501, allocations: 15.81 kB / 408.9 MB, free: 13.94 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.971e-05/0.1502, allocations: 37.7 kB / 408.9 MB, free: 13.89 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001528/0.1504, allocations: 322.8 kB / 409.2 MB, free: 13.57 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.749e-05/0.1505, allocations: 23.98 kB / 409.3 MB, free: 13.55 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001444/0.1507, allocations: 62 kB / 409.3 MB, free: 13.46 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004332/0.1511, allocations: 133.8 kB / 409.5 MB, free: 13.31 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.1511, allocations: 0 / 409.5 MB, free: 13.31 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000346/0.1515, allocations: 125.5 kB / 409.6 MB, free: 13.18 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.742e-05/0.1515, allocations: 4 kB / 409.6 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.112e-05/0.1515, allocations: 7.984 kB / 409.6 MB, free: 13.17 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.553e-05/0.1516, allocations: 0 / 409.6 MB, free: 13.17 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001232/0.1517, allocations: 19.94 kB / 409.6 MB, free: 13.15 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.865e-06/0.1517, allocations: 0 / 409.6 MB, free: 13.15 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001068/0.1518, allocations: 31.7 kB / 409.6 MB, free: 13.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.462e-05/0.1518, allocations: 4 kB / 409.6 MB, free: 13.12 MB / 350.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.0001939/0.1521, allocations: 134.4 kB / 409.8 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.495e-05/0.1521, allocations: 7.906 kB / 409.8 MB, free: 12.97 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.644e-05/0.1521, allocations: 12.36 kB / 409.8 MB, free: 12.96 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.425e-06/0.1521, allocations: 0 / 409.8 MB, free: 12.96 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.517e-05/0.1522, allocations: 0 / 409.8 MB, free: 12.96 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.598e-06/0.1522, allocations: 7.938 kB / 409.8 MB, free: 12.95 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006242/0.1528, allocations: 338.6 kB / 410.1 MB, free: 12.56 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.918e-06/0.1528, allocations: 8 kB / 410.1 MB, free: 12.55 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.556e-05/0.1529, allocations: 0 / 410.1 MB, free: 12.55 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.1529, allocations: 4 kB / 410.2 MB, free: 12.55 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.728e-05/0.153, allocations: 11.88 kB / 410.2 MB, free: 12.54 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.137e-06/0.153, allocations: 3.938 kB / 410.2 MB, free: 12.54 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.153, allocations: 0 / 410.2 MB, free: 12.54 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003795/0.1534, allocations: 191.4 kB / 410.4 MB, free: 12.33 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.515e-05/0.1534, allocations: 84.95 kB / 410.4 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.458e-05/0.1535, allocations: 16.02 kB / 410.5 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001217/0.1536, allocations: 4 kB / 410.5 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.39e-05/0.1537, allocations: 4 kB / 410.5 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.843e-05/0.1537, allocations: 3.984 kB / 410.5 MB, free: 12.2 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.257e-05/0.1538, allocations: 101.8 kB / 410.6 MB, free: 12.11 MB / 350.1 MB Notification: Performance of sort global known variables: time 4.81e-07/0.1538, allocations: 4 kB / 410.6 MB, free: 12.1 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005266/0.1544, allocations: 32.12 kB / 410.6 MB, free: 12.07 MB / 350.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.0005182/0.1549, allocations: 197.3 kB / 410.8 MB, free: 11.9 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002983/0.1552, allocations: 75.83 kB / 410.9 MB, free: 11.82 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.1552, allocations: 0 / 410.9 MB, free: 11.82 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.503e-05/0.1553, allocations: 20.3 kB / 410.9 MB, free: 11.8 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004331/0.1558, allocations: 23.92 kB / 410.9 MB, free: 11.78 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005986/0.1564, allocations: 178.3 kB / 411.1 MB, free: 11.58 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003431/0.1567, allocations: 0.7 MB / 411.8 MB, free: 10.86 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.784e-05/0.1568, allocations: 12.42 kB / 411.8 MB, free: 10.84 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.969e-05/0.1569, allocations: 15.42 kB / 411.8 MB, free: 10.83 MB / 350.1 MB Notification: Performance of SimCode: time 3e-07/0.1569, allocations: 0 / 411.8 MB, free: 10.83 MB / 350.1 MB Notification: Performance of Templates: time 0.005801/0.1627, allocations: 1.408 MB / 413.2 MB, free: 9.426 MB / 350.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)