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.001562/0.001562, allocations: 102.7 kB / 16.4 MB, free: 6.461 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.001695/0.001695, 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.351/1.351, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.02459/0.02459, allocations: 3.916 MB / 295.1 MB, free: 11.02 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001279/0.001279, allocations: 71.89 kB / 407.6 MB, free: 28.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08415/0.08544, allocations: 50.18 MB / 457.8 MB, free: 10.01 MB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.FaultTrigger): time 0.002023/0.08751, allocations: 0.7814 MB / 458.5 MB, free: 9.227 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007842/0.08832, allocations: 370.8 kB / 458.9 MB, free: 8.863 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.315e-05/0.0884, allocations: 8 kB / 458.9 MB, free: 8.855 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000117/0.08853, allocations: 11.86 kB / 458.9 MB, free: 8.844 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.863e-05/0.0886, allocations: 7.875 kB / 458.9 MB, free: 8.836 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.000506/0.08912, allocations: 91.72 kB / 459 MB, free: 8.746 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001237/0.08925, allocations: 67.77 kB / 459.1 MB, free: 8.68 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.768e-05/0.08935, allocations: 16.17 kB / 459.1 MB, free: 8.66 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.693e-05/0.0894, allocations: 23.92 kB / 459.1 MB, free: 8.637 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.025e-05/0.08945, allocations: 23.84 kB / 459.2 MB, free: 8.613 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.826e-05/0.08948, allocations: 12 kB / 459.2 MB, free: 8.602 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001727/0.08966, allocations: 87.91 kB / 459.3 MB, free: 8.516 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.1e-05/0.08969, allocations: 11.94 kB / 459.3 MB, free: 8.504 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.161e-05/0.08974, allocations: 23.86 kB / 459.3 MB, free: 8.48 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002179/0.08996, allocations: 131.6 kB / 459.4 MB, free: 8.352 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.868e-06/0.08997, allocations: 0 / 459.4 MB, free: 8.352 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.08998, allocations: 0 / 459.4 MB, free: 8.352 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.64e-06/0.08999, allocations: 0 / 459.4 MB, free: 8.352 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.0005254/0.09052, allocations: 383.3 kB / 459.8 MB, free: 7.93 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.876e-05/0.09057, allocations: 16.03 kB / 459.8 MB, free: 7.914 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.268e-05/0.09062, allocations: 8.844 kB / 459.8 MB, free: 7.906 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002444/0.09087, allocations: 188.2 kB / 460 MB, free: 7.684 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.334e-05/0.0909, allocations: 4.312 kB / 460 MB, free: 7.68 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.936e-05/0.09094, allocations: 12.38 kB / 460 MB, free: 7.668 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001749/0.09112, allocations: 70.22 kB / 460.1 MB, free: 7.594 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.398e-06/0.09114, allocations: 3.938 kB / 460.1 MB, free: 7.59 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.259e-05/0.09115, allocations: 0 / 460.1 MB, free: 7.59 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.831e-06/0.09116, allocations: 0 / 460.1 MB, free: 7.59 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001095/0.09128, allocations: 31.98 kB / 460.1 MB, free: 7.559 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006462/0.09193, allocations: 340.5 kB / 460.5 MB, free: 7.176 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001687/0.09212, allocations: 50.61 kB / 460.5 MB, free: 7.117 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.908e-05/0.09217, allocations: 16.86 kB / 460.5 MB, free: 7.098 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.565e-05/0.0922, allocations: 7.969 kB / 460.5 MB, free: 7.09 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001424/0.09235, allocations: 71.39 kB / 460.6 MB, free: 7.008 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.503e-06/0.09236, allocations: 0 / 460.6 MB, free: 7.008 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002912/0.09265, allocations: 101.5 kB / 460.7 MB, free: 6.902 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.279e-05/0.09271, allocations: 55.39 kB / 460.7 MB, free: 6.836 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001206/0.09283, allocations: 137.7 kB / 460.9 MB, free: 6.691 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.901e-05/0.09286, allocations: 29.7 kB / 460.9 MB, free: 6.656 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.265e-05/0.09292, allocations: 99.89 kB / 461 MB, free: 6.555 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.884e-05/0.09294, allocations: 19.8 kB / 461 MB, free: 6.535 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.791e-05/0.093, allocations: 37.7 kB / 461.1 MB, free: 6.492 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.199e-05/0.0931, allocations: 318.8 kB / 461.4 MB, free: 6.172 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.28e-05/0.09317, allocations: 19.98 kB / 461.4 MB, free: 6.152 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.514e-05/0.09326, allocations: 72.47 kB / 461.5 MB, free: 6.062 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002945/0.09356, allocations: 117.9 kB / 461.6 MB, free: 5.926 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.198e-06/0.09357, allocations: 4 kB / 461.6 MB, free: 5.922 MB / 334.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002352/0.09381, allocations: 141.8 kB / 461.7 MB, free: 5.777 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.707e-05/0.09384, allocations: 4 kB / 461.7 MB, free: 5.773 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.734e-06/0.09385, allocations: 7.938 kB / 461.7 MB, free: 5.766 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.565e-05/0.09387, allocations: 0 / 461.7 MB, free: 5.766 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.122e-05/0.09396, allocations: 23.92 kB / 461.8 MB, free: 5.742 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.033e-06/0.09397, allocations: 0 / 461.8 MB, free: 5.742 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.309e-05/0.09404, allocations: 19.84 kB / 461.8 MB, free: 5.723 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.018e-05/0.09406, allocations: 4 kB / 461.8 MB, free: 5.719 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.0001352/0.0942, allocations: 134.3 kB / 461.9 MB, free: 5.578 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.705e-05/0.09422, allocations: 7.906 kB / 461.9 MB, free: 5.57 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.297e-05/0.09426, allocations: 8.375 kB / 461.9 MB, free: 5.562 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.765e-06/0.09427, allocations: 0 / 461.9 MB, free: 5.562 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.09428, allocations: 0 / 461.9 MB, free: 5.562 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.162e-06/0.09429, allocations: 3.938 kB / 461.9 MB, free: 5.559 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004434/0.09474, allocations: 354.4 kB / 462.3 MB, free: 5.156 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.09475, allocations: 0 / 462.3 MB, free: 5.156 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.036e-05/0.09481, allocations: 11.98 kB / 462.3 MB, free: 5.145 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.09482, allocations: 0 / 462.3 MB, free: 5.145 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.367e-05/0.09484, allocations: 7.938 kB / 462.3 MB, free: 5.137 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.09485, allocations: 0 / 462.3 MB, free: 5.137 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.09486, allocations: 0 / 462.3 MB, free: 5.137 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002678/0.09513, allocations: 195.5 kB / 462.5 MB, free: 4.93 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.443e-05/0.09518, allocations: 81.02 kB / 462.6 MB, free: 4.832 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.074e-05/0.09521, allocations: 3.938 kB / 462.6 MB, free: 4.828 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.975e-05/0.09529, allocations: 8.062 kB / 462.6 MB, free: 4.82 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.568e-05/0.09534, allocations: 11.98 kB / 462.6 MB, free: 4.809 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.336e-05/0.09536, allocations: 3.938 kB / 462.6 MB, free: 4.805 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.199e-05/0.09542, allocations: 95.27 kB / 462.7 MB, free: 4.711 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.09543, allocations: 0 / 462.7 MB, free: 4.711 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003111/0.09575, allocations: 40.11 kB / 462.7 MB, free: 4.672 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.0003787/0.09613, allocations: 188.4 kB / 462.9 MB, free: 4.508 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002076/0.09635, allocations: 67.83 kB / 463 MB, free: 4.441 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/0.09637, allocations: 4 kB / 463 MB, free: 4.438 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.558e-05/0.09644, allocations: 23.94 kB / 463 MB, free: 4.414 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000272/0.09672, allocations: 16.23 kB / 463 MB, free: 4.398 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004831/0.09723, allocations: 211.9 kB / 463.2 MB, free: 4.16 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002285/0.09747, allocations: 0.6922 MB / 463.9 MB, free: 3.441 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.129e-05/0.09751, allocations: 11.44 kB / 463.9 MB, free: 3.43 MB / 334.1 MB Notification: Performance of SimCode: time 3.31e-07/0.09751, allocations: 4 kB / 463.9 MB, free: 3.426 MB / 334.1 MB Notification: Performance of Templates: time 0.003813/0.1013, allocations: 1.695 MB / 465.6 MB, free: 1.727 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)