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.001064/0.001063, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001367/0.001367, allocations: 195.9 kB / 16.14 MB, free: 6.711 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.256/1.256, allocations: 222.9 MB / 239.8 MB, free: 4.633 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.1366/0.1366, allocations: 3.895 MB / 293.8 MB, free: 3.246 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001096/0.001096, allocations: 59.91 kB / 354.8 MB, free: 4.148 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08649/0.0876, allocations: 50.19 MB / 405 MB, free: 1.914 MB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.FaultTrigger): time 0.001956/0.0896, allocations: 0.8494 MB / 405.8 MB, free: 1.059 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007131/0.09033, allocations: 394.6 kB / 406.2 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.541e-05/0.0904, allocations: 4 kB / 406.2 MB, free: 0.668 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 9.075e-05/0.0905, allocations: 7.922 kB / 406.2 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 3.845e-05/0.09055, allocations: 3.938 kB / 406.2 MB, free: 0.6562 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.0003629/0.09092, allocations: 75.86 kB / 406.3 MB, free: 0.582 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 8.221e-05/0.09101, allocations: 55.78 kB / 406.3 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.786e-05/0.0911, allocations: 20.16 kB / 406.4 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.235e-05/0.09114, allocations: 23.92 kB / 406.4 MB, free: 492 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.999e-05/0.09119, allocations: 23.86 kB / 406.4 MB, free: 468 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.388e-05/0.09121, allocations: 4 kB / 406.4 MB, free: 464 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001505/0.09136, allocations: 83.91 kB / 406.5 MB, free: 380 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.742e-05/0.09139, allocations: 7.984 kB / 406.5 MB, free: 372 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.77e-05/0.09143, allocations: 35.73 kB / 406.5 MB, free: 336 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001685/0.0916, allocations: 115.7 kB / 406.7 MB, free: 220 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.09162, allocations: 3.984 kB / 406.7 MB, free: 216 kB / 334.1 MB Notification: Performance of FrontEnd: time 7.21e-07/0.09162, allocations: 0 / 406.7 MB, free: 216 kB / 334.1 MB Notification: Performance of Transformations before backend: time 3.416e-06/0.09163, allocations: 4 kB / 406.7 MB, free: 212 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.0005013/0.09214, allocations: 379.6 kB / 407 MB, free: 15.79 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.298e-05/0.09218, allocations: 15.97 kB / 407 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.524e-05/0.09223, allocations: 8.844 kB / 407.1 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001549/0.09239, allocations: 176.3 kB / 407.2 MB, free: 15.55 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.176e-05/0.09242, allocations: 4.375 kB / 407.2 MB, free: 15.55 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.382e-05/0.09245, allocations: 12.36 kB / 407.2 MB, free: 15.54 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001652/0.09262, allocations: 74.17 kB / 407.3 MB, free: 15.46 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.466e-06/0.09264, allocations: 7.938 kB / 407.3 MB, free: 15.45 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.292e-05/0.09265, allocations: 4 kB / 407.3 MB, free: 15.45 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.807e-06/0.09266, allocations: 0 / 407.3 MB, free: 15.45 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.859e-05/0.09277, allocations: 31.97 kB / 407.4 MB, free: 15.42 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005896/0.09336, allocations: 340.6 kB / 407.7 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001665/0.09354, allocations: 54.55 kB / 407.7 MB, free: 14.97 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.038e-05/0.0936, allocations: 28.8 kB / 407.8 MB, free: 14.94 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.274e-06/0.09362, allocations: 0 / 407.8 MB, free: 14.94 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001707/0.09379, allocations: 71.36 kB / 407.8 MB, free: 14.86 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.222e-06/0.0938, allocations: 0 / 407.8 MB, free: 14.86 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002578/0.09407, allocations: 97.52 kB / 407.9 MB, free: 14.76 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.273e-05/0.09411, allocations: 51.41 kB / 408 MB, free: 14.7 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.129e-05/0.09421, allocations: 140.4 kB / 408.1 MB, free: 14.55 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.238e-05/0.09424, allocations: 33.7 kB / 408.2 MB, free: 14.51 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.874e-05/0.09429, allocations: 103.9 kB / 408.3 MB, free: 14.41 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.476e-05/0.09431, allocations: 15.81 kB / 408.3 MB, free: 14.39 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.462e-05/0.09436, allocations: 33.7 kB / 408.3 MB, free: 14.35 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001066/0.09447, allocations: 318.8 kB / 408.6 MB, free: 14.03 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.38e-05/0.09454, allocations: 23.98 kB / 408.6 MB, free: 14.01 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.073e-05/0.09463, allocations: 70 kB / 408.7 MB, free: 13.92 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002797/0.09492, allocations: 117.9 kB / 408.8 MB, free: 13.78 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.446e-06/0.09493, allocations: 4 kB / 408.8 MB, free: 13.78 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002154/0.09515, allocations: 133.4 kB / 409 MB, free: 13.64 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.304e-05/0.09517, allocations: 8 kB / 409 MB, free: 13.63 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.278e-06/0.09518, allocations: 0 / 409 MB, free: 13.63 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.162e-05/0.0952, allocations: 4 kB / 409 MB, free: 13.63 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.694e-05/0.09528, allocations: 15.94 kB / 409 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.026e-05/0.0953, allocations: 7.984 kB / 409 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.861e-05/0.09537, allocations: 19.94 kB / 409 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.538e-06/0.09539, allocations: 8 kB / 409 MB, free: 13.58 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.0001165/0.09551, allocations: 133.8 kB / 409.2 MB, free: 13.44 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.532e-05/0.09553, allocations: 7.906 kB / 409.2 MB, free: 13.43 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.616e-05/0.09556, allocations: 12.36 kB / 409.2 MB, free: 13.42 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.654e-06/0.09557, allocations: 0 / 409.2 MB, free: 13.42 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.825e-06/0.09558, allocations: 0 / 409.2 MB, free: 13.42 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/0.09558, allocations: 3.938 kB / 409.2 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004041/0.09599, allocations: 346.6 kB / 409.5 MB, free: 13.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.512e-06/0.09601, allocations: 0 / 409.5 MB, free: 13.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.034e-05/0.09606, allocations: 7.938 kB / 409.5 MB, free: 13.01 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.09607, allocations: 0 / 409.5 MB, free: 13.01 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.162e-05/0.09609, allocations: 3.938 kB / 409.5 MB, free: 13.01 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.0961, allocations: 4 kB / 409.5 MB, free: 13 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.0961, allocations: 0 / 409.5 MB, free: 13 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002652/0.09637, allocations: 200 kB / 409.7 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.758e-05/0.09642, allocations: 88.98 kB / 409.8 MB, free: 12.69 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.975e-05/0.09644, allocations: 7.922 kB / 409.8 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.156e-05/0.09652, allocations: 8 kB / 409.8 MB, free: 12.67 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.967e-05/0.09656, allocations: 0 / 409.8 MB, free: 12.67 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.343e-05/0.09658, allocations: 11.92 kB / 409.8 MB, free: 12.66 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.004e-05/0.09664, allocations: 98.5 kB / 409.9 MB, free: 12.57 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.09665, allocations: 0 / 409.9 MB, free: 12.57 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000283/0.09693, allocations: 40.12 kB / 410 MB, free: 12.53 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.0003273/0.09727, allocations: 189.1 kB / 410.2 MB, free: 12.36 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001748/0.09745, allocations: 68.09 kB / 410.2 MB, free: 12.3 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.09747, allocations: 0 / 410.2 MB, free: 12.3 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.457e-05/0.09753, allocations: 27.98 kB / 410.3 MB, free: 12.27 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002462/0.09779, allocations: 15.92 kB / 410.3 MB, free: 12.25 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003958/0.09819, allocations: 188.2 kB / 410.5 MB, free: 12.04 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002229/0.09843, allocations: 0.6965 MB / 411.1 MB, free: 11.32 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.707e-05/0.09848, allocations: 8.422 kB / 411.2 MB, free: 11.31 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.166e-05/0.09851, allocations: 11.44 kB / 411.2 MB, free: 11.3 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.09851, allocations: 0 / 411.2 MB, free: 11.3 MB / 350.1 MB Notification: Performance of Templates: time 0.003758/0.1023, allocations: 1.37 MB / 412.5 MB, free: 9.938 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)