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.001364/0.001364, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001812/0.001812, allocations: 191.2 kB / 16.25 MB, free: 6.641 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.309/1.309, allocations: 222.9 MB / 239.9 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.1243/0.1243, allocations: 3.89 MB / 294 MB, free: 3.285 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0012/0.0012, allocations: 59.91 kB / 355 MB, free: 3.984 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1076, allocations: 50.18 MB / 405.1 MB, free: 1.766 MB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.FaultTrigger): time 0.002234/0.1099, allocations: 0.8713 MB / 406 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.000709/0.1106, allocations: 366.8 kB / 406.4 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.254e-05/0.1107, allocations: 11.88 kB / 406.4 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 9.54e-05/0.1108, allocations: 7.938 kB / 406.4 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 3.943e-05/0.1109, allocations: 0 / 406.4 MB, free: 0.5117 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.0004118/0.1113, allocations: 87.78 kB / 406.5 MB, free: 436 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 9.32e-05/0.1114, allocations: 55.91 kB / 406.5 MB, free: 380 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.972e-05/0.1115, allocations: 16.17 kB / 406.5 MB, free: 360 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.001e-05/0.1115, allocations: 19.88 kB / 406.6 MB, free: 340 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.769e-05/0.1116, allocations: 31.89 kB / 406.6 MB, free: 308 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.456e-05/0.1116, allocations: 4 kB / 406.6 MB, free: 304 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001482/0.1117, allocations: 91.78 kB / 406.7 MB, free: 212 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.945e-05/0.1118, allocations: 15.94 kB / 406.7 MB, free: 196 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.806e-05/0.1118, allocations: 35.8 kB / 406.7 MB, free: 160 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001707/0.112, allocations: 115.7 kB / 406.9 MB, free: 44 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.112, allocations: 0 / 406.9 MB, free: 44 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.112, allocations: 0 / 406.9 MB, free: 44 kB / 334.1 MB Notification: Performance of Transformations before backend: time 4.148e-06/0.112, allocations: 0 / 406.9 MB, free: 44 kB / 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.0004729/0.1125, allocations: 383.6 kB / 407.2 MB, free: 15.62 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.108e-05/0.1125, allocations: 12.03 kB / 407.2 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.838e-05/0.1126, allocations: 8.844 kB / 407.3 MB, free: 15.6 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001478/0.1127, allocations: 184.2 kB / 407.4 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.321e-05/0.1127, allocations: 12.38 kB / 407.4 MB, free: 15.37 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.03e-05/0.1128, allocations: 12.3 kB / 407.5 MB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001546/0.1129, allocations: 70.23 kB / 407.5 MB, free: 15.29 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.428e-06/0.113, allocations: 7.938 kB / 407.5 MB, free: 15.28 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.316e-05/0.113, allocations: 4 kB / 407.5 MB, free: 15.27 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.447e-06/0.113, allocations: 0 / 407.5 MB, free: 15.27 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001008/0.1131, allocations: 31.97 kB / 407.6 MB, free: 15.24 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006136/0.1137, allocations: 336.5 kB / 407.9 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001547/0.1139, allocations: 54.62 kB / 407.9 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.774e-05/0.1139, allocations: 20.84 kB / 408 MB, free: 14.78 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.047e-05/0.1139, allocations: 0 / 408 MB, free: 14.78 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000172/0.1141, allocations: 79.31 kB / 408 MB, free: 14.69 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.262e-06/0.1141, allocations: 0 / 408 MB, free: 14.69 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002501/0.1144, allocations: 97.56 kB / 408.1 MB, free: 14.59 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.572e-05/0.1144, allocations: 51.41 kB / 408.2 MB, free: 14.52 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.509e-05/0.1145, allocations: 137.7 kB / 408.3 MB, free: 14.38 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.68e-05/0.1146, allocations: 29.7 kB / 408.4 MB, free: 14.34 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.544e-05/0.1146, allocations: 99.94 kB / 408.5 MB, free: 14.24 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.544e-05/0.1146, allocations: 15.81 kB / 408.5 MB, free: 14.23 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.496e-05/0.1147, allocations: 37.7 kB / 408.5 MB, free: 14.18 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.333e-05/0.1148, allocations: 318.8 kB / 408.8 MB, free: 13.86 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.956e-05/0.1149, allocations: 23.98 kB / 408.8 MB, free: 13.84 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.588e-05/0.115, allocations: 77.11 kB / 408.9 MB, free: 13.75 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002875/0.1153, allocations: 122.2 kB / 409 MB, free: 13.61 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.1153, allocations: 0 / 409 MB, free: 13.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002224/0.1155, allocations: 133.4 kB / 409.2 MB, free: 13.47 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.44e-05/0.1155, allocations: 6.5 kB / 409.2 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.1155, allocations: 3.938 kB / 409.2 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.268e-05/0.1155, allocations: 8.156 kB / 409.2 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.658e-05/0.1156, allocations: 20.05 kB / 409.2 MB, free: 13.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.045e-05/0.1156, allocations: 7.922 kB / 409.2 MB, free: 13.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.986e-05/0.1157, allocations: 19.77 kB / 409.2 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.067e-05/0.1157, allocations: 8 kB / 409.2 MB, free: 13.4 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.0001302/0.1159, allocations: 121.8 kB / 409.4 MB, free: 13.27 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.464e-05/0.1159, allocations: 7.906 kB / 409.4 MB, free: 13.26 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.442e-05/0.1159, allocations: 20.36 kB / 409.4 MB, free: 13.24 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.1159, allocations: 0 / 409.4 MB, free: 13.24 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.1159, allocations: 0 / 409.4 MB, free: 13.24 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.11e-06/0.116, allocations: 3.938 kB / 409.4 MB, free: 13.24 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004026/0.1164, allocations: 350.4 kB / 409.7 MB, free: 12.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.1164, allocations: 0 / 409.7 MB, free: 12.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.841e-05/0.1164, allocations: 8 kB / 409.7 MB, free: 12.83 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.1164, allocations: 0 / 409.7 MB, free: 12.83 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.464e-05/0.1165, allocations: 7.938 kB / 409.7 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/0.1165, allocations: 8 kB / 409.8 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.1165, allocations: 0 / 409.8 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002436/0.1167, allocations: 191.4 kB / 409.9 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.573e-05/0.1168, allocations: 89.05 kB / 410 MB, free: 12.51 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.932e-05/0.1168, allocations: 7.922 kB / 410 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.902e-05/0.1169, allocations: 4 kB / 410 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.618e-05/0.1169, allocations: 0 / 410 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.417e-05/0.1169, allocations: 8.047 kB / 410 MB, free: 12.49 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.676e-05/0.117, allocations: 103.3 kB / 410.1 MB, free: 12.39 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.117, allocations: 0 / 410.1 MB, free: 12.39 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002872/0.1173, allocations: 32 kB / 410.2 MB, free: 12.36 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.0003522/0.1176, allocations: 190.4 kB / 410.4 MB, free: 12.19 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001847/0.1178, allocations: 67.84 kB / 410.4 MB, free: 12.12 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.1178, allocations: 4 kB / 410.4 MB, free: 12.12 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.899e-05/0.1179, allocations: 19.98 kB / 410.5 MB, free: 12.1 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002505/0.1182, allocations: 15.97 kB / 410.5 MB, free: 12.09 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004127/0.1186, allocations: 198.5 kB / 410.7 MB, free: 11.87 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002344/0.1188, allocations: 0.7 MB / 411.4 MB, free: 11.14 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.927e-05/0.1189, allocations: 16.42 kB / 411.4 MB, free: 11.12 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.421e-05/0.1189, allocations: 11.44 kB / 411.4 MB, free: 11.11 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1189, allocations: 0 / 411.4 MB, free: 11.11 MB / 350.1 MB Notification: Performance of Templates: time 0.003877/0.1228, allocations: 1.405 MB / 412.8 MB, free: 9.715 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)