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.001272/0.001272, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001346/0.001346, allocations: 198.8 kB / 16.14 MB, free: 6.656 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.258/1.258, allocations: 222.9 MB / 239.8 MB, free: 4.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.1653/0.1653, allocations: 3.883 MB / 293.8 MB, free: 3.23 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001436/0.001436, allocations: 55.92 kB / 354.8 MB, free: 4.129 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0888/0.09026, allocations: 50.19 MB / 405 MB, free: 1.895 MB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.TimeBasedNoise): time 0.002458/0.09275, allocations: 1.603 MB / 406.6 MB, free: 280 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001768/0.09455, allocations: 1.192 MB / 407.8 MB, free: 15.07 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.841e-05/0.09464, allocations: 11.88 kB / 407.8 MB, free: 15.06 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001238/0.09477, allocations: 23.78 kB / 407.8 MB, free: 15.04 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.719e-05/0.09486, allocations: 15.88 kB / 407.8 MB, free: 15.02 MB / 350.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.0006083/0.09548, allocations: 199.6 kB / 408 MB, free: 14.83 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000191/0.09568, allocations: 215.5 kB / 408.2 MB, free: 14.62 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.663e-05/0.09573, allocations: 25.5 kB / 408.2 MB, free: 14.59 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001479/0.09589, allocations: 99.61 kB / 408.3 MB, free: 14.5 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.976e-05/0.09599, allocations: 75.61 kB / 408.4 MB, free: 14.42 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.709e-05/0.09602, allocations: 8 kB / 408.4 MB, free: 14.41 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002495/0.09628, allocations: 159.8 kB / 408.6 MB, free: 14.26 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.073e-05/0.09633, allocations: 23.86 kB / 408.6 MB, free: 14.23 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.383e-05/0.09642, allocations: 79.58 kB / 408.7 MB, free: 14.16 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003131/0.09674, allocations: 271.3 kB / 408.9 MB, free: 13.89 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.09675, allocations: 3.938 kB / 408.9 MB, free: 13.89 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.09675, allocations: 3.938 kB / 409 MB, free: 13.88 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.628e-06/0.09676, allocations: 4 kB / 409 MB, free: 13.88 MB / 350.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.002139/0.09891, allocations: 2.232 MB / 411.2 MB, free: 11.58 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.854e-05/0.09894, allocations: 11.97 kB / 411.2 MB, free: 11.57 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006133/0.09956, allocations: 100.5 kB / 411.3 MB, free: 11.47 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002691/0.09984, allocations: 259.7 kB / 411.6 MB, free: 11.18 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.609e-05/0.09987, allocations: 4.375 kB / 411.6 MB, free: 11.17 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.465e-05/0.0999, allocations: 12.38 kB / 411.6 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003874/0.1003, allocations: 270.8 kB / 411.8 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.035e-06/0.1003, allocations: 0 / 411.8 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.856e-05/0.1003, allocations: 4 kB / 411.8 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.973e-06/0.1003, allocations: 0 / 411.8 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003476/0.1007, allocations: 219.9 kB / 412.1 MB, free: 10.67 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002487/0.101, allocations: 258.2 kB / 412.3 MB, free: 10.36 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003754/0.1013, allocations: 317.1 kB / 412.6 MB, free: 10.04 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003193/0.1017, allocations: 297.7 kB / 412.9 MB, free: 9.738 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.371e-05/0.1017, allocations: 4.375 kB / 412.9 MB, free: 9.734 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005065/0.1022, allocations: 0.5274 MB / 413.4 MB, free: 9.152 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.453e-06/0.1022, allocations: 4 kB / 413.4 MB, free: 9.148 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.00119/0.1034, allocations: 0.7582 MB / 414.2 MB, free: 8.371 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001245/0.1036, allocations: 164.5 kB / 414.4 MB, free: 8.18 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002383/0.1038, allocations: 215.1 kB / 414.6 MB, free: 7.961 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.127e-05/0.1038, allocations: 29.7 kB / 414.6 MB, free: 7.926 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.638e-05/0.1039, allocations: 108.7 kB / 414.7 MB, free: 7.816 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.181e-05/0.104, allocations: 51.28 kB / 414.8 MB, free: 7.766 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001289/0.1041, allocations: 57.69 kB / 414.8 MB, free: 7.703 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001473/0.1043, allocations: 330.8 kB / 415.1 MB, free: 7.371 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002581/0.1046, allocations: 136.2 kB / 415.3 MB, free: 7.234 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002348/0.1048, allocations: 144.4 kB / 415.4 MB, free: 7.094 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005596/0.1054, allocations: 460.3 kB / 415.9 MB, free: 6.617 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.1054, allocations: 0 / 415.9 MB, free: 6.617 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006315/0.106, allocations: 471.2 kB / 416.3 MB, free: 6.141 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.666e-05/0.1061, allocations: 95.36 kB / 416.4 MB, free: 6.035 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/0.1061, allocations: 0 / 416.4 MB, free: 6.035 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.416e-05/0.1061, allocations: 0 / 416.4 MB, free: 6.035 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001267/0.1063, allocations: 23.92 kB / 416.4 MB, free: 6.012 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.631e-06/0.1063, allocations: 0 / 416.4 MB, free: 6.012 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.933e-05/0.1064, allocations: 19.89 kB / 416.5 MB, free: 5.992 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.062e-05/0.1065, allocations: 40.12 kB / 416.5 MB, free: 5.953 MB / 350.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.0002099/0.1067, allocations: 259.7 kB / 416.7 MB, free: 5.676 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.159e-05/0.1067, allocations: 31.75 kB / 416.8 MB, free: 5.645 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.271e-05/0.1068, allocations: 17.39 kB / 416.8 MB, free: 5.621 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.435e-06/0.1068, allocations: 4 kB / 416.8 MB, free: 5.617 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.379e-06/0.1068, allocations: 0 / 416.8 MB, free: 5.617 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.1068, allocations: 0 / 416.8 MB, free: 5.617 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002075/0.107, allocations: 273.3 kB / 417.1 MB, free: 5.301 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.015e-06/0.107, allocations: 0 / 417.1 MB, free: 5.301 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.799e-05/0.1071, allocations: 15.92 kB / 417.1 MB, free: 5.285 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.444e-06/0.1071, allocations: 0 / 417.1 MB, free: 5.285 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.79e-05/0.1072, allocations: 12 kB / 417.1 MB, free: 5.273 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.863e-06/0.1072, allocations: 0 / 417.1 MB, free: 5.273 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/0.1072, allocations: 7.938 kB / 417.1 MB, free: 5.266 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008724/0.108, allocations: 0.696 MB / 417.8 MB, free: 4.535 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001232/0.1082, allocations: 132.8 kB / 417.9 MB, free: 4.387 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.77e-05/0.1083, allocations: 27.92 kB / 418 MB, free: 4.359 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001029/0.1084, allocations: 12 kB / 418 MB, free: 4.348 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.104e-05/0.1085, allocations: 19.97 kB / 418 MB, free: 4.328 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.557e-05/0.1085, allocations: 43.94 kB / 418 MB, free: 4.285 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001203/0.1087, allocations: 143.2 kB / 418.2 MB, free: 4.145 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1087, allocations: 0 / 418.2 MB, free: 4.145 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003475/0.109, allocations: 79.98 kB / 418.2 MB, free: 4.066 MB / 350.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.0004613/0.1095, allocations: 262.2 kB / 418.5 MB, free: 3.848 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008671/0.1104, allocations: 0.7569 MB / 419.3 MB, free: 3.066 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.1104, allocations: 3.938 kB / 419.3 MB, free: 3.062 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000619/0.111, allocations: 0.6548 MB / 419.9 MB, free: 2.383 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002701/0.1113, allocations: 29.19 kB / 419.9 MB, free: 2.355 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007722/0.1121, allocations: 0.5416 MB / 420.5 MB, free: 1.785 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002433/0.1123, allocations: 0.7317 MB / 421.2 MB, free: 1.027 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.169e-05/0.1124, allocations: 12.55 kB / 421.2 MB, free: 1.012 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.608e-05/0.1124, allocations: 19.42 kB / 421.3 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of SimCode: time 1.91e-07/0.1124, allocations: 0 / 421.3 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of Templates: time 0.1548/0.2673, allocations: 3.687 MB / 424.9 MB, free: 49.68 MB / 350.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)