Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise.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.TimeBasedNoise,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise") translateModel(AdvancedNoise.Examples.TimeBasedNoise,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001583/0.001583, allocations: 103.1 kB / 16.27 MB, free: 6.414 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.001796/0.001796, allocations: 190.3 kB / 17.2 MB, free: 5.953 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.368/1.368, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.04836/0.04836, allocations: 3.898 MB / 295 MB, free: 11.13 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001356/0.001356, allocations: 67.89 kB / 356.1 MB, free: 13.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2583/0.2597, allocations: 50.18 MB / 406.3 MB, free: 32.09 MB / 302.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.TimeBasedNoise): time 0.002244/0.262, allocations: 1.51 MB / 407.8 MB, free: 30.59 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001593/0.2636, allocations: 1.141 MB / 409 MB, free: 29.44 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.354e-05/0.2637, allocations: 11.78 kB / 409 MB, free: 29.43 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001357/0.2638, allocations: 27.67 kB / 409 MB, free: 29.41 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 7.338e-05/0.2639, allocations: 27.78 kB / 409 MB, free: 29.38 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.0006936/0.2646, allocations: 231.3 kB / 409.3 MB, free: 29.15 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002009/0.2648, allocations: 259.5 kB / 409.5 MB, free: 28.9 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.515e-05/0.2649, allocations: 13.55 kB / 409.5 MB, free: 28.88 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001402/0.2651, allocations: 103.7 kB / 409.6 MB, free: 28.78 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.768e-05/0.2652, allocations: 75.61 kB / 409.7 MB, free: 28.71 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.061e-05/0.2652, allocations: 17.16 kB / 409.7 MB, free: 28.69 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002349/0.2654, allocations: 171.8 kB / 409.9 MB, free: 28.52 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.742e-05/0.2655, allocations: 23.91 kB / 409.9 MB, free: 28.5 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.265e-05/0.2656, allocations: 90.78 kB / 410 MB, free: 28.41 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000304/0.2659, allocations: 279.2 kB / 410.3 MB, free: 28.14 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.2659, allocations: 4 kB / 410.3 MB, free: 28.14 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.2659, allocations: 0 / 410.3 MB, free: 28.14 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.931e-06/0.2659, allocations: 0 / 410.3 MB, free: 28.14 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.001747/0.2677, allocations: 2.238 MB / 412.5 MB, free: 25.83 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.626e-05/0.2677, allocations: 8.031 kB / 412.5 MB, free: 25.82 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006336/0.2684, allocations: 98.22 kB / 412.6 MB, free: 25.73 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002498/0.2686, allocations: 259.8 kB / 412.9 MB, free: 25.44 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.076e-05/0.2687, allocations: 8.375 kB / 412.9 MB, free: 25.43 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.631e-05/0.2687, allocations: 8.375 kB / 412.9 MB, free: 25.42 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003606/0.269, allocations: 261.7 kB / 413.2 MB, free: 25.16 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.208e-05/0.2691, allocations: 4 kB / 413.2 MB, free: 25.15 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.969e-05/0.2691, allocations: 4 kB / 413.2 MB, free: 25.15 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.501e-06/0.2691, allocations: 0 / 413.2 MB, free: 25.15 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003056/0.2694, allocations: 223.8 kB / 413.4 MB, free: 24.93 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002342/0.2697, allocations: 270.2 kB / 413.6 MB, free: 24.61 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003131/0.27, allocations: 321.1 kB / 414 MB, free: 24.28 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002701/0.2703, allocations: 297.7 kB / 414.2 MB, free: 23.98 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.668e-06/0.2703, allocations: 4.375 kB / 414.3 MB, free: 23.98 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004045/0.2707, allocations: 0.5224 MB / 414.8 MB, free: 23.4 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.513e-06/0.2707, allocations: 0 / 414.8 MB, free: 23.4 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.0009708/0.2717, allocations: 0.7621 MB / 415.5 MB, free: 22.62 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.931e-05/0.2718, allocations: 168.5 kB / 415.7 MB, free: 22.43 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001584/0.2719, allocations: 207.1 kB / 415.9 MB, free: 22.21 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.77e-05/0.2719, allocations: 29.7 kB / 415.9 MB, free: 22.18 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.682e-05/0.272, allocations: 112.7 kB / 416 MB, free: 22.07 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.008e-05/0.272, allocations: 43.36 kB / 416.1 MB, free: 22.02 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.46e-05/0.2721, allocations: 57.62 kB / 416.1 MB, free: 21.96 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.056e-05/0.2722, allocations: 326.8 kB / 416.5 MB, free: 21.63 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001913/0.2724, allocations: 148.2 kB / 416.6 MB, free: 21.48 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001803/0.2726, allocations: 144.3 kB / 416.7 MB, free: 21.34 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004152/0.273, allocations: 464.6 kB / 417.2 MB, free: 20.86 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.273, allocations: 3.984 kB / 417.2 MB, free: 20.86 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004945/0.2735, allocations: 463 kB / 417.7 MB, free: 20.39 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.312e-05/0.2736, allocations: 91.38 kB / 417.7 MB, free: 20.29 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.2736, allocations: 4 kB / 417.7 MB, free: 20.29 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.664e-05/0.2736, allocations: 0 / 417.7 MB, free: 20.29 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001315/0.2738, allocations: 23.92 kB / 417.8 MB, free: 20.26 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.113e-06/0.2738, allocations: 3.984 kB / 417.8 MB, free: 20.26 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.117e-05/0.2739, allocations: 19.84 kB / 417.8 MB, free: 20.24 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.895e-05/0.2739, allocations: 35.94 kB / 417.8 MB, free: 20.2 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 26 (globalSeed.seed,timeBasedNoise1.actualGlobalSeed,timeBasedNoise1.localSeed,timeBasedNoise.actualGlobalSeed,timeBasedNoise.localSeed,globalSeed.id_impure,timeBasedNoise.r,timeBasedNoise.bufferStartTime,timeBasedNoise.buffer[2],timeBasedNoise.buffer[1],timeBasedNoise.state[4],timeBasedNoise.state[3],timeBasedNoise.state[2],timeBasedNoise.state[1],$whenCondition4,$whenCondition3,timeBasedNoise1.r,timeBasedNoise1.bufferStartTime,timeBasedNoise1.buffer[2],timeBasedNoise1.buffer[1],timeBasedNoise1.state[4],timeBasedNoise1.state[3],timeBasedNoise1.state[2],timeBasedNoise1.state[1],$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 2 * 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.0001785/0.2741, allocations: 256.2 kB / 418.1 MB, free: 19.93 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.291e-05/0.2742, allocations: 27.81 kB / 418.1 MB, free: 19.91 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.852e-05/0.2742, allocations: 17.39 kB / 418.1 MB, free: 19.88 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.2742, allocations: 0 / 418.1 MB, free: 19.88 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.369e-06/0.2742, allocations: 0 / 418.1 MB, free: 19.88 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.706e-06/0.2742, allocations: 4 kB / 418.1 MB, free: 19.88 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001702/0.2744, allocations: 273.3 kB / 418.4 MB, free: 19.56 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.2744, allocations: 0 / 418.4 MB, free: 19.56 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.5e-05/0.2745, allocations: 11.98 kB / 418.4 MB, free: 19.55 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.255e-06/0.2745, allocations: 0 / 418.4 MB, free: 19.55 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.733e-05/0.2745, allocations: 19.98 kB / 418.4 MB, free: 19.53 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.986e-06/0.2745, allocations: 4 kB / 418.4 MB, free: 19.53 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.041e-06/0.2745, allocations: 7.875 kB / 418.4 MB, free: 19.52 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007326/0.2753, allocations: 0.6928 MB / 419.1 MB, free: 18.79 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001017/0.2754, allocations: 124.9 kB / 419.3 MB, free: 18.65 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.062e-05/0.2754, allocations: 27.92 kB / 419.3 MB, free: 18.62 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001104/0.2756, allocations: 16 kB / 419.3 MB, free: 18.61 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.046e-05/0.2756, allocations: 24.16 kB / 419.3 MB, free: 18.59 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.826e-05/0.2757, allocations: 39.94 kB / 419.4 MB, free: 18.55 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.331e-05/0.2758, allocations: 147.2 kB / 419.5 MB, free: 18.4 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.2758, allocations: 0 / 419.5 MB, free: 18.4 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003302/0.2761, allocations: 75.98 kB / 419.6 MB, free: 18.33 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 20 ($whenCondition3,$whenCondition4,timeBasedNoise.state[1],timeBasedNoise.state[2],timeBasedNoise.state[3],timeBasedNoise.state[4],timeBasedNoise.buffer[1],timeBasedNoise.buffer[2],timeBasedNoise.bufferStartTime,timeBasedNoise.r,$whenCondition1,$whenCondition2,timeBasedNoise1.state[1],timeBasedNoise1.state[2],timeBasedNoise1.state[3],timeBasedNoise1.state[4],timeBasedNoise1.buffer[1],timeBasedNoise1.buffer[2],timeBasedNoise1.bufferStartTime,timeBasedNoise1.r) * Number of discrete states: 20 (timeBasedNoise1.buffer[2],timeBasedNoise1.buffer[1],timeBasedNoise1.r,timeBasedNoise1.bufferStartTime,timeBasedNoise1.state[4],timeBasedNoise1.state[3],timeBasedNoise1.state[2],timeBasedNoise1.state[1],$whenCondition2,$whenCondition1,timeBasedNoise.buffer[2],timeBasedNoise.buffer[1],timeBasedNoise.r,timeBasedNoise.bufferStartTime,timeBasedNoise.state[4],timeBasedNoise.state[3],timeBasedNoise.state[2],timeBasedNoise.state[1],$whenCondition4,$whenCondition3) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 2 * 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 Backend phase and start with SimCode phase: time 0.0004901/0.2766, allocations: 270 kB / 419.8 MB, free: 18.1 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007453/0.2774, allocations: 0.7564 MB / 420.6 MB, free: 17.32 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.2774, allocations: 0 / 420.6 MB, free: 17.32 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000464/0.2779, allocations: 0.6509 MB / 421.2 MB, free: 16.64 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002565/0.2781, allocations: 27.94 kB / 421.3 MB, free: 16.62 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007047/0.2789, allocations: 0.5493 MB / 421.8 MB, free: 16.04 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001494/0.279, allocations: 0.7312 MB / 422.6 MB, free: 15.28 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.376e-05/0.2791, allocations: 19.42 kB / 422.6 MB, free: 15.26 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.2791, allocations: 0 / 422.6 MB, free: 15.26 MB / 302.1 MB Notification: Performance of Templates: time 0.00516/0.2842, allocations: 3.68 MB / 426.3 MB, free: 11.61 MB / 302.1 MB make -j1 -f AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise.makefile (rm -f AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise.pipe ; mkfifo AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise.pipe ; head -c 1048576 < AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise.pipe >> ../files/AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise.sim & ./AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise -abortSlowSimulation -alarm=480 -lv LOG_STATS > AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise.pipe 2>&1)