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.001326/0.001332, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001742/0.001742, allocations: 194.3 kB / 16.53 MB, free: 6.664 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.366/1.366, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.153/0.153, allocations: 3.888 MB / 294.3 MB, free: 3.27 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001329/0.001329, allocations: 63.89 kB / 355.5 MB, free: 3.59 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09576/0.09711, allocations: 50.19 MB / 405.7 MB, free: 1.359 MB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.TimeBasedCorrelations): time 0.003614/0.1008, allocations: 1.981 MB / 407.6 MB, free: 15.36 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002805/0.1036, allocations: 1.507 MB / 409.1 MB, free: 13.85 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002414/0.1039, allocations: 11.94 kB / 409.2 MB, free: 13.84 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001975/0.1041, allocations: 51.34 kB / 409.2 MB, free: 13.79 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008703/0.105, allocations: 259 kB / 409.5 MB, free: 13.53 MB / 350.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.0008263/0.1058, allocations: 339.2 kB / 409.8 MB, free: 13.2 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006523/0.1065, allocations: 0.6356 MB / 410.4 MB, free: 12.56 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002113/0.1067, allocations: 102 kB / 410.5 MB, free: 12.46 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003628/0.1071, allocations: 259.2 kB / 410.8 MB, free: 12.21 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003643/0.1075, allocations: 271 kB / 411 MB, free: 11.95 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001327/0.1076, allocations: 68 kB / 411.1 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005613/0.1082, allocations: 343.5 kB / 411.4 MB, free: 11.54 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00014/0.1083, allocations: 123.6 kB / 411.6 MB, free: 11.42 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002412/0.1086, allocations: 242.9 kB / 411.8 MB, free: 11.18 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000843/0.1094, allocations: 0.7016 MB / 412.5 MB, free: 10.48 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.91e-06/0.1094, allocations: 0 / 412.5 MB, free: 10.48 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1094, allocations: 0 / 412.5 MB, free: 10.48 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.363e-05/0.1095, allocations: 4 kB / 412.5 MB, free: 10.48 MB / 350.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.003043/0.1125, allocations: 2.451 MB / 415 MB, free: 7.953 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.113e-05/0.1126, allocations: 12.03 kB / 415 MB, free: 7.941 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001395/0.114, allocations: 162.8 kB / 415.1 MB, free: 7.785 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006958/0.1147, allocations: 371.9 kB / 415.5 MB, free: 7.383 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.163e-05/0.1148, allocations: 36.94 kB / 415.5 MB, free: 7.348 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.896e-05/0.1149, allocations: 44.28 kB / 415.6 MB, free: 7.305 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001254/0.1161, allocations: 0.5679 MB / 416.1 MB, free: 6.73 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.354e-05/0.1161, allocations: 192 / 416.1 MB, free: 6.73 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.881e-05/0.1162, allocations: 19.94 kB / 416.2 MB, free: 6.711 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.005e-06/0.1162, allocations: 4 kB / 416.2 MB, free: 6.707 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001649/0.1179, allocations: 0.6308 MB / 416.8 MB, free: 6.074 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002053/0.1199, allocations: 1.139 MB / 417.9 MB, free: 4.887 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001439/0.1214, allocations: 0.6399 MB / 418.6 MB, free: 4.238 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001002/0.1224, allocations: 0.5018 MB / 419.1 MB, free: 3.734 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.308e-05/0.1225, allocations: 12.31 kB / 419.1 MB, free: 3.723 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001204/0.1237, allocations: 0.748 MB / 419.8 MB, free: 2.926 MB / 350.1 MB Notification: Performance of pre-optimization done (n=57): time 3.476e-06/0.1237, allocations: 0 / 419.8 MB, free: 2.926 MB / 350.1 MB Notification: Performance of matching and sorting (n=57): time 0.002981/0.1267, allocations: 1.377 MB / 421.2 MB, free: 1.531 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001009/0.1268, allocations: 130.8 kB / 421.3 MB, free: 1.379 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002986/0.1271, allocations: 254.5 kB / 421.6 MB, free: 1.117 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.691e-05/0.1272, allocations: 45.64 kB / 421.6 MB, free: 1.066 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001102/0.1273, allocations: 160.9 kB / 421.8 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001575/0.1275, allocations: 173.5 kB / 422 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002173/0.1277, allocations: 118.2 kB / 422.1 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001364/0.1279, allocations: 354.8 kB / 422.4 MB, free: 264 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1765/0.3043, allocations: 338.6 kB / 422.7 MB, free: 49.6 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009401/0.3053, allocations: 356.6 kB / 423.1 MB, free: 49.6 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001646/0.3069, allocations: 0.8289 MB / 423.9 MB, free: 49.46 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.06e-06/0.307, allocations: 0 / 423.9 MB, free: 49.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.001844/0.3088, allocations: 0.9163 MB / 424.8 MB, free: 49.35 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.824e-05/0.3089, allocations: 99.61 kB / 424.9 MB, free: 49.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.616e-06/0.3089, allocations: 4.266 kB / 424.9 MB, free: 49.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.067e-05/0.3089, allocations: 2.969 kB / 424.9 MB, free: 49.29 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007141/0.3097, allocations: 131.8 kB / 425.1 MB, free: 49.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.616e-06/0.3097, allocations: 4.125 kB / 425.1 MB, free: 49.29 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003738/0.3101, allocations: 73.38 kB / 425.1 MB, free: 49.29 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.448e-05/0.3102, allocations: 47.14 kB / 425.2 MB, free: 49.29 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.0002854/0.3104, allocations: 297.1 kB / 425.5 MB, free: 49.11 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.65e-05/0.3105, allocations: 41.19 kB / 425.5 MB, free: 49.11 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001985/0.3125, allocations: 1.13 MB / 426.7 MB, free: 48.78 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.232e-06/0.3125, allocations: 3.984 kB / 426.7 MB, free: 48.78 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.023e-06/0.3126, allocations: 4.844 kB / 426.7 MB, free: 48.78 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.3126, allocations: 6.922 kB / 426.7 MB, free: 48.78 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004711/0.313, allocations: 0.5908 MB / 427.3 MB, free: 48.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.3131, allocations: 0 / 427.3 MB, free: 48.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006808/0.3137, allocations: 108.4 kB / 427.4 MB, free: 48.42 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.507e-06/0.3138, allocations: 3.188 kB / 427.4 MB, free: 48.42 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.737e-05/0.3138, allocations: 24.34 kB / 427.4 MB, free: 48.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.006e-06/0.3138, allocations: 3.422 kB / 427.4 MB, free: 48.41 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.3138, allocations: 0.7656 kB / 427.4 MB, free: 48.41 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002723/0.3166, allocations: 1.671 MB / 429.1 MB, free: 47.81 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.324e-05/0.3166, allocations: 113.9 kB / 429.2 MB, free: 47.71 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000104/0.3167, allocations: 31.73 kB / 429.2 MB, free: 47.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003742/0.3171, allocations: 41.36 kB / 429.3 MB, free: 47.7 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000192/0.3173, allocations: 62.61 kB / 429.3 MB, free: 47.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001094/0.3174, allocations: 55.3 kB / 429.4 MB, free: 47.68 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001346/0.3176, allocations: 173.2 kB / 429.5 MB, free: 47.58 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3176, allocations: 0 / 429.5 MB, free: 47.58 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005368/0.3181, allocations: 174.8 kB / 429.7 MB, free: 47.55 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.0006616/0.3188, allocations: 324.1 kB / 430 MB, free: 47.45 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002114/0.3209, allocations: 1.281 MB / 431.3 MB, free: 46.91 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.3209, allocations: 0 / 431.3 MB, free: 46.91 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001018/0.322, allocations: 0.8912 MB / 432.2 MB, free: 46.45 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003191/0.3223, allocations: 49.95 kB / 432.2 MB, free: 46.43 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001677/0.324, allocations: 1.102 MB / 433.3 MB, free: 45.89 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001851/0.3242, allocations: 0.8041 MB / 434.2 MB, free: 45.19 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000387/0.3246, allocations: 69.59 kB / 434.2 MB, free: 45.16 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001563/0.3247, allocations: 47.34 kB / 434.3 MB, free: 45.15 MB / 350.1 MB Notification: Performance of SimCode: time 3.3e-07/0.3247, allocations: 0 / 434.3 MB, free: 45.15 MB / 350.1 MB Notification: Performance of Templates: time 0.01092/0.3357, allocations: 7.839 MB / 442.1 MB, free: 44.55 MB / 350.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)