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.001259/0.001259, allocations: 107.5 kB / 16.41 MB, free: 6.508 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.001297/0.001297, allocations: 187 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.27/1.27, 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.03887/0.03887, allocations: 3.907 MB / 295.1 MB, free: 11.03 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00121/0.00121, allocations: 60.12 kB / 407.6 MB, free: 28.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06765/0.06887, allocations: 50.2 MB / 457.8 MB, free: 10.01 MB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.TimeBasedNoise): time 0.00241/0.07132, allocations: 1.509 MB / 459.3 MB, free: 8.488 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001908/0.07325, allocations: 1.153 MB / 460.4 MB, free: 7.328 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.716e-05/0.07334, allocations: 7.938 kB / 460.4 MB, free: 7.32 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001288/0.07348, allocations: 27.67 kB / 460.5 MB, free: 7.293 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.521e-05/0.07357, allocations: 27.78 kB / 460.5 MB, free: 7.266 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.0007248/0.0743, allocations: 235.3 kB / 460.7 MB, free: 7.035 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002783/0.07459, allocations: 267.4 kB / 461 MB, free: 6.773 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.101e-05/0.07464, allocations: 9.562 kB / 461 MB, free: 6.766 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001797/0.07483, allocations: 107.7 kB / 461.1 MB, free: 6.66 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001044/0.07494, allocations: 79.61 kB / 461.2 MB, free: 6.582 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.333e-05/0.07498, allocations: 12 kB / 461.2 MB, free: 6.57 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002911/0.07528, allocations: 175.7 kB / 461.4 MB, free: 6.398 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.401e-05/0.07534, allocations: 23.92 kB / 461.4 MB, free: 6.375 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.109e-05/0.07543, allocations: 87.53 kB / 461.5 MB, free: 6.289 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003718/0.07581, allocations: 287.1 kB / 461.8 MB, free: 6.008 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.07582, allocations: 4 kB / 461.8 MB, free: 6.004 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.07583, allocations: 0 / 461.8 MB, free: 6.004 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.37e-06/0.07584, allocations: 0 / 461.8 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.002211/0.07806, allocations: 2.228 MB / 464 MB, free: 3.707 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.319e-05/0.0781, allocations: 12.03 kB / 464 MB, free: 3.695 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000633/0.07874, allocations: 101.9 kB / 464.1 MB, free: 3.598 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002893/0.07904, allocations: 255.8 kB / 464.3 MB, free: 3.309 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.206e-05/0.07907, allocations: 8.312 kB / 464.4 MB, free: 3.301 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.317e-05/0.0791, allocations: 16.31 kB / 464.4 MB, free: 3.285 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003967/0.07951, allocations: 259.6 kB / 464.6 MB, free: 3.02 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.855e-06/0.07952, allocations: 0 / 464.6 MB, free: 3.02 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.878e-05/0.07955, allocations: 4 kB / 464.6 MB, free: 3.016 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.128e-06/0.07956, allocations: 0 / 464.6 MB, free: 3.016 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003846/0.07995, allocations: 227.8 kB / 464.8 MB, free: 2.793 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002455/0.0802, allocations: 254.3 kB / 465.1 MB, free: 2.492 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003883/0.0806, allocations: 317.1 kB / 465.4 MB, free: 2.164 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003333/0.08094, allocations: 302 kB / 465.7 MB, free: 1.863 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.276e-05/0.08097, allocations: 3.938 kB / 465.7 MB, free: 1.859 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005179/0.08149, allocations: 0.5169 MB / 466.2 MB, free: 1.289 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.583e-06/0.0815, allocations: 0 / 466.2 MB, free: 1.289 MB / 334.1 MB Notification: Performance of matching and sorting (n=22): time 0.001136/0.08264, allocations: 0.7699 MB / 467 MB, free: 0.5 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.265e-05/0.08275, allocations: 156.5 kB / 467.1 MB, free: 324 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001912/0.08295, allocations: 223.1 kB / 467.4 MB, free: 88 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.209e-05/0.08298, allocations: 25.7 kB / 467.4 MB, free: 56 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.854e-05/0.08305, allocations: 112.7 kB / 467.5 MB, free: 15.94 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.409e-05/0.0831, allocations: 43.31 kB / 467.5 MB, free: 15.9 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.463e-05/0.0832, allocations: 57.67 kB / 467.6 MB, free: 15.84 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001069/0.08332, allocations: 338.8 kB / 467.9 MB, free: 15.5 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002372/0.08356, allocations: 136.2 kB / 468.1 MB, free: 15.36 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002239/0.08379, allocations: 152.3 kB / 468.2 MB, free: 15.21 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005425/0.08435, allocations: 464.4 kB / 468.7 MB, free: 14.73 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.003e-06/0.08436, allocations: 0 / 468.7 MB, free: 14.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006338/0.085, allocations: 451.1 kB / 469.1 MB, free: 14.27 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.9e-05/0.08509, allocations: 95.36 kB / 469.2 MB, free: 14.17 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.148e-06/0.0851, allocations: 0 / 469.2 MB, free: 14.17 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.351e-05/0.08512, allocations: 4 kB / 469.2 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001229/0.08524, allocations: 23.92 kB / 469.2 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.438e-06/0.08526, allocations: 0 / 469.2 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001049/0.08537, allocations: 23.89 kB / 469.2 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.183e-05/0.08543, allocations: 36.61 kB / 469.3 MB, free: 14.08 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.000224/0.08566, allocations: 256.2 kB / 469.5 MB, free: 13.81 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.964e-05/0.08572, allocations: 31.7 kB / 469.6 MB, free: 13.78 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.944e-05/0.08576, allocations: 17.58 kB / 469.6 MB, free: 13.76 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.08577, allocations: 8 kB / 469.6 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/0.08578, allocations: 3.938 kB / 469.6 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.08579, allocations: 0 / 469.6 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002206/0.08601, allocations: 277.3 kB / 469.9 MB, free: 13.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.08602, allocations: 0 / 469.9 MB, free: 13.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.475e-05/0.08609, allocations: 7.984 kB / 469.9 MB, free: 13.42 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.188e-06/0.0861, allocations: 4 kB / 469.9 MB, free: 13.42 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.865e-05/0.08614, allocations: 15.98 kB / 469.9 MB, free: 13.4 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.866e-06/0.08615, allocations: 3.938 kB / 469.9 MB, free: 13.4 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.08615, allocations: 0 / 469.9 MB, free: 13.4 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009339/0.08709, allocations: 0.6922 MB / 470.6 MB, free: 12.67 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001313/0.08723, allocations: 132.7 kB / 470.7 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.586e-05/0.08731, allocations: 31.86 kB / 470.7 MB, free: 12.49 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001118/0.08742, allocations: 11.98 kB / 470.8 MB, free: 12.48 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.929e-05/0.08751, allocations: 23.98 kB / 470.8 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.56e-05/0.08758, allocations: 47.86 kB / 470.8 MB, free: 12.41 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001157/0.08771, allocations: 143.2 kB / 471 MB, free: 12.27 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.08771, allocations: 0 / 471 MB, free: 12.27 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003273/0.08805, allocations: 79.98 kB / 471 MB, free: 12.19 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.0004511/0.0885, allocations: 258.5 kB / 471.3 MB, free: 11.98 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000916/0.08943, allocations: 0.7525 MB / 472.1 MB, free: 11.2 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.08945, allocations: 0 / 472.1 MB, free: 11.2 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006335/0.09009, allocations: 0.651 MB / 472.7 MB, free: 10.52 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002513/0.09035, allocations: 32.11 kB / 472.7 MB, free: 10.49 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007465/0.09111, allocations: 0.5414 MB / 473.3 MB, free: 9.918 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002693/0.09139, allocations: 0.7351 MB / 474 MB, free: 9.156 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.049e-05/0.09144, allocations: 15.44 kB / 474 MB, free: 9.141 MB / 350.1 MB Notification: Performance of SimCode: time 2.81e-07/0.09144, allocations: 0 / 474 MB, free: 9.141 MB / 350.1 MB Notification: Performance of Templates: time 0.005591/0.09704, allocations: 3.669 MB / 477.7 MB, free: 5.492 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)