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.0009212/0.0009213, allocations: 92 kB / 15.36 MB, free: 0.7383 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.005866/0.005866, allocations: 170.2 kB / 16.26 MB, free: 6.613 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.46/1.46, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.1971/0.1971, allocations: 3.879 MB / 295.3 MB, free: 3.941 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004585/0.0004582, allocations: 12 kB / 357.3 MB, free: 3.188 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1187/0.1192, allocations: 51.17 MB / 408.4 MB, free: 15.98 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.FaultTrigger): time 0.0009795/0.1202, allocations: 0.5183 MB / 408.9 MB, free: 15.46 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000761/0.121, allocations: 374.8 kB / 409.3 MB, free: 15.09 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.304e-05/0.1211, allocations: 4 kB / 409.3 MB, free: 15.09 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 8.255e-05/0.1211, allocations: 7.938 kB / 409.3 MB, free: 15.08 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.359e-05/0.1212, allocations: 7.938 kB / 409.3 MB, free: 15.07 MB / 350.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.0003722/0.1216, allocations: 71.84 kB / 409.4 MB, free: 15 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001092/0.1217, allocations: 55.84 kB / 409.4 MB, free: 14.95 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.095e-05/0.1218, allocations: 12.19 kB / 409.5 MB, free: 14.93 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.258e-05/0.1218, allocations: 23.86 kB / 409.5 MB, free: 14.91 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.23e-05/0.1219, allocations: 27.84 kB / 409.5 MB, free: 14.88 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.331e-05/0.1219, allocations: 4 kB / 409.5 MB, free: 14.88 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001525/0.1221, allocations: 87.78 kB / 409.6 MB, free: 14.79 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.865e-05/0.1221, allocations: 8 kB / 409.6 MB, free: 14.79 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.968e-05/0.1221, allocations: 53.5 kB / 409.7 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001802/0.1223, allocations: 111.7 kB / 409.8 MB, free: 14.62 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.1223, allocations: 0 / 409.8 MB, free: 14.62 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.1224, allocations: 0 / 409.8 MB, free: 14.62 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.968e-06/0.1224, allocations: 0 / 409.8 MB, free: 14.62 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.000467/0.1228, allocations: 375.6 kB / 410.1 MB, free: 14.2 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.661e-05/0.1229, allocations: 12.03 kB / 410.1 MB, free: 14.19 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.351e-05/0.1229, allocations: 4.938 kB / 410.2 MB, free: 14.19 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001576/0.1231, allocations: 188.1 kB / 410.3 MB, free: 13.96 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.501e-05/0.1231, allocations: 8.359 kB / 410.3 MB, free: 13.96 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.34e-05/0.1231, allocations: 12.31 kB / 410.4 MB, free: 13.95 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001653/0.1233, allocations: 70.23 kB / 410.4 MB, free: 13.87 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.929e-06/0.1233, allocations: 7.938 kB / 410.4 MB, free: 13.86 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.414e-05/0.1234, allocations: 4 kB / 410.4 MB, free: 13.86 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.724e-06/0.1234, allocations: 3.984 kB / 410.4 MB, free: 13.86 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001142/0.1235, allocations: 35.97 kB / 410.5 MB, free: 13.82 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006061/0.1241, allocations: 332.5 kB / 410.8 MB, free: 13.45 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001699/0.1243, allocations: 54.55 kB / 410.9 MB, free: 13.38 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.719e-05/0.1243, allocations: 16.92 kB / 410.9 MB, free: 13.36 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.023e-05/0.1244, allocations: 0 / 410.9 MB, free: 13.36 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001725/0.1246, allocations: 79.38 kB / 410.9 MB, free: 13.27 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 3.236e-06/0.1246, allocations: 0 / 410.9 MB, free: 13.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002619/0.1248, allocations: 97.5 kB / 411 MB, free: 13.17 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.985e-05/0.1249, allocations: 51.41 kB / 411.1 MB, free: 13.11 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001012/0.125, allocations: 137.7 kB / 411.2 MB, free: 12.96 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.009e-05/0.125, allocations: 33.7 kB / 411.3 MB, free: 12.93 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.262e-05/0.1251, allocations: 96.03 kB / 411.4 MB, free: 12.83 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.751e-05/0.1251, allocations: 19.72 kB / 411.4 MB, free: 12.81 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.305e-05/0.1252, allocations: 25.7 kB / 411.4 MB, free: 12.78 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001103/0.1253, allocations: 318.8 kB / 411.7 MB, free: 12.46 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.124e-05/0.1253, allocations: 23.98 kB / 411.7 MB, free: 12.43 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.284e-05/0.1254, allocations: 72.89 kB / 411.8 MB, free: 12.34 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002975/0.1258, allocations: 122.2 kB / 411.9 MB, free: 12.2 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.1258, allocations: 0 / 411.9 MB, free: 12.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002305/0.126, allocations: 133.4 kB / 412.1 MB, free: 12.07 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.603e-05/0.126, allocations: 8 kB / 412.1 MB, free: 12.06 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.126, allocations: 3.938 kB / 412.1 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.502e-05/0.1261, allocations: 7.984 kB / 412.1 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.31e-05/0.1261, allocations: 12 kB / 412.1 MB, free: 12.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.034e-06/0.1262, allocations: 4 kB / 412.1 MB, free: 12.03 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.569e-05/0.1262, allocations: 27.7 kB / 412.1 MB, free: 12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.116e-05/0.1262, allocations: 8 kB / 412.1 MB, free: 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.0001338/0.1264, allocations: 129.8 kB / 412.3 MB, free: 11.86 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.152e-05/0.1264, allocations: 4 kB / 412.3 MB, free: 11.86 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.389e-05/0.1264, allocations: 12.36 kB / 412.3 MB, free: 11.84 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.1265, allocations: 0 / 412.3 MB, free: 11.84 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.1265, allocations: 0 / 412.3 MB, free: 11.84 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.57e-06/0.1265, allocations: 3.938 kB / 412.3 MB, free: 11.84 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004325/0.1269, allocations: 354.4 kB / 412.6 MB, free: 11.44 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.1269, allocations: 4 kB / 412.6 MB, free: 11.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.593e-05/0.127, allocations: 4 kB / 412.6 MB, free: 11.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.398e-06/0.127, allocations: 4 kB / 412.6 MB, free: 11.43 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.078e-05/0.127, allocations: 3.938 kB / 412.6 MB, free: 11.42 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.127, allocations: 0 / 412.6 MB, free: 11.42 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.127, allocations: 0 / 412.6 MB, free: 11.42 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002493/0.1273, allocations: 195.4 kB / 412.8 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.567e-05/0.1273, allocations: 81.05 kB / 412.9 MB, free: 11.12 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.807e-05/0.1273, allocations: 8 kB / 412.9 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.334e-05/0.1274, allocations: 12.06 kB / 412.9 MB, free: 11.1 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.969e-05/0.1275, allocations: 11.92 kB / 412.9 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.229e-05/0.1275, allocations: 3.984 kB / 412.9 MB, free: 11.08 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.14e-05/0.1275, allocations: 99.27 kB / 413 MB, free: 10.98 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1275, allocations: 4 kB / 413 MB, free: 10.98 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002817/0.1278, allocations: 36.03 kB / 413.1 MB, free: 10.95 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.0003337/0.1282, allocations: 185.9 kB / 413.3 MB, free: 10.79 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000182/0.1284, allocations: 63.91 kB / 413.3 MB, free: 10.72 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.1284, allocations: 0 / 413.3 MB, free: 10.72 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.166e-05/0.1284, allocations: 32.22 kB / 413.3 MB, free: 10.69 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002558/0.1287, allocations: 14.11 kB / 413.4 MB, free: 10.68 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000402/0.1291, allocations: 193.5 kB / 413.6 MB, free: 10.46 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002657/0.1294, allocations: 0.6965 MB / 414.2 MB, free: 9.738 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.661e-05/0.1295, allocations: 12.52 kB / 414.3 MB, free: 9.727 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.247e-05/0.1295, allocations: 11.44 kB / 414.3 MB, free: 9.715 MB / 350.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1295, allocations: 3.938 kB / 414.3 MB, free: 9.711 MB / 350.1 MB Notification: Performance of Templates: time 0.004066/0.1336, allocations: 1.361 MB / 415.6 MB, free: 8.352 MB / 350.1 MB make -j1 -f AdvancedNoise_AdvancedNoise.Examples.FaultTrigger.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: