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.006731/0.006731, allocations: 104.8 kB / 15.74 MB, free: 6 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.001417/0.001417, allocations: 200 kB / 16.68 MB, free: 5.922 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.374/1.374, 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.0262/0.0262, allocations: 3.907 MB / 294.4 MB, free: 11.01 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001143/0.001143, allocations: 62.55 kB / 406.9 MB, free: 28.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08456/0.08572, allocations: 50.18 MB / 457.1 MB, free: 10 MB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.TimeBasedCorrelations): time 0.003242/0.08901, allocations: 1.987 MB / 459.1 MB, free: 8 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002336/0.09137, allocations: 1.511 MB / 460.6 MB, free: 6.484 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001144/0.09151, allocations: 3.938 kB / 460.6 MB, free: 6.48 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001613/0.09168, allocations: 47.47 kB / 460.6 MB, free: 6.434 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006382/0.09234, allocations: 255 kB / 460.9 MB, free: 6.184 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.0006618/0.09301, allocations: 343.1 kB / 461.2 MB, free: 5.848 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005543/0.09358, allocations: 0.6395 MB / 461.9 MB, free: 5.207 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001723/0.09376, allocations: 90.03 kB / 461.9 MB, free: 5.113 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002785/0.09404, allocations: 267.2 kB / 462.2 MB, free: 4.852 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003102/0.09436, allocations: 275 kB / 462.5 MB, free: 4.582 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000102/0.09447, allocations: 64 kB / 462.5 MB, free: 4.52 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005162/0.095, allocations: 351.5 kB / 462.9 MB, free: 4.176 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001273/0.09513, allocations: 127.6 kB / 463 MB, free: 4.051 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002062/0.09535, allocations: 246.9 kB / 463.2 MB, free: 3.809 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007263/0.09608, allocations: 0.7013 MB / 463.9 MB, free: 3.105 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.67e-06/0.09609, allocations: 0 / 463.9 MB, free: 3.105 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.0961, allocations: 7.938 kB / 464 MB, free: 3.098 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.033e-06/0.09612, allocations: 4 kB / 464 MB, free: 3.094 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.002797/0.09892, allocations: 2.447 MB / 466.4 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.252e-05/0.09896, allocations: 12.03 kB / 466.4 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001324/0.1003, allocations: 170.6 kB / 466.6 MB, free: 408 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006381/0.1009, allocations: 372 kB / 466.9 MB, free: 15.99 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.425e-05/0.101, allocations: 32.94 kB / 467 MB, free: 15.96 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.949e-05/0.1011, allocations: 44.28 kB / 467 MB, free: 15.92 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001171/0.1023, allocations: 0.568 MB / 467.6 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.459e-05/0.1023, allocations: 192 / 467.6 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.652e-05/0.1024, allocations: 15.94 kB / 467.6 MB, free: 15.33 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.837e-06/0.1024, allocations: 8 kB / 467.6 MB, free: 15.32 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001465/0.1039, allocations: 0.6269 MB / 468.2 MB, free: 14.69 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00188/0.1058, allocations: 1.135 MB / 469.4 MB, free: 13.51 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001286/0.1071, allocations: 0.6399 MB / 470 MB, free: 12.86 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009451/0.108, allocations: 0.5018 MB / 470.5 MB, free: 12.36 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.347e-05/0.1081, allocations: 20.2 kB / 470.5 MB, free: 12.34 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00124/0.1094, allocations: 0.7481 MB / 471.3 MB, free: 11.54 MB / 350.1 MB Notification: Performance of pre-optimization done (n=57): time 2.835e-06/0.1094, allocations: 0 / 471.3 MB, free: 11.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=57): time 0.002899/0.1123, allocations: 1.377 MB / 472.7 MB, free: 10.15 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.304e-05/0.1124, allocations: 130.8 kB / 472.8 MB, free: 9.996 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002481/0.1126, allocations: 254.5 kB / 473 MB, free: 9.738 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.545e-05/0.1127, allocations: 37.7 kB / 473.1 MB, free: 9.695 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001067/0.1128, allocations: 161 kB / 473.2 MB, free: 9.535 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001473/0.113, allocations: 173.5 kB / 473.4 MB, free: 9.363 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002069/0.1132, allocations: 122.2 kB / 473.5 MB, free: 9.238 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001769/0.1134, allocations: 350.8 kB / 473.9 MB, free: 8.887 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008435/0.1142, allocations: 345 kB / 474.2 MB, free: 8.551 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000897/0.1151, allocations: 361.2 kB / 474.6 MB, free: 8.199 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001594/0.1167, allocations: 0.8235 MB / 475.4 MB, free: 7.348 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.1167, allocations: 0 / 475.4 MB, free: 7.348 MB / 350.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.001893/0.1186, allocations: 0.9213 MB / 476.3 MB, free: 6.406 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.984e-05/0.1187, allocations: 91.38 kB / 476.4 MB, free: 6.305 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.894e-06/0.1188, allocations: 3.984 kB / 476.4 MB, free: 6.301 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.252e-05/0.1188, allocations: 4 kB / 476.4 MB, free: 6.297 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007786/0.1196, allocations: 131.8 kB / 476.5 MB, free: 6.168 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.132e-05/0.1196, allocations: 7.984 kB / 476.5 MB, free: 6.16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000384/0.12, allocations: 71.5 kB / 476.6 MB, free: 6.09 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001034/0.1201, allocations: 47.92 kB / 476.7 MB, free: 6.043 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.0003678/0.1205, allocations: 291.8 kB / 476.9 MB, free: 5.734 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001093/0.1206, allocations: 47.47 kB / 477 MB, free: 5.688 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002217/0.1228, allocations: 1.139 MB / 478.1 MB, free: 4.527 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.454e-06/0.1228, allocations: 4 kB / 478.1 MB, free: 4.523 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.014e-06/0.1228, allocations: 0 / 478.1 MB, free: 4.523 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.634e-06/0.1229, allocations: 3.984 kB / 478.1 MB, free: 4.52 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006851/0.1235, allocations: 0.595 MB / 478.7 MB, free: 3.875 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.1236, allocations: 0 / 478.7 MB, free: 3.875 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000712/0.1243, allocations: 107.8 kB / 478.8 MB, free: 3.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.887e-06/0.1243, allocations: 4 kB / 478.8 MB, free: 3.766 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.477e-05/0.1244, allocations: 27.97 kB / 478.9 MB, free: 3.738 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.265e-06/0.1244, allocations: 4 kB / 478.9 MB, free: 3.734 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.1244, allocations: 0 / 478.9 MB, free: 3.734 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00306/0.1274, allocations: 1.677 MB / 480.5 MB, free: 2.023 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.24e-05/0.1275, allocations: 112.6 kB / 480.7 MB, free: 1.895 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001062/0.1276, allocations: 31.98 kB / 480.7 MB, free: 1.863 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003808/0.128, allocations: 43.95 kB / 480.7 MB, free: 1.82 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001664/0.1282, allocations: 59.92 kB / 480.8 MB, free: 1.762 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.266e-05/0.1283, allocations: 51.92 kB / 480.8 MB, free: 1.711 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001619/0.1285, allocations: 170 kB / 481 MB, free: 1.547 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.383e-06/0.1285, allocations: 0 / 481 MB, free: 1.547 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005111/0.129, allocations: 171.8 kB / 481.2 MB, free: 1.379 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.0006624/0.1297, allocations: 325.1 kB / 481.5 MB, free: 1.098 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002129/0.1318, allocations: 1.232 MB / 482.7 MB, free: 15.84 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.1318, allocations: 0 / 482.7 MB, free: 15.84 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001238/0.1331, allocations: 0.8933 MB / 483.6 MB, free: 14.92 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00032/0.1334, allocations: 46.53 kB / 483.7 MB, free: 14.88 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001817/0.1352, allocations: 1.083 MB / 484.7 MB, free: 13.77 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000382/0.1356, allocations: 0.8004 MB / 485.5 MB, free: 12.94 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003293/0.136, allocations: 74.94 kB / 485.6 MB, free: 12.86 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001699/0.1361, allocations: 47.41 kB / 485.7 MB, free: 12.82 MB / 366.1 MB Notification: Performance of SimCode: time 3.3e-07/0.1361, allocations: 3.938 kB / 485.7 MB, free: 12.81 MB / 366.1 MB Notification: Performance of Templates: time 0.01357/0.1497, allocations: 8.082 MB / 493.7 MB, free: 4.781 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)