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: "" <> buildModelFMU(AdvancedNoise.Examples.TimeBasedCorrelations,fileNamePrefix="AdvancedNoise_AdvancedNoise_Examples_TimeBasedCorrelations",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AdvancedNoise.Examples.TimeBasedCorrelations,fileNamePrefix="AdvancedNoise_AdvancedNoise_Examples_TimeBasedCorrelations",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007925/0.0007926, allocations: 91.45 kB / 15.06 MB, free: 1.098 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.00081/0.0008099, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.387/1.387, allocations: 223.2 MB / 240 MB, free: 5.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.1677/0.1677, allocations: 3.872 MB / 294.9 MB, free: 4.008 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003126/0.0003126, allocations: 8 kB / 356.7 MB, free: 3.473 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.103, allocations: 51.17 MB / 407.9 MB, free: 264 kB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.TimeBasedCorrelations): time 0.00217/0.1052, allocations: 1.65 MB / 409.5 MB, free: 14.59 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00236/0.1076, allocations: 1.418 MB / 411 MB, free: 13.17 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001222/0.1077, allocations: 3.938 kB / 411 MB, free: 13.17 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001429/0.1079, allocations: 35.66 kB / 411 MB, free: 13.13 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005353/0.1084, allocations: 179.3 kB / 411.2 MB, free: 12.96 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.0005703/0.109, allocations: 271.4 kB / 411.4 MB, free: 12.69 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004735/0.1095, allocations: 0.5146 MB / 412 MB, free: 12.18 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001678/0.1097, allocations: 71.86 kB / 412 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002602/0.1099, allocations: 207.2 kB / 412.2 MB, free: 11.9 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003019/0.1103, allocations: 243.1 kB / 412.5 MB, free: 11.66 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.239e-05/0.1103, allocations: 20 kB / 412.5 MB, free: 11.64 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005091/0.1108, allocations: 307.5 kB / 412.8 MB, free: 11.34 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.882e-05/0.1109, allocations: 83.66 kB / 412.9 MB, free: 11.26 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.592e-05/0.1111, allocations: 93.5 kB / 413 MB, free: 11.16 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005626/0.1116, allocations: 0.5226 MB / 413.5 MB, free: 10.64 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.913e-06/0.1116, allocations: 0 / 413.5 MB, free: 10.64 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.746e-06/0.1116, allocations: 0 / 413.5 MB, free: 10.64 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.337e-06/0.1117, allocations: 4 kB / 413.5 MB, free: 10.64 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.002798/0.1145, allocations: 2.371 MB / 415.9 MB, free: 8.199 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.608e-05/0.1145, allocations: 19.97 kB / 415.9 MB, free: 8.18 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.753e-05/0.1146, allocations: 70.47 kB / 415.9 MB, free: 8.102 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001227/0.1159, allocations: 167.3 kB / 416.1 MB, free: 7.938 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007985/0.1167, allocations: 358.8 kB / 416.5 MB, free: 7.547 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.355e-05/0.1168, allocations: 32.56 kB / 416.5 MB, free: 7.516 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001235/0.1169, allocations: 47.89 kB / 416.5 MB, free: 7.469 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001373/0.1183, allocations: 0.583 MB / 417.1 MB, free: 6.879 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.179e-05/0.1183, allocations: 0 / 417.1 MB, free: 6.879 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.864e-05/0.1184, allocations: 12 kB / 417.1 MB, free: 6.867 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.005e-05/0.1184, allocations: 8 kB / 417.1 MB, free: 6.859 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001446/0.1198, allocations: 0.6581 MB / 417.8 MB, free: 6.195 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001924/0.1218, allocations: 1.155 MB / 419 MB, free: 4.992 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001457/0.1232, allocations: 0.7107 MB / 419.7 MB, free: 4.27 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008673/0.1241, allocations: 0.5174 MB / 420.2 MB, free: 3.75 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.486e-05/0.1242, allocations: 12.3 kB / 420.2 MB, free: 3.738 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001157/0.1254, allocations: 0.7714 MB / 421 MB, free: 2.918 MB / 350.1 MB Notification: Performance of pre-optimization done (n=58): time 3.166e-06/0.1254, allocations: 0 / 421 MB, free: 2.918 MB / 350.1 MB Notification: Performance of matching and sorting (n=58): time 0.002856/0.1282, allocations: 1.424 MB / 422.4 MB, free: 1.477 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.587e-05/0.1283, allocations: 134.8 kB / 422.5 MB, free: 1.32 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002577/0.1286, allocations: 254.5 kB / 422.8 MB, free: 1.059 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.502e-05/0.1287, allocations: 37.7 kB / 422.8 MB, free: 1.016 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001074/0.1288, allocations: 157 kB / 423 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001509/0.1289, allocations: 177.5 kB / 423.1 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.059e-05/0.129, allocations: 12 kB / 423.1 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001529/0.1292, allocations: 350.8 kB / 423.5 MB, free: 328 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.204/0.3332, allocations: 361.3 kB / 423.8 MB, free: 46.8 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001033/0.3342, allocations: 370.8 kB / 424.2 MB, free: 46.8 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000941/0.3352, allocations: 443.7 kB / 424.6 MB, free: 46.74 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.739e-06/0.3352, allocations: 1.25 kB / 424.6 MB, free: 46.74 MB / 350.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001903/0.3371, allocations: 0.9625 MB / 425.6 MB, free: 46.63 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.124e-05/0.3372, allocations: 95.02 kB / 425.7 MB, free: 46.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.977e-06/0.3372, allocations: 0 / 425.7 MB, free: 46.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.489e-05/0.3372, allocations: 3.219 kB / 425.7 MB, free: 46.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007408/0.338, allocations: 148.8 kB / 425.8 MB, free: 46.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.042e-05/0.338, allocations: 0 / 425.8 MB, free: 46.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004001/0.3384, allocations: 79.88 kB / 425.9 MB, free: 46.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001261/0.3386, allocations: 48.78 kB / 426 MB, free: 46.57 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 ($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,noise1.localSeed,noise1.actualGlobalSeed,globalSeed.id_impure,noise2.localSeed,noise2.actualGlobalSeed,globalSeed.seed) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (60): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004001/0.339, allocations: 292.1 kB / 426.2 MB, free: 46.39 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.326e-05/0.3391, allocations: 42.31 kB / 426.3 MB, free: 46.39 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002135/0.3412, allocations: 1.163 MB / 427.5 MB, free: 46.29 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.773e-06/0.3412, allocations: 6.781 kB / 427.5 MB, free: 46.29 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.3412, allocations: 1.547 kB / 427.5 MB, free: 46.29 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.306e-06/0.3413, allocations: 3.422 kB / 427.5 MB, free: 46.29 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005611/0.3418, allocations: 0.61 MB / 428.1 MB, free: 46.1 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.327e-06/0.3418, allocations: 0 / 428.1 MB, free: 46.1 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006618/0.3425, allocations: 119.8 kB / 428.2 MB, free: 46.1 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.22e-06/0.3425, allocations: 3.219 kB / 428.2 MB, free: 46.1 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.96e-05/0.3426, allocations: 29.39 kB / 428.2 MB, free: 46.1 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.294e-06/0.3426, allocations: 0 / 428.2 MB, free: 46.1 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.3426, allocations: 0 / 428.2 MB, free: 46.1 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003078/0.3457, allocations: 1.704 MB / 429.9 MB, free: 45.95 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.93e-05/0.3458, allocations: 116.2 kB / 430 MB, free: 45.86 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000107/0.3459, allocations: 34.06 kB / 430.1 MB, free: 45.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003422/0.3462, allocations: 50.64 kB / 430.1 MB, free: 45.85 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000163/0.3464, allocations: 60.72 kB / 430.2 MB, free: 45.85 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.114e-05/0.3465, allocations: 59.12 kB / 430.2 MB, free: 45.85 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001568/0.3467, allocations: 167.9 kB / 430.4 MB, free: 45.77 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3467, allocations: 0 / 430.4 MB, free: 45.77 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005412/0.3472, allocations: 174.6 kB / 430.6 MB, free: 45.76 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 (42): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003665/0.3509, allocations: 2.479 MB / 433.1 MB, free: 44.95 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001821/0.3527, allocations: 1.263 MB / 434.3 MB, free: 44.41 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.013e-06/0.3527, allocations: 0 / 434.3 MB, free: 44.41 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001015/0.3538, allocations: 0.9129 MB / 435.2 MB, free: 43.93 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003218/0.3541, allocations: 42.39 kB / 435.3 MB, free: 43.92 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004926/0.359, allocations: 3.366 MB / 438.6 MB, free: 42.43 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002375/0.3593, allocations: 0.8155 MB / 439.5 MB, free: 41.71 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004228/0.3597, allocations: 71.33 kB / 439.5 MB, free: 41.68 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002501/0.36, allocations: 138.6 kB / 439.7 MB, free: 41.59 MB / 350.1 MB Notification: Performance of SimCode: time 1.182e-06/0.36, allocations: 0 / 439.7 MB, free: 41.59 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02124/0.3812, allocations: 10.8 MB / 450.5 MB, free: 40.68 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001536/0.3814, allocations: 241.8 kB / 450.7 MB, free: 40.45 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.274/2.656, allocations: 0 / 450.7 MB, free: 40.45 MB / 350.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AdvancedNoise_AdvancedNoise_Examples_TimeBasedCorrelations_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 AdvancedNoise_AdvancedNoise_Examples_TimeBasedCorrelations.fmu > AdvancedNoise_AdvancedNoise.Examples.TimeBasedCorrelations.pipe 2>&1) Environment - environmentSimulation: