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.001543/0.001543, allocations: 103.1 kB / 16.41 MB, free: 6.457 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.001238/0.001238, allocations: 189.2 kB / 17.34 MB, free: 5.742 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.415/1.415, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.04251/0.04251, allocations: 3.914 MB / 295.1 MB, free: 11.02 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001894/0.001894, allocations: 63.17 kB / 407.6 MB, free: 28.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08416/0.08606, allocations: 50.19 MB / 457.8 MB, free: 9.996 MB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.TimeBasedNoise): time 0.002619/0.08868, allocations: 1.519 MB / 459.3 MB, free: 8.465 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002052/0.09073, allocations: 1.157 MB / 460.4 MB, free: 7.301 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.391e-05/0.09079, allocations: 3.938 kB / 460.5 MB, free: 7.297 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001354/0.09093, allocations: 31.67 kB / 460.5 MB, free: 7.266 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.863e-05/0.091, allocations: 23.8 kB / 460.5 MB, free: 7.242 MB / 334.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.0006894/0.09168, allocations: 243.3 kB / 460.7 MB, free: 7.004 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000317/0.092, allocations: 255.5 kB / 461 MB, free: 6.754 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.988e-05/0.09204, allocations: 5.562 kB / 461 MB, free: 6.75 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001734/0.09221, allocations: 103.7 kB / 461.1 MB, free: 6.648 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001152/0.09233, allocations: 75.61 kB / 461.2 MB, free: 6.574 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.027e-05/0.09236, allocations: 12 kB / 461.2 MB, free: 6.562 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002755/0.09264, allocations: 171.8 kB / 461.4 MB, free: 6.395 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.118e-05/0.09269, allocations: 31.91 kB / 461.4 MB, free: 6.363 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.969e-05/0.09279, allocations: 79.48 kB / 461.5 MB, free: 6.285 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004021/0.09319, allocations: 287 kB / 461.7 MB, free: 6.004 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.09319, allocations: 0 / 461.7 MB, free: 6.004 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.09319, allocations: 0 / 461.7 MB, free: 6.004 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.105e-05/0.09321, allocations: 0 / 461.7 MB, free: 6.004 MB / 334.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.002668/0.09587, allocations: 2.274 MB / 464 MB, free: 3.664 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.584e-05/0.09591, allocations: 8.031 kB / 464 MB, free: 3.656 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006402/0.09655, allocations: 108.7 kB / 464.1 MB, free: 3.551 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003578/0.09691, allocations: 259.8 kB / 464.4 MB, free: 3.258 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.732e-05/0.09693, allocations: 8.375 kB / 464.4 MB, free: 3.25 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.506e-05/0.09698, allocations: 16.36 kB / 464.4 MB, free: 3.234 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005661/0.09755, allocations: 251.6 kB / 464.7 MB, free: 2.977 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.03e-05/0.09756, allocations: 7.938 kB / 464.7 MB, free: 2.969 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.215e-05/0.09758, allocations: 4 kB / 464.7 MB, free: 2.965 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.753e-06/0.09759, allocations: 4 kB / 464.7 MB, free: 2.961 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004007/0.09799, allocations: 219.8 kB / 464.9 MB, free: 2.746 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003107/0.0983, allocations: 250.4 kB / 465.1 MB, free: 2.449 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003632/0.09866, allocations: 217.2 kB / 465.3 MB, free: 2.219 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003051/0.09896, allocations: 193.6 kB / 465.5 MB, free: 2.023 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.364e-06/0.09897, allocations: 0 / 465.5 MB, free: 2.023 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006182/0.09959, allocations: 0.5211 MB / 466 MB, free: 1.449 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.152e-06/0.09959, allocations: 4 kB / 466.1 MB, free: 1.445 MB / 334.1 MB Notification: Performance of matching and sorting (n=22): time 0.001271/0.1009, allocations: 0.7739 MB / 466.8 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001159/0.101, allocations: 156.5 kB / 467 MB, free: 480 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002313/0.1012, allocations: 219 kB / 467.2 MB, free: 248 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.067e-05/0.1012, allocations: 33.7 kB / 467.2 MB, free: 208 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.233e-05/0.1013, allocations: 108.7 kB / 467.3 MB, free: 96 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.055e-05/0.1014, allocations: 43.59 kB / 467.4 MB, free: 52 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001081/0.1015, allocations: 65.73 kB / 467.4 MB, free: 15.98 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000169/0.1016, allocations: 330.8 kB / 467.8 MB, free: 15.65 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002534/0.1019, allocations: 136.2 kB / 467.9 MB, free: 15.51 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002392/0.1021, allocations: 140.4 kB / 468 MB, free: 15.38 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006335/0.1028, allocations: 464.4 kB / 468.5 MB, free: 14.89 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.1028, allocations: 0 / 468.5 MB, free: 14.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006925/0.1035, allocations: 467.1 kB / 468.9 MB, free: 14.42 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.88e-05/0.1036, allocations: 97.86 kB / 469 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.608e-06/0.1036, allocations: 0 / 469 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.695e-05/0.1036, allocations: 0 / 469 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000128/0.1037, allocations: 15.98 kB / 469.1 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.059e-06/0.1037, allocations: 0 / 469.1 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001016/0.1038, allocations: 27.88 kB / 469.1 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.724e-05/0.1039, allocations: 32.61 kB / 469.1 MB, free: 14.24 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.0002642/0.1041, allocations: 268.1 kB / 469.4 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.748e-05/0.1042, allocations: 32.05 kB / 469.4 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.278e-05/0.1042, allocations: 13.41 kB / 469.4 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.1042, allocations: 3.938 kB / 469.4 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.491e-06/0.1042, allocations: 4 kB / 469.4 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.946e-06/0.1042, allocations: 0 / 469.4 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002837/0.1045, allocations: 273.4 kB / 469.7 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.1045, allocations: 0 / 469.7 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.164e-05/0.1046, allocations: 15.98 kB / 469.7 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.1046, allocations: 0 / 469.7 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.176e-05/0.1046, allocations: 15.97 kB / 469.7 MB, free: 13.56 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.512e-06/0.1046, allocations: 3.938 kB / 469.7 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/0.1046, allocations: 4 kB / 469.7 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001068/0.1057, allocations: 0.7078 MB / 470.4 MB, free: 12.81 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001716/0.1059, allocations: 136.9 kB / 470.6 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.883e-05/0.1059, allocations: 27.92 kB / 470.6 MB, free: 12.63 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001076/0.106, allocations: 11.98 kB / 470.6 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.841e-05/0.1061, allocations: 23.97 kB / 470.6 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.376e-05/0.1062, allocations: 39.94 kB / 470.7 MB, free: 12.55 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001464/0.1064, allocations: 147.2 kB / 470.8 MB, free: 12.41 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1064, allocations: 0 / 470.8 MB, free: 12.41 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003478/0.1067, allocations: 75.94 kB / 470.9 MB, free: 12.34 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.0006/0.1073, allocations: 257.4 kB / 471.1 MB, free: 12.12 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009329/0.1082, allocations: 0.561 MB / 471.7 MB, free: 11.54 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.97e-06/0.1082, allocations: 4 kB / 471.7 MB, free: 11.53 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005512/0.1088, allocations: 410.8 kB / 472.1 MB, free: 11.11 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002711/0.1091, allocations: 32.05 kB / 472.1 MB, free: 11.07 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008885/0.11, allocations: 0.5277 MB / 472.7 MB, free: 10.52 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004022/0.1104, allocations: 0.7349 MB / 473.4 MB, free: 9.758 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.19e-05/0.1104, allocations: 16.55 kB / 473.4 MB, free: 9.738 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.306e-05/0.1105, allocations: 15.44 kB / 473.4 MB, free: 9.723 MB / 350.1 MB Notification: Performance of SimCode: time 4.61e-07/0.1105, allocations: 0 / 473.4 MB, free: 9.723 MB / 350.1 MB Notification: Performance of Templates: time 0.008686/0.1191, allocations: 3.951 MB / 477.4 MB, free: 5.801 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 -s gbode -lv LOG_STATS > AdvancedNoise_AdvancedNoise.Examples.TimeBasedNoise.pipe 2>&1)