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/AdvancedNoise 1.1.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 AdvancedNoise with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/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/AdvancedNoise 1.1.0-master/package.mo): time 0.02158/0.02158, allocations: 3.908 MB / 19.95 MB, free: 2.852 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.001026/0.001027, allocations: 180.5 kB / 21.59 MB, free: 1.621 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.391/1.391, allocations: 222.9 MB / 246 MB, free: 9.047 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001035/0.001035, allocations: 108.2 kB / 297 MB, free: 10.43 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001033/0.001033, allocations: 51.91 kB / 358.1 MB, free: 13.31 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2528/0.2539, allocations: 50.18 MB / 408.3 MB, free: 31.95 MB / 302.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.FaultTrigger): time 0.001969/0.2559, allocations: 0.8563 MB / 409.1 MB, free: 31.11 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006404/0.2566, allocations: 382.8 kB / 409.5 MB, free: 30.74 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.551e-05/0.2567, allocations: 2.938 kB / 409.5 MB, free: 30.74 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 9.851e-05/0.2568, allocations: 7.875 kB / 409.5 MB, free: 30.73 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 4.222e-05/0.2568, allocations: 7.938 kB / 409.5 MB, free: 30.72 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.0004179/0.2572, allocations: 95.72 kB / 409.6 MB, free: 30.63 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 9.301e-05/0.2573, allocations: 59.78 kB / 409.7 MB, free: 30.57 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.518e-05/0.2574, allocations: 11.31 kB / 409.7 MB, free: 30.56 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.341e-05/0.2575, allocations: 31.91 kB / 409.7 MB, free: 30.53 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.279e-05/0.2575, allocations: 27.84 kB / 409.7 MB, free: 30.5 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.349e-05/0.2576, allocations: 4 kB / 409.7 MB, free: 30.5 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001316/0.2577, allocations: 83.92 kB / 409.8 MB, free: 30.41 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.983e-05/0.2577, allocations: 15.92 kB / 409.8 MB, free: 30.4 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.456e-05/0.2578, allocations: 27.86 kB / 409.9 MB, free: 30.37 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001719/0.2579, allocations: 119.6 kB / 410 MB, free: 30.25 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.258, allocations: 2.719 kB / 410 MB, free: 30.25 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.258, allocations: 0 / 410 MB, free: 30.25 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.29e-06/0.258, allocations: 4 kB / 410 MB, free: 30.25 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.0004286/0.2584, allocations: 389.2 kB / 410.4 MB, free: 29.82 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.24e-05/0.2585, allocations: 8.031 kB / 410.4 MB, free: 29.82 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.863e-05/0.2585, allocations: 8.844 kB / 410.4 MB, free: 29.81 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001378/0.2586, allocations: 184.4 kB / 410.6 MB, free: 29.59 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.144e-05/0.2587, allocations: 8.375 kB / 410.6 MB, free: 29.58 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.291e-05/0.2587, allocations: 8.375 kB / 410.6 MB, free: 29.57 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001553/0.2589, allocations: 74.16 kB / 410.7 MB, free: 29.5 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.347e-06/0.2589, allocations: 3.938 kB / 410.7 MB, free: 29.49 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.214e-05/0.2589, allocations: 3.938 kB / 410.7 MB, free: 29.49 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.442e-06/0.2589, allocations: 4 kB / 410.7 MB, free: 29.48 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.587e-05/0.259, allocations: 31.92 kB / 410.7 MB, free: 29.45 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005703/0.2596, allocations: 344.5 kB / 411 MB, free: 29.07 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001489/0.2597, allocations: 50.56 kB / 411.1 MB, free: 29.01 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.494e-05/0.2598, allocations: 24.84 kB / 411.1 MB, free: 28.98 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.797e-06/0.2598, allocations: 0 / 411.1 MB, free: 28.98 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001618/0.26, allocations: 75.38 kB / 411.2 MB, free: 28.89 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 1.362e-06/0.26, allocations: 0 / 411.2 MB, free: 28.89 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002425/0.2602, allocations: 97.72 kB / 411.3 MB, free: 28.79 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.174e-05/0.2603, allocations: 55.41 kB / 411.3 MB, free: 28.73 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.107e-05/0.2604, allocations: 137.7 kB / 411.5 MB, free: 28.58 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.273e-05/0.2604, allocations: 29.7 kB / 411.5 MB, free: 28.55 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.567e-05/0.2604, allocations: 92.05 kB / 411.6 MB, free: 28.45 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.556e-05/0.2604, allocations: 23.73 kB / 411.6 MB, free: 28.43 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.781e-05/0.2605, allocations: 29.7 kB / 411.6 MB, free: 28.39 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.729e-05/0.2605, allocations: 326.8 kB / 412 MB, free: 28.07 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.703e-05/0.2606, allocations: 20 kB / 412 MB, free: 28.05 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.902e-05/0.2607, allocations: 65.98 kB / 412 MB, free: 27.96 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002588/0.261, allocations: 137.9 kB / 412.2 MB, free: 27.8 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.261, allocations: 0 / 412.2 MB, free: 27.8 MB / 302.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001852/0.2612, allocations: 117.5 kB / 412.3 MB, free: 27.68 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.371e-05/0.2612, allocations: 12.16 kB / 412.3 MB, free: 27.67 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.059e-06/0.2612, allocations: 0 / 412.3 MB, free: 27.67 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.489e-05/0.2612, allocations: 4 kB / 412.3 MB, free: 27.67 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.187e-05/0.2613, allocations: 19.92 kB / 412.3 MB, free: 27.65 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.474e-06/0.2613, allocations: 4 kB / 412.3 MB, free: 27.64 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.947e-05/0.2614, allocations: 23.77 kB / 412.4 MB, free: 27.62 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.338e-06/0.2614, allocations: 7.938 kB / 412.4 MB, free: 27.61 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.0001381/0.2615, allocations: 137.7 kB / 412.5 MB, free: 27.47 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.592e-05/0.2615, allocations: 7.906 kB / 412.5 MB, free: 27.46 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.065e-05/0.2616, allocations: 8.375 kB / 412.5 MB, free: 27.45 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.2616, allocations: 4 kB / 412.5 MB, free: 27.45 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.622e-06/0.2616, allocations: 3.984 kB / 412.5 MB, free: 27.44 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.2616, allocations: 3.938 kB / 412.5 MB, free: 27.44 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003653/0.262, allocations: 338.6 kB / 412.9 MB, free: 27.05 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.262, allocations: 0 / 412.9 MB, free: 27.05 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.943e-05/0.2621, allocations: 11.92 kB / 412.9 MB, free: 27.04 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.2621, allocations: 4 kB / 412.9 MB, free: 27.04 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.406e-05/0.2621, allocations: 7.938 kB / 412.9 MB, free: 27.03 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.2621, allocations: 0 / 412.9 MB, free: 27.03 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.2621, allocations: 4 kB / 412.9 MB, free: 27.02 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002196/0.2623, allocations: 195.4 kB / 413.1 MB, free: 26.82 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.567e-05/0.2624, allocations: 85.05 kB / 413.2 MB, free: 26.71 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.86e-05/0.2624, allocations: 3.938 kB / 413.2 MB, free: 26.71 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.773e-05/0.2625, allocations: 12.05 kB / 413.2 MB, free: 26.7 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.379e-05/0.2625, allocations: 4 kB / 413.2 MB, free: 26.7 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.328e-05/0.2625, allocations: 4 kB / 413.2 MB, free: 26.69 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.292e-05/0.2626, allocations: 102.1 kB / 413.3 MB, free: 26.59 MB / 302.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2626, allocations: 0 / 413.3 MB, free: 26.59 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000281/0.2629, allocations: 40.11 kB / 413.3 MB, free: 26.55 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.0003665/0.2632, allocations: 186.4 kB / 413.5 MB, free: 26.39 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001907/0.2634, allocations: 71.89 kB / 413.6 MB, free: 26.32 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.2634, allocations: 0 / 413.6 MB, free: 26.32 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6e-05/0.2635, allocations: 27.92 kB / 413.6 MB, free: 26.3 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000266/0.2638, allocations: 16.25 kB / 413.6 MB, free: 26.28 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003975/0.2642, allocations: 198.2 kB / 413.8 MB, free: 26.06 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001489/0.2644, allocations: 0.6885 MB / 414.5 MB, free: 25.34 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.475e-05/0.2644, allocations: 16.42 kB / 414.5 MB, free: 25.33 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.072e-05/0.2644, allocations: 15.44 kB / 414.5 MB, free: 25.31 MB / 302.1 MB Notification: Performance of SimCode: time 2.21e-07/0.2644, allocations: 0 / 414.5 MB, free: 25.31 MB / 302.1 MB Notification: Performance of Templates: time 0.003718/0.2682, allocations: 1.413 MB / 415.9 MB, free: 23.91 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 gbode -lv LOG_STATS > AdvancedNoise_AdvancedNoise.Examples.FaultTrigger.pipe 2>&1)