Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AdvancedNoise_AdvancedNoise.Examples.TimeBasedCorrelations.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.TimeBasedCorrelations,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AdvancedNoise_AdvancedNoise.Examples.TimeBasedCorrelations") translateModel(AdvancedNoise.Examples.TimeBasedCorrelations,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AdvancedNoise_AdvancedNoise.Examples.TimeBasedCorrelations") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01261/0.01261, allocations: 106.3 kB / 15.74 MB, free: 6.004 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.002145/0.002145, allocations: 196.5 kB / 16.68 MB, free: 5.93 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.566/1.566, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.02582/0.02582, allocations: 3.903 MB / 294.4 MB, free: 11 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001379/0.001379, allocations: 65.44 kB / 406.9 MB, free: 28.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1208/0.1222, allocations: 50.19 MB / 457.1 MB, free: 9.977 MB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.TimeBasedCorrelations): time 0.004509/0.1267, allocations: 1.986 MB / 459.1 MB, free: 7.977 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003885/0.1306, allocations: 1.511 MB / 460.6 MB, free: 6.461 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003983/0.1311, allocations: 8 kB / 460.6 MB, free: 6.453 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002986/0.1314, allocations: 47.41 kB / 460.6 MB, free: 6.406 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001363/0.1328, allocations: 255 kB / 460.9 MB, free: 6.156 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.001317/0.1342, allocations: 343.1 kB / 461.2 MB, free: 5.82 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001123/0.1353, allocations: 0.6434 MB / 461.9 MB, free: 5.176 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002847/0.1356, allocations: 90.02 kB / 462 MB, free: 5.082 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005339/0.1362, allocations: 259.2 kB / 462.2 MB, free: 4.828 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006103/0.1368, allocations: 271 kB / 462.5 MB, free: 4.562 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002507/0.137, allocations: 67.94 kB / 462.5 MB, free: 4.496 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009423/0.138, allocations: 355.5 kB / 462.9 MB, free: 4.148 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002061/0.1382, allocations: 123.6 kB / 463 MB, free: 4.027 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003322/0.1386, allocations: 250.8 kB / 463.3 MB, free: 3.781 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001243/0.1398, allocations: 0.7052 MB / 464 MB, free: 3.074 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.1398, allocations: 0 / 464 MB, free: 3.074 MB / 334.1 MB Notification: Performance of FrontEnd: time 4.849e-06/0.1399, allocations: 0 / 464 MB, free: 3.074 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.802e-05/0.1399, allocations: 3.938 kB / 464 MB, free: 3.07 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.00434/0.1442, allocations: 2.448 MB / 466.4 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.389e-05/0.1443, allocations: 11.97 kB / 466.4 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001972/0.1463, allocations: 172.2 kB / 466.6 MB, free: 380 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009167/0.1472, allocations: 364 kB / 466.9 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.864e-05/0.1473, allocations: 36.88 kB / 467 MB, free: 15.94 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001383/0.1475, allocations: 48.27 kB / 467 MB, free: 15.89 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001266/0.1487, allocations: 0.5641 MB / 467.6 MB, free: 15.32 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.202e-05/0.1488, allocations: 192 / 467.6 MB, free: 15.32 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.424e-05/0.1488, allocations: 15.94 kB / 467.6 MB, free: 15.31 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.698e-06/0.1488, allocations: 4 kB / 467.6 MB, free: 15.3 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001511/0.1504, allocations: 0.6308 MB / 468.2 MB, free: 14.67 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002044/0.1524, allocations: 1.139 MB / 469.4 MB, free: 13.48 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001377/0.1538, allocations: 0.6399 MB / 470 MB, free: 12.84 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009008/0.1547, allocations: 0.5018 MB / 470.5 MB, free: 12.33 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.135e-05/0.1548, allocations: 12.3 kB / 470.5 MB, free: 12.32 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001139/0.1559, allocations: 0.7442 MB / 471.3 MB, free: 11.53 MB / 350.1 MB Notification: Performance of pre-optimization done (n=57): time 2.545e-06/0.1559, allocations: 3.938 kB / 471.3 MB, free: 11.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=57): time 0.003035/0.159, allocations: 1.377 MB / 472.7 MB, free: 10.13 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.752e-05/0.1591, allocations: 138.8 kB / 472.8 MB, free: 9.969 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002775/0.1594, allocations: 254.5 kB / 473 MB, free: 9.711 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.245e-05/0.1595, allocations: 33.7 kB / 473.1 MB, free: 9.672 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001389/0.1596, allocations: 157 kB / 473.2 MB, free: 9.516 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000161/0.1598, allocations: 173.5 kB / 473.4 MB, free: 9.344 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002099/0.16, allocations: 122.2 kB / 473.5 MB, free: 9.219 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001362/0.1601, allocations: 350.8 kB / 473.9 MB, free: 8.867 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007846/0.1609, allocations: 345 kB / 474.2 MB, free: 8.531 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007866/0.1617, allocations: 353.3 kB / 474.5 MB, free: 8.188 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001871/0.1636, allocations: 0.8352 MB / 475.4 MB, free: 7.324 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.057e-06/0.1636, allocations: 0 / 475.4 MB, free: 7.324 MB / 350.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.002022/0.1656, allocations: 0.9213 MB / 476.3 MB, free: 6.383 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001427/0.1658, allocations: 99.3 kB / 476.4 MB, free: 6.273 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.197e-06/0.1658, allocations: 0 / 476.4 MB, free: 6.273 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.907e-05/0.1658, allocations: 0 / 476.4 MB, free: 6.273 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007514/0.1666, allocations: 139.8 kB / 476.5 MB, free: 6.137 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.437e-05/0.1666, allocations: 4 kB / 476.5 MB, free: 6.133 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003988/0.167, allocations: 67.48 kB / 476.6 MB, free: 6.066 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.877e-05/0.1671, allocations: 47.94 kB / 476.7 MB, free: 6.02 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,noise2.actualGlobalSeed,noise2.localSeed,globalSeed.id_impure,noise1.actualGlobalSeed,noise1.localSeed,noise2.r,noise2.bufferStartTime,noise2.buffer[2],noise2.buffer[1],noise2.state[4],noise2.state[3],noise2.state[2],noise2.state[1],noise1.r,noise1.bufferStartTime,noise1.buffer[2],noise1.buffer[1],noise1.state[4],noise1.state[3],noise1.state[2],noise1.state[1],$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (59): * Single equations (assignments): 57 * 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.0003488/0.1675, allocations: 299.8 kB / 476.9 MB, free: 5.703 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.684e-05/0.1676, allocations: 43.53 kB / 477 MB, free: 5.66 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002413/0.17, allocations: 1.127 MB / 478.1 MB, free: 4.512 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.185e-06/0.17, allocations: 7.938 kB / 478.1 MB, free: 4.504 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.436e-06/0.1701, allocations: 4 kB / 478.1 MB, free: 4.5 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.843e-06/0.1701, allocations: 0 / 478.1 MB, free: 4.5 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008044/0.1709, allocations: 0.6028 MB / 478.7 MB, free: 3.848 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.847e-06/0.1709, allocations: 0 / 478.7 MB, free: 3.848 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007402/0.1716, allocations: 103.8 kB / 478.8 MB, free: 3.746 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.576e-06/0.1717, allocations: 4 kB / 478.8 MB, free: 3.742 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.128e-05/0.1717, allocations: 31.95 kB / 478.9 MB, free: 3.711 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.051e-06/0.1718, allocations: 4 kB / 478.9 MB, free: 3.707 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.1718, allocations: 0 / 478.9 MB, free: 3.707 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00327/0.175, allocations: 1.665 MB / 480.5 MB, free: 2.008 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.041e-05/0.1751, allocations: 112.6 kB / 480.6 MB, free: 1.879 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001197/0.1753, allocations: 35.98 kB / 480.7 MB, free: 1.844 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003764/0.1757, allocations: 35.95 kB / 480.7 MB, free: 1.809 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001912/0.1759, allocations: 63.92 kB / 480.8 MB, free: 1.746 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000113/0.176, allocations: 55.92 kB / 480.8 MB, free: 1.691 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001927/0.1762, allocations: 174 kB / 481 MB, free: 1.523 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1762, allocations: 0 / 481 MB, free: 1.523 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006161/0.1768, allocations: 167.8 kB / 481.2 MB, free: 1.359 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (crossCorrelationTest.correlation.int_X,crossCorrelationTest.correlation.int_Y,crossCorrelationTest.correlation.int_X2,crossCorrelationTest.correlation.int_Y2,crossCorrelationTest.correlation.int_XY,autoCorrelationTest.correlationTest.correlation.int_X,autoCorrelationTest.correlationTest.correlation.int_Y,autoCorrelationTest.correlationTest.correlation.int_X2,autoCorrelationTest.correlationTest.correlation.int_Y2,autoCorrelationTest.correlationTest.correlation.int_XY) * Number of discrete variables: 20 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,noise1.state[1],noise1.state[2],noise1.state[3],noise1.state[4],noise1.buffer[1],noise1.buffer[2],noise1.bufferStartTime,noise1.r,noise2.state[1],noise2.state[2],noise2.state[3],noise2.state[4],noise2.buffer[1],noise2.buffer[2],noise2.bufferStartTime,noise2.r) * Number of discrete states: 20 (noise2.buffer[2],noise2.buffer[1],noise2.r,noise2.bufferStartTime,noise2.state[4],noise2.state[3],noise2.state[2],noise2.state[1],$whenCondition2,$whenCondition1,noise1.buffer[2],noise1.buffer[1],noise1.r,noise1.bufferStartTime,noise1.state[4],noise1.state[3],noise1.state[2],noise1.state[1],$whenCondition4,$whenCondition3) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 39 * 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.0007264/0.1775, allocations: 321 kB / 481.5 MB, free: 1.082 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002274/0.1798, allocations: 1.236 MB / 482.7 MB, free: 15.82 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.1798, allocations: 0 / 482.7 MB, free: 15.82 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001241/0.1811, allocations: 0.8894 MB / 483.6 MB, free: 14.9 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003499/0.1815, allocations: 58.52 kB / 483.7 MB, free: 14.85 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001986/0.1835, allocations: 1.079 MB / 484.7 MB, free: 13.74 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003433/0.1838, allocations: 0.8082 MB / 485.5 MB, free: 12.91 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003421/0.1842, allocations: 70.94 kB / 485.6 MB, free: 12.84 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001738/0.1843, allocations: 47.41 kB / 485.7 MB, free: 12.79 MB / 366.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1844, allocations: 4 kB / 485.7 MB, free: 12.79 MB / 366.1 MB Notification: Performance of Templates: time 0.01315/0.1975, allocations: 7.914 MB / 493.6 MB, free: 4.922 MB / 366.1 MB make -j1 -f AdvancedNoise_AdvancedNoise.Examples.TimeBasedCorrelations.makefile (rm -f AdvancedNoise_AdvancedNoise.Examples.TimeBasedCorrelations.pipe ; mkfifo AdvancedNoise_AdvancedNoise.Examples.TimeBasedCorrelations.pipe ; head -c 1048576 < AdvancedNoise_AdvancedNoise.Examples.TimeBasedCorrelations.pipe >> ../files/AdvancedNoise_AdvancedNoise.Examples.TimeBasedCorrelations.sim & ./AdvancedNoise_AdvancedNoise.Examples.TimeBasedCorrelations -abortSlowSimulation -alarm=480 -lv LOG_STATS > AdvancedNoise_AdvancedNoise.Examples.TimeBasedCorrelations.pipe 2>&1)