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.001161/0.001161, allocations: 91.77 kB / 15.36 MB, free: 0.7383 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.00944/0.009441, allocations: 171.5 kB / 16.26 MB, free: 6.613 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.629/1.629, allocations: 223.3 MB / 240.3 MB, free: 5.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.1706/0.1706, allocations: 3.886 MB / 295.3 MB, free: 3.867 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003447/0.000345, allocations: 8 kB / 357.2 MB, free: 3.203 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.1083, allocations: 51.17 MB / 408.4 MB, free: 15.99 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.TimeBasedNoise): time 0.001824/0.1101, allocations: 1.268 MB / 409.7 MB, free: 14.71 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002113/0.1123, allocations: 1.169 MB / 410.8 MB, free: 13.53 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001147/0.1124, allocations: 7.938 kB / 410.9 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000114/0.1126, allocations: 27.78 kB / 410.9 MB, free: 13.5 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.524e-05/0.1127, allocations: 15.88 kB / 410.9 MB, free: 13.48 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.0007759/0.1134, allocations: 199.6 kB / 411.1 MB, free: 13.29 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002666/0.1137, allocations: 223.5 kB / 411.3 MB, free: 13.07 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.592e-05/0.1138, allocations: 13.55 kB / 411.3 MB, free: 13.05 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002011/0.114, allocations: 91.61 kB / 411.4 MB, free: 12.96 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001064/0.1141, allocations: 75.61 kB / 411.5 MB, free: 12.89 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.179e-05/0.1141, allocations: 8 kB / 411.5 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003165/0.1145, allocations: 163.8 kB / 411.7 MB, free: 12.72 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.698e-05/0.1145, allocations: 23.86 kB / 411.7 MB, free: 12.7 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001166/0.1147, allocations: 105.3 kB / 411.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004276/0.1151, allocations: 283.2 kB / 412.1 MB, free: 12.31 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.1151, allocations: 0 / 412.1 MB, free: 12.31 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.1151, allocations: 3.938 kB / 412.1 MB, free: 12.31 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.192e-06/0.1151, allocations: 0 / 412.1 MB, free: 12.31 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.002465/0.1176, allocations: 2.197 MB / 414.3 MB, free: 10.04 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.554e-05/0.1176, allocations: 8.031 kB / 414.3 MB, free: 10.04 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006773/0.1183, allocations: 104.6 kB / 414.4 MB, free: 9.934 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003768/0.1187, allocations: 259.6 kB / 414.6 MB, free: 9.641 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.829e-05/0.1188, allocations: 8.375 kB / 414.6 MB, free: 9.633 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.867e-05/0.1188, allocations: 20.3 kB / 414.7 MB, free: 9.613 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005216/0.1193, allocations: 267.5 kB / 414.9 MB, free: 9.34 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.536e-05/0.1194, allocations: 0 / 414.9 MB, free: 9.34 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.399e-05/0.1194, allocations: 4 kB / 414.9 MB, free: 9.336 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.113e-06/0.1194, allocations: 4 kB / 414.9 MB, free: 9.332 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004521/0.1199, allocations: 231.8 kB / 415.1 MB, free: 9.105 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004236/0.1203, allocations: 254.2 kB / 415.4 MB, free: 8.805 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005106/0.1209, allocations: 329.1 kB / 415.7 MB, free: 8.465 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004158/0.1213, allocations: 301.6 kB / 416 MB, free: 8.164 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.058e-05/0.1213, allocations: 8.375 kB / 416 MB, free: 8.156 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006704/0.122, allocations: 0.5185 MB / 416.5 MB, free: 7.582 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 5.4e-06/0.122, allocations: 0 / 416.5 MB, free: 7.582 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.001311/0.1233, allocations: 0.7778 MB / 417.3 MB, free: 6.785 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001/0.1235, allocations: 152.6 kB / 417.5 MB, free: 6.605 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002409/0.1237, allocations: 219 kB / 417.7 MB, free: 6.383 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.437e-05/0.1238, allocations: 33.7 kB / 417.7 MB, free: 6.344 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.131e-05/0.1239, allocations: 112.6 kB / 417.8 MB, free: 6.23 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.453e-05/0.1239, allocations: 43.39 kB / 417.9 MB, free: 6.188 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.837e-05/0.124, allocations: 33.7 kB / 417.9 MB, free: 6.148 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001427/0.1241, allocations: 334.8 kB / 418.2 MB, free: 5.812 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002438/0.1244, allocations: 144.2 kB / 418.4 MB, free: 5.668 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002303/0.1246, allocations: 140.4 kB / 418.5 MB, free: 5.531 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006158/0.1252, allocations: 480.5 kB / 419 MB, free: 5.035 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.1253, allocations: 0 / 419 MB, free: 5.035 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000758/0.126, allocations: 471 kB / 419.4 MB, free: 4.559 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001247/0.1262, allocations: 95.36 kB / 419.5 MB, free: 4.453 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.967e-06/0.1262, allocations: 0 / 419.5 MB, free: 4.453 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.968e-05/0.1262, allocations: 0 / 419.5 MB, free: 4.453 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001599/0.1264, allocations: 23.92 kB / 419.5 MB, free: 4.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.337e-06/0.1264, allocations: 0 / 419.5 MB, free: 4.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001325/0.1265, allocations: 31.89 kB / 419.6 MB, free: 4.398 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.819e-05/0.1266, allocations: 31.95 kB / 419.6 MB, free: 4.367 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.0003278/0.1269, allocations: 259.7 kB / 419.9 MB, free: 4.09 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.847e-05/0.127, allocations: 27.72 kB / 419.9 MB, free: 4.062 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.87e-05/0.1271, allocations: 13.41 kB / 419.9 MB, free: 4.043 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.885e-06/0.1271, allocations: 4.188 kB / 419.9 MB, free: 4.039 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.375e-06/0.1271, allocations: 4 kB / 419.9 MB, free: 4.035 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-06/0.1271, allocations: 3.938 kB / 419.9 MB, free: 4.031 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003266/0.1275, allocations: 269.3 kB / 420.2 MB, free: 3.719 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.498e-06/0.1275, allocations: 4 kB / 420.2 MB, free: 3.715 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.7e-05/0.1275, allocations: 15.98 kB / 420.2 MB, free: 3.699 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.017e-06/0.1276, allocations: 0 / 420.2 MB, free: 3.699 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.502e-05/0.1276, allocations: 15.97 kB / 420.2 MB, free: 3.684 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.178e-06/0.1276, allocations: 4 kB / 420.2 MB, free: 3.68 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.538e-06/0.1276, allocations: 0 / 420.2 MB, free: 3.68 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001011/0.1286, allocations: 0.7109 MB / 420.9 MB, free: 2.938 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001596/0.1288, allocations: 128.8 kB / 421.1 MB, free: 2.793 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.249e-05/0.1289, allocations: 27.92 kB / 421.1 MB, free: 2.766 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001154/0.129, allocations: 23.98 kB / 421.1 MB, free: 2.742 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.847e-05/0.1291, allocations: 19.97 kB / 421.1 MB, free: 2.723 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.143e-05/0.1292, allocations: 39.89 kB / 421.2 MB, free: 2.684 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000146/0.1293, allocations: 147.2 kB / 421.3 MB, free: 2.539 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.1293, allocations: 0 / 421.3 MB, free: 2.539 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003629/0.1297, allocations: 76 kB / 421.4 MB, free: 2.465 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.000605/0.1303, allocations: 268 kB / 421.6 MB, free: 2.242 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009926/0.1313, allocations: 0.7563 MB / 422.4 MB, free: 1.461 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.498e-05/0.1314, allocations: 0 / 422.4 MB, free: 1.461 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007073/0.1321, allocations: 0.6588 MB / 423.1 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003042/0.1324, allocations: 28.12 kB / 423.1 MB, free: 0.75 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001084/0.1335, allocations: 0.5598 MB / 423.6 MB, free: 160 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2008/0.3343, allocations: 0.7232 MB / 424.4 MB, free: 46.85 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.894e-05/0.3344, allocations: 14.03 kB / 424.4 MB, free: 46.85 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.403e-05/0.3345, allocations: 18.41 kB / 424.4 MB, free: 46.84 MB / 350.1 MB Notification: Performance of SimCode: time 1.523e-06/0.3345, allocations: 0 / 424.4 MB, free: 46.84 MB / 350.1 MB Notification: Performance of Templates: time 0.007163/0.3417, allocations: 3.679 MB / 428.1 MB, free: 46.59 MB / 350.1 MB make -j1 -f AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: