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.008004/0.008004, allocations: 99.83 kB / 15.73 MB, free: 6.012 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.001689/0.001689, allocations: 193.5 kB / 16.67 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.357/1.357, allocations: 222.9 MB / 240.4 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.02439/0.02439, allocations: 3.915 MB / 294.4 MB, free: 11.04 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001274/0.001274, allocations: 66.89 kB / 406.4 MB, free: 28.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09176/0.09305, allocations: 50.18 MB / 456.6 MB, free: 10.54 MB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.TimeBasedCorrelations): time 0.003054/0.09614, allocations: 1.991 MB / 458.6 MB, free: 8.531 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002509/0.09867, allocations: 1.507 MB / 460.1 MB, free: 7.02 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000123/0.09883, allocations: 4 kB / 460.1 MB, free: 7.016 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001514/0.09899, allocations: 55.34 kB / 460.2 MB, free: 6.961 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000613/0.09961, allocations: 258.9 kB / 460.4 MB, free: 6.707 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.0007114/0.1003, allocations: 347.2 kB / 460.7 MB, free: 6.367 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005539/0.1009, allocations: 0.6317 MB / 461.4 MB, free: 5.734 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001671/0.1011, allocations: 98 kB / 461.5 MB, free: 5.633 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002662/0.1013, allocations: 267.2 kB / 461.7 MB, free: 5.371 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000297/0.1017, allocations: 267 kB / 462 MB, free: 5.109 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.18e-05/0.1017, allocations: 68 kB / 462.1 MB, free: 5.043 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004569/0.1022, allocations: 343.5 kB / 462.4 MB, free: 4.707 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001282/0.1023, allocations: 131.5 kB / 462.5 MB, free: 4.578 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002135/0.1026, allocations: 238.9 kB / 462.8 MB, free: 4.344 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007545/0.1033, allocations: 0.7166 MB / 463.5 MB, free: 3.625 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.563e-06/0.1033, allocations: 4 kB / 463.5 MB, free: 3.621 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.1033, allocations: 0 / 463.5 MB, free: 3.621 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.087e-05/0.1034, allocations: 4 kB / 463.5 MB, free: 3.617 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.002754/0.1061, allocations: 2.488 MB / 466 MB, free: 1.059 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.159e-05/0.1062, allocations: 12.03 kB / 466 MB, free: 1.047 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.666e-05/0.1063, allocations: 66.73 kB / 466.1 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001299/0.1076, allocations: 166.9 kB / 466.2 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006131/0.1082, allocations: 380 kB / 466.6 MB, free: 412 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.563e-05/0.1083, allocations: 36.94 kB / 466.6 MB, free: 376 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.442e-05/0.1084, allocations: 36.38 kB / 466.7 MB, free: 340 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001174/0.1096, allocations: 0.568 MB / 467.2 MB, free: 15.76 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.585e-05/0.1096, allocations: 7.875 kB / 467.2 MB, free: 15.75 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.298e-05/0.1096, allocations: 12 kB / 467.2 MB, free: 15.74 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.512e-06/0.1096, allocations: 8 kB / 467.3 MB, free: 15.73 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001477/0.1111, allocations: 0.6308 MB / 467.9 MB, free: 15.1 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001886/0.113, allocations: 1.135 MB / 469 MB, free: 13.91 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001315/0.1144, allocations: 0.6554 MB / 469.7 MB, free: 13.25 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008999/0.1153, allocations: 0.5018 MB / 470.2 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.929e-05/0.1153, allocations: 16.31 kB / 470.2 MB, free: 12.73 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001131/0.1165, allocations: 0.7403 MB / 470.9 MB, free: 11.94 MB / 350.1 MB Notification: Performance of pre-optimization done (n=57): time 2.425e-06/0.1165, allocations: 0 / 470.9 MB, free: 11.94 MB / 350.1 MB Notification: Performance of matching and sorting (n=57): time 0.002839/0.1193, allocations: 1.385 MB / 472.3 MB, free: 10.54 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001018/0.1194, allocations: 130.8 kB / 472.4 MB, free: 10.39 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002773/0.1197, allocations: 258.6 kB / 472.7 MB, free: 10.12 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.239e-05/0.1198, allocations: 37.7 kB / 472.7 MB, free: 10.08 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001054/0.1199, allocations: 157.1 kB / 472.9 MB, free: 9.926 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001461/0.1201, allocations: 174.5 kB / 473.1 MB, free: 9.754 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002208/0.1203, allocations: 130.1 kB / 473.2 MB, free: 9.621 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001484/0.1204, allocations: 350.7 kB / 473.5 MB, free: 9.27 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008066/0.1213, allocations: 353 kB / 473.9 MB, free: 8.926 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007887/0.1221, allocations: 349.3 kB / 474.2 MB, free: 8.586 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001628/0.1237, allocations: 0.8236 MB / 475 MB, free: 7.734 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.1237, allocations: 0 / 475 MB, free: 7.734 MB / 350.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.001991/0.1257, allocations: 0.9254 MB / 476 MB, free: 6.789 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000104/0.1258, allocations: 91.36 kB / 476.1 MB, free: 6.688 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.242e-06/0.1258, allocations: 7.938 kB / 476.1 MB, free: 6.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.722e-05/0.1259, allocations: 0 / 476.1 MB, free: 6.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007832/0.1266, allocations: 131.8 kB / 476.2 MB, free: 6.551 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.478e-06/0.1267, allocations: 0 / 476.2 MB, free: 6.551 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004119/0.1271, allocations: 75.62 kB / 476.3 MB, free: 6.477 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001071/0.1272, allocations: 51.92 kB / 476.3 MB, free: 6.426 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.0003911/0.1276, allocations: 299.7 kB / 476.6 MB, free: 6.109 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.83e-05/0.1277, allocations: 43.77 kB / 476.6 MB, free: 6.066 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002257/0.13, allocations: 1.131 MB / 477.8 MB, free: 4.914 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.471e-05/0.13, allocations: 4 kB / 477.8 MB, free: 4.91 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.925e-06/0.13, allocations: 4 kB / 477.8 MB, free: 4.906 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.466e-06/0.13, allocations: 11.91 kB / 477.8 MB, free: 4.895 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006654/0.1307, allocations: 0.5873 MB / 478.4 MB, free: 4.258 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.601e-06/0.1307, allocations: 4 kB / 478.4 MB, free: 4.254 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000935/0.1316, allocations: 107.8 kB / 478.5 MB, free: 4.148 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.709e-06/0.1317, allocations: 4 kB / 478.5 MB, free: 4.145 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.146e-05/0.1317, allocations: 27.98 kB / 478.5 MB, free: 4.117 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.945e-06/0.1317, allocations: 0 / 478.5 MB, free: 4.117 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.1317, allocations: 0 / 478.5 MB, free: 4.117 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003141/0.1349, allocations: 1.665 MB / 480.2 MB, free: 2.418 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.305e-05/0.135, allocations: 116.8 kB / 480.3 MB, free: 2.285 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000106/0.1351, allocations: 27.98 kB / 480.3 MB, free: 2.258 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003744/0.1355, allocations: 47.95 kB / 480.4 MB, free: 2.211 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001718/0.1357, allocations: 59.92 kB / 480.4 MB, free: 2.152 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.318e-05/0.1358, allocations: 59.89 kB / 480.5 MB, free: 2.094 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001603/0.1359, allocations: 170 kB / 480.7 MB, free: 1.93 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1359, allocations: 0 / 480.7 MB, free: 1.93 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005189/0.1365, allocations: 167.8 kB / 480.8 MB, free: 1.766 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.003984/0.1405, allocations: 2.425 MB / 483.3 MB, free: 15.34 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002143/0.1426, allocations: 1.228 MB / 484.5 MB, free: 14.09 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.1426, allocations: 0 / 484.5 MB, free: 14.09 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001268/0.1439, allocations: 0.8896 MB / 485.4 MB, free: 13.17 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003417/0.1443, allocations: 42.59 kB / 485.4 MB, free: 13.13 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008501/0.1528, allocations: 5.081 MB / 490.5 MB, free: 7.945 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004023/0.1532, allocations: 0.8121 MB / 491.3 MB, free: 7.109 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003498/0.1536, allocations: 62.97 kB / 491.4 MB, free: 7.047 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000276/0.1538, allocations: 143.4 kB / 491.5 MB, free: 6.906 MB / 366.1 MB Notification: Performance of SimCode: time 8.21e-07/0.1538, allocations: 0 / 491.5 MB, free: 6.906 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03412/0.188, allocations: 11.7 MB / 0.4914 GB, free: 11.34 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.61/8.798, allocations: 8.391 kB / 0.4914 GB, free: 11.33 MB / 382.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 & python3 -m fmpy simulate --output-file AdvancedNoise_AdvancedNoise.Examples.TimeBasedCorrelations_res.csv --start-time 0 --stop-time 100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01 AdvancedNoise_AdvancedNoise_Examples_TimeBasedCorrelations.fmu > AdvancedNoise_AdvancedNoise.Examples.TimeBasedCorrelations.pipe 2>&1)