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.001863/0.001863, allocations: 103.5 kB / 16.35 MB, free: 6.289 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.001878/0.001878, allocations: 193.4 kB / 17.3 MB, free: 5.859 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.352/1.352, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.02426/0.02426, allocations: 3.909 MB / 295.1 MB, free: 11.07 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001359/0.001359, allocations: 55.91 kB / 356.9 MB, free: 13.17 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2498/0.2512, allocations: 50.19 MB / 407.1 MB, free: 31.94 MB / 302.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.FaultTrigger): time 0.002059/0.2533, allocations: 0.7773 MB / 407.9 MB, free: 31.19 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006233/0.2539, allocations: 366.8 kB / 408.2 MB, free: 30.83 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.225e-05/0.254, allocations: 3.938 kB / 408.2 MB, free: 30.82 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001111/0.2541, allocations: 4.781 kB / 408.2 MB, free: 30.82 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 4.795e-05/0.2542, allocations: 19.02 kB / 408.3 MB, free: 30.8 MB / 302.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.0004565/0.2546, allocations: 99.7 kB / 408.3 MB, free: 30.71 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001076/0.2548, allocations: 51.84 kB / 408.4 MB, free: 30.66 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001073/0.2549, allocations: 16.17 kB / 408.4 MB, free: 30.64 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.269e-05/0.2549, allocations: 19.92 kB / 408.4 MB, free: 30.62 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.477e-05/0.255, allocations: 31.84 kB / 408.5 MB, free: 30.59 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.582e-05/0.255, allocations: 7.594 kB / 408.5 MB, free: 30.58 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001537/0.2551, allocations: 87.86 kB / 408.6 MB, free: 30.5 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.136e-05/0.2552, allocations: 15.92 kB / 408.6 MB, free: 30.48 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.759e-05/0.2552, allocations: 31.84 kB / 408.6 MB, free: 30.45 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002034/0.2554, allocations: 115.7 kB / 408.7 MB, free: 30.34 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.2554, allocations: 0 / 408.7 MB, free: 30.34 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.2554, allocations: 0 / 408.7 MB, free: 30.34 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.392e-06/0.2554, allocations: 0 / 408.7 MB, free: 30.34 MB / 302.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.0004713/0.2559, allocations: 393.8 kB / 409.1 MB, free: 29.91 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.363e-05/0.256, allocations: 11.97 kB / 409.1 MB, free: 29.9 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.976e-05/0.256, allocations: 12.78 kB / 409.1 MB, free: 29.89 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001577/0.2562, allocations: 178.2 kB / 409.3 MB, free: 29.68 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.037e-05/0.2562, allocations: 12.36 kB / 409.3 MB, free: 29.66 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.548e-05/0.2562, allocations: 8.312 kB / 409.3 MB, free: 29.66 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001551/0.2564, allocations: 73.3 kB / 409.4 MB, free: 29.58 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.706e-06/0.2564, allocations: 3.938 kB / 409.4 MB, free: 29.58 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.154e-05/0.2564, allocations: 0 / 409.4 MB, free: 29.58 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.412e-06/0.2564, allocations: 7.984 kB / 409.4 MB, free: 29.57 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.83e-05/0.2565, allocations: 35.91 kB / 409.4 MB, free: 29.54 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005759/0.2571, allocations: 336.5 kB / 409.8 MB, free: 29.16 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001549/0.2573, allocations: 54.61 kB / 409.8 MB, free: 29.09 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.415e-05/0.2573, allocations: 20.8 kB / 409.8 MB, free: 29.07 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.927e-06/0.2574, allocations: 0 / 409.8 MB, free: 29.07 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001218/0.2575, allocations: 75.36 kB / 409.9 MB, free: 28.98 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 1.363e-06/0.2575, allocations: 0 / 409.9 MB, free: 28.98 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002519/0.2578, allocations: 89.81 kB / 410 MB, free: 28.89 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.881e-05/0.2578, allocations: 59.41 kB / 410.1 MB, free: 28.82 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.921e-05/0.2579, allocations: 143.3 kB / 410.2 MB, free: 28.67 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.211e-05/0.2579, allocations: 25.7 kB / 410.2 MB, free: 28.64 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.256e-05/0.258, allocations: 96.03 kB / 410.3 MB, free: 28.54 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.835e-05/0.258, allocations: 23.73 kB / 410.3 MB, free: 28.52 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.351e-05/0.258, allocations: 33.7 kB / 410.4 MB, free: 28.48 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.518e-05/0.2581, allocations: 322.8 kB / 410.7 MB, free: 28.16 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.001e-05/0.2582, allocations: 23.98 kB / 410.7 MB, free: 28.13 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.256e-05/0.2582, allocations: 66.84 kB / 410.8 MB, free: 28.05 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002624/0.2585, allocations: 125.9 kB / 410.9 MB, free: 27.9 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.2585, allocations: 0 / 410.9 MB, free: 27.9 MB / 302.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001969/0.2587, allocations: 129.4 kB / 411 MB, free: 27.77 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.631e-05/0.2587, allocations: 10.19 kB / 411 MB, free: 27.76 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.66e-06/0.2588, allocations: 0 / 411 MB, free: 27.76 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.717e-05/0.2588, allocations: 4.156 kB / 411 MB, free: 27.76 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.529e-05/0.2589, allocations: 23.92 kB / 411.1 MB, free: 27.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.624e-06/0.2589, allocations: 4 kB / 411.1 MB, free: 27.73 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.125e-05/0.2589, allocations: 15.78 kB / 411.1 MB, free: 27.71 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.23e-05/0.259, allocations: 8 kB / 411.1 MB, free: 27.71 MB / 302.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.0001194/0.2591, allocations: 130.3 kB / 411.2 MB, free: 27.57 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.469e-05/0.2591, allocations: 7.906 kB / 411.2 MB, free: 27.56 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.122e-05/0.2591, allocations: 16.36 kB / 411.2 MB, free: 27.54 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.2591, allocations: 4 kB / 411.2 MB, free: 27.54 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.2592, allocations: 3.938 kB / 411.3 MB, free: 27.54 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.581e-06/0.2592, allocations: 3.938 kB / 411.3 MB, free: 27.53 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003546/0.2595, allocations: 346.6 kB / 411.6 MB, free: 27.14 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.2595, allocations: 0 / 411.6 MB, free: 27.14 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.609e-05/0.2596, allocations: 4 kB / 411.6 MB, free: 27.13 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/0.2596, allocations: 0 / 411.6 MB, free: 27.13 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.212e-05/0.2596, allocations: 7.875 kB / 411.6 MB, free: 27.12 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.2596, allocations: 0 / 411.6 MB, free: 27.12 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.2596, allocations: 11.98 kB / 411.6 MB, free: 27.11 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002124/0.2598, allocations: 195.4 kB / 411.8 MB, free: 26.91 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.72e-05/0.2599, allocations: 89.03 kB / 411.9 MB, free: 26.8 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.901e-05/0.2599, allocations: 3.938 kB / 411.9 MB, free: 26.8 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.011e-05/0.26, allocations: 48 / 411.9 MB, free: 26.8 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.3e-05/0.26, allocations: 7.984 kB / 411.9 MB, free: 26.79 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.447e-05/0.2601, allocations: 7.984 kB / 411.9 MB, free: 26.78 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.234e-05/0.2601, allocations: 105.9 kB / 412 MB, free: 26.68 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2601, allocations: 0 / 412 MB, free: 26.68 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002813/0.2604, allocations: 36.12 kB / 412.1 MB, free: 26.64 MB / 302.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.0003727/0.2608, allocations: 190.7 kB / 412.2 MB, free: 26.48 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001938/0.261, allocations: 67.84 kB / 412.3 MB, free: 26.41 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.261, allocations: 0 / 412.3 MB, free: 26.41 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 5.892e-05/0.2611, allocations: 23.98 kB / 412.3 MB, free: 26.39 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002595/0.2613, allocations: 11.98 kB / 412.3 MB, free: 26.38 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003926/0.2617, allocations: 190.5 kB / 412.5 MB, free: 26.16 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001281/0.2619, allocations: 0.6961 MB / 413.2 MB, free: 25.44 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.43e-05/0.2619, allocations: 12.45 kB / 413.2 MB, free: 25.43 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.131e-05/0.2619, allocations: 11.44 kB / 413.2 MB, free: 25.41 MB / 302.1 MB Notification: Performance of SimCode: time 2.81e-07/0.2619, allocations: 4 kB / 413.3 MB, free: 25.41 MB / 302.1 MB Notification: Performance of Templates: time 0.00424/0.2662, allocations: 1.427 MB / 414.7 MB, free: 23.99 MB / 302.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 -s cvode -lv LOG_STATS > AdvancedNoise_AdvancedNoise.Examples.FaultTrigger.pipe 2>&1)