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.001108/0.001108, allocations: 109.3 kB / 16.41 MB, free: 6.496 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.001059/0.001059, allocations: 185.5 kB / 17.34 MB, free: 5.766 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.331/1.331, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.03343/0.03343, allocations: 3.903 MB / 295.1 MB, free: 11.05 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001178/0.001178, allocations: 62.19 kB / 407.6 MB, free: 28.26 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09112/0.09231, allocations: 50.18 MB / 457.8 MB, free: 10.04 MB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.TimeBasedCorrelations): time 0.002894/0.09525, allocations: 1.995 MB / 459.8 MB, free: 8.031 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00253/0.09781, allocations: 1.503 MB / 461.3 MB, free: 6.523 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001502/0.09798, allocations: 11.94 kB / 461.3 MB, free: 6.512 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001849/0.09817, allocations: 55.41 kB / 461.3 MB, free: 6.457 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007091/0.09892, allocations: 251 kB / 461.6 MB, free: 6.211 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.0008076/0.09974, allocations: 343.2 kB / 461.9 MB, free: 5.875 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006024/0.1004, allocations: 0.6395 MB / 462.5 MB, free: 5.234 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001805/0.1005, allocations: 90.03 kB / 462.6 MB, free: 5.141 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002854/0.1008, allocations: 267.2 kB / 462.9 MB, free: 4.879 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003207/0.1012, allocations: 271.1 kB / 463.2 MB, free: 4.613 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.698e-05/0.1013, allocations: 64 kB / 463.2 MB, free: 4.551 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005085/0.1018, allocations: 355.5 kB / 463.6 MB, free: 4.203 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001146/0.1019, allocations: 119.7 kB / 463.7 MB, free: 4.086 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001994/0.1021, allocations: 246.9 kB / 463.9 MB, free: 3.844 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007188/0.1029, allocations: 0.7091 MB / 464.6 MB, free: 3.133 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.1029, allocations: 3.984 kB / 464.6 MB, free: 3.129 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.1029, allocations: 0 / 464.6 MB, free: 3.129 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.221e-06/0.1029, allocations: 7.938 kB / 464.7 MB, free: 3.121 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.002729/0.1056, allocations: 2.447 MB / 467.1 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.049e-05/0.1057, allocations: 15.97 kB / 467.1 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00131/0.107, allocations: 156.3 kB / 467.3 MB, free: 444 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006522/0.1077, allocations: 371.9 kB / 467.6 MB, free: 32 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.74e-05/0.1078, allocations: 37.02 kB / 467.7 MB, free: 15.99 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.951e-05/0.1078, allocations: 40.28 kB / 467.7 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001176/0.109, allocations: 0.5718 MB / 468.3 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.059e-05/0.1091, allocations: 192 / 468.3 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.305e-05/0.1091, allocations: 15.94 kB / 468.3 MB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.887e-06/0.1091, allocations: 8 kB / 468.3 MB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00147/0.1106, allocations: 0.6268 MB / 468.9 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001847/0.1125, allocations: 1.131 MB / 470.1 MB, free: 13.55 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00131/0.1138, allocations: 0.6438 MB / 470.7 MB, free: 12.89 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000886/0.1147, allocations: 0.5095 MB / 471.2 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.963e-05/0.1147, allocations: 4.328 kB / 471.2 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001208/0.116, allocations: 0.7521 MB / 472 MB, free: 11.58 MB / 350.1 MB Notification: Performance of pre-optimization done (n=57): time 2.405e-06/0.116, allocations: 3.938 kB / 472 MB, free: 11.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=57): time 0.002911/0.1189, allocations: 1.369 MB / 473.3 MB, free: 10.19 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.643e-05/0.119, allocations: 142.7 kB / 473.5 MB, free: 10.02 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002631/0.1193, allocations: 250.5 kB / 473.7 MB, free: 9.77 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.608e-05/0.1193, allocations: 37.7 kB / 473.8 MB, free: 9.727 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001032/0.1194, allocations: 157 kB / 473.9 MB, free: 9.57 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001365/0.1196, allocations: 177.5 kB / 474.1 MB, free: 9.395 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000216/0.1198, allocations: 122.2 kB / 474.2 MB, free: 9.27 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000139/0.12, allocations: 350.8 kB / 474.6 MB, free: 8.918 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000771/0.1207, allocations: 345 kB / 474.9 MB, free: 8.582 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000783/0.1215, allocations: 357.3 kB / 475.2 MB, free: 8.234 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001575/0.1231, allocations: 0.8235 MB / 476.1 MB, free: 7.383 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.1231, allocations: 0 / 476.1 MB, free: 7.383 MB / 350.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.001881/0.125, allocations: 0.9251 MB / 477 MB, free: 6.438 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.088e-05/0.1251, allocations: 91.38 kB / 477.1 MB, free: 6.336 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.035e-06/0.1251, allocations: 0 / 477.1 MB, free: 6.336 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.782e-05/0.1252, allocations: 4 kB / 477.1 MB, free: 6.332 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007401/0.1259, allocations: 131.8 kB / 477.2 MB, free: 6.203 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.418e-06/0.1259, allocations: 4 kB / 477.2 MB, free: 6.199 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003766/0.1263, allocations: 71.48 kB / 477.3 MB, free: 6.129 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.498e-05/0.1264, allocations: 51.92 kB / 477.3 MB, free: 6.078 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.0003334/0.1267, allocations: 295.8 kB / 477.6 MB, free: 5.766 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.571e-05/0.1268, allocations: 43.53 kB / 477.7 MB, free: 5.723 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002236/0.1291, allocations: 1.131 MB / 478.8 MB, free: 4.57 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.618e-06/0.1291, allocations: 7.938 kB / 478.8 MB, free: 4.562 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/0.1291, allocations: 4 kB / 478.8 MB, free: 4.559 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.079e-06/0.1291, allocations: 0 / 478.8 MB, free: 4.559 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006128/0.1298, allocations: 0.6028 MB / 479.4 MB, free: 3.906 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.105e-06/0.1298, allocations: 0 / 479.4 MB, free: 3.906 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007291/0.1305, allocations: 107.8 kB / 479.5 MB, free: 3.801 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.117e-06/0.1305, allocations: 0 / 479.5 MB, free: 3.801 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.802e-05/0.1306, allocations: 27.97 kB / 479.5 MB, free: 3.773 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.955e-06/0.1306, allocations: 4 kB / 479.5 MB, free: 3.77 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.1306, allocations: 0 / 479.5 MB, free: 3.77 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003111/0.1337, allocations: 1.681 MB / 481.2 MB, free: 2.055 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.382e-05/0.1338, allocations: 112.6 kB / 481.3 MB, free: 1.926 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001094/0.1339, allocations: 27.98 kB / 481.4 MB, free: 1.898 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003721/0.1343, allocations: 43.95 kB / 481.4 MB, free: 1.855 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001669/0.1345, allocations: 51.92 kB / 481.5 MB, free: 1.805 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001031/0.1346, allocations: 59.92 kB / 481.5 MB, free: 1.746 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001465/0.1347, allocations: 170 kB / 481.7 MB, free: 1.582 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1348, allocations: 4 kB / 481.7 MB, free: 1.578 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005268/0.1353, allocations: 167.8 kB / 481.8 MB, free: 1.414 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.0006259/0.1359, allocations: 321.9 kB / 482.2 MB, free: 1.137 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002155/0.1381, allocations: 1.228 MB / 483.4 MB, free: 15.88 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.1381, allocations: 4 kB / 483.4 MB, free: 15.88 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001223/0.1393, allocations: 0.8933 MB / 484.3 MB, free: 14.96 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003367/0.1397, allocations: 48.48 kB / 484.3 MB, free: 14.91 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001932/0.1416, allocations: 1.108 MB / 485.4 MB, free: 13.77 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003286/0.142, allocations: 0.8043 MB / 486.2 MB, free: 12.94 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002434/0.1422, allocations: 55.39 kB / 486.3 MB, free: 12.88 MB / 366.1 MB Notification: Performance of SimCode: time 4.3e-07/0.1422, allocations: 3.938 kB / 486.3 MB, free: 12.88 MB / 366.1 MB Notification: Performance of Templates: time 0.01234/0.1546, allocations: 8.266 MB / 494.6 MB, free: 4.652 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)