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.004916/0.004916, allocations: 100.2 kB / 15.73 MB, free: 6.062 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.001408/0.001408, allocations: 194.1 kB / 16.68 MB, free: 5.973 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.426/1.426, allocations: 222.9 MB / 240.4 MB, free: 4.156 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.1254/0.1254, allocations: 3.888 MB / 294.4 MB, free: 3.211 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001901/0.001901, allocations: 67.88 kB / 406.4 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2576/0.2596, allocations: 50.18 MB / 456.6 MB, free: 20.45 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.TimeBasedCorrelations): time 0.002394/0.262, allocations: 1.996 MB / 458.6 MB, free: 19.04 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002371/0.2644, allocations: 1.512 MB / 460.1 MB, free: 18.02 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001907/0.2646, allocations: 3.938 kB / 460.1 MB, free: 18.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002184/0.2649, allocations: 52.83 kB / 460.2 MB, free: 17.98 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007696/0.2657, allocations: 251 kB / 460.4 MB, free: 17.84 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.0007501/0.2664, allocations: 348.1 kB / 460.7 MB, free: 17.65 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004747/0.2669, allocations: 0.6272 MB / 461.4 MB, free: 17.36 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001675/0.2671, allocations: 95.31 kB / 461.5 MB, free: 17.3 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002408/0.2673, allocations: 258.4 kB / 461.7 MB, free: 17.18 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002701/0.2676, allocations: 279.1 kB / 462 MB, free: 17.04 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.462e-05/0.2677, allocations: 71.16 kB / 462.1 MB, free: 17.04 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004935/0.2682, allocations: 346.1 kB / 462.4 MB, free: 16.94 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001161/0.2683, allocations: 125 kB / 462.5 MB, free: 16.86 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000181/0.2685, allocations: 234.5 kB / 462.7 MB, free: 16.7 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007345/0.2693, allocations: 0.7179 MB / 463.5 MB, free: 16.4 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.2693, allocations: 3.938 kB / 463.5 MB, free: 16.39 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.2693, allocations: 0 / 463.5 MB, free: 16.39 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.431e-05/0.2693, allocations: 0 / 463.5 MB, free: 16.39 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.002706/0.272, allocations: 2.496 MB / 466 MB, free: 15.14 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.843e-05/0.2721, allocations: 9.875 kB / 466 MB, free: 15.14 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001053/0.2722, allocations: 67.38 kB / 466 MB, free: 15.08 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001416/0.2736, allocations: 165.8 kB / 466.2 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000634/0.2743, allocations: 375.1 kB / 466.6 MB, free: 14.75 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.976e-05/0.2743, allocations: 37.59 kB / 466.6 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.611e-05/0.2744, allocations: 35.78 kB / 466.6 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00132/0.2757, allocations: 0.5735 MB / 467.2 MB, free: 14.53 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.574e-05/0.2758, allocations: 3.938 kB / 467.2 MB, free: 14.53 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.46e-05/0.2758, allocations: 14.59 kB / 467.2 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.046e-05/0.2759, allocations: 5.344 kB / 467.2 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001573/0.2774, allocations: 0.6383 MB / 467.9 MB, free: 14.32 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001899/0.2793, allocations: 1.134 MB / 469 MB, free: 13.64 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001312/0.2807, allocations: 0.6529 MB / 469.7 MB, free: 13.36 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008672/0.2815, allocations: 0.5008 MB / 470.2 MB, free: 13.15 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.415e-05/0.2816, allocations: 9.188 kB / 470.2 MB, free: 13.15 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001191/0.2828, allocations: 0.7502 MB / 470.9 MB, free: 12.75 MB / 350.1 MB Notification: Performance of pre-optimization done (n=57): time 2.795e-06/0.2828, allocations: 0 / 470.9 MB, free: 12.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=57): time 0.003087/0.2859, allocations: 1.382 MB / 472.3 MB, free: 12.26 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.288e-05/0.286, allocations: 137.3 kB / 472.4 MB, free: 12.12 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002843/0.2863, allocations: 252.5 kB / 472.7 MB, free: 11.97 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.052e-05/0.2864, allocations: 42.05 kB / 472.7 MB, free: 11.93 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.773e-05/0.2864, allocations: 156.4 kB / 472.9 MB, free: 11.8 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001308/0.2866, allocations: 178 kB / 473.1 MB, free: 11.66 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002357/0.2868, allocations: 128.9 kB / 473.2 MB, free: 11.6 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.143e-05/0.2869, allocations: 351.3 kB / 473.5 MB, free: 11.27 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008387/0.2878, allocations: 347.6 kB / 473.9 MB, free: 11.16 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008301/0.2886, allocations: 356.3 kB / 474.2 MB, free: 11.04 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0017/0.2903, allocations: 0.8236 MB / 475 MB, free: 10.66 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.2903, allocations: 0 / 475 MB, free: 10.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.002166/0.2925, allocations: 0.9192 MB / 476 MB, free: 10.29 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001018/0.2926, allocations: 98.62 kB / 476.1 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.503e-06/0.2926, allocations: 0 / 476.1 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.511e-05/0.2927, allocations: 3.062 kB / 476.1 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007615/0.2934, allocations: 132.7 kB / 476.2 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.105e-05/0.2935, allocations: 2.25 kB / 476.2 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004041/0.2939, allocations: 66.47 kB / 476.2 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001052/0.294, allocations: 54.67 kB / 476.3 MB, free: 10.17 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.0003617/0.2943, allocations: 292.4 kB / 476.6 MB, free: 9.941 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.724e-05/0.2945, allocations: 43.14 kB / 476.6 MB, free: 9.922 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002306/0.2968, allocations: 1.144 MB / 477.8 MB, free: 9.48 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.364e-06/0.2968, allocations: 4.562 kB / 477.8 MB, free: 9.48 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.2968, allocations: 0 / 477.8 MB, free: 9.48 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.606e-06/0.2968, allocations: 4.109 kB / 477.8 MB, free: 9.48 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007124/0.2975, allocations: 0.5885 MB / 478.4 MB, free: 9.105 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/0.2975, allocations: 0.75 kB / 478.4 MB, free: 9.105 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007232/0.2983, allocations: 105.7 kB / 478.5 MB, free: 9.098 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.346e-06/0.2983, allocations: 6.125 kB / 478.5 MB, free: 9.094 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.897e-05/0.2984, allocations: 35.17 kB / 478.5 MB, free: 9.078 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.441e-06/0.2984, allocations: 1.344 kB / 478.5 MB, free: 9.078 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.2984, allocations: 1.375 kB / 478.5 MB, free: 9.078 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003316/0.3017, allocations: 1.661 MB / 480.2 MB, free: 8.441 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.686e-05/0.3018, allocations: 116.5 kB / 480.3 MB, free: 8.32 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001153/0.3019, allocations: 28.83 kB / 480.3 MB, free: 8.312 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003715/0.3023, allocations: 45.3 kB / 480.4 MB, free: 8.301 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001973/0.3025, allocations: 65.59 kB / 480.4 MB, free: 8.281 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001187/0.3026, allocations: 55.88 kB / 480.5 MB, free: 8.273 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001741/0.3028, allocations: 170.7 kB / 480.7 MB, free: 8.172 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3028, allocations: 0 / 480.7 MB, free: 8.172 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006166/0.3035, allocations: 167 kB / 480.8 MB, free: 8.141 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.003883/0.3074, allocations: 2.422 MB / 483.2 MB, free: 6.879 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002322/0.3097, allocations: 1.226 MB / 484.5 MB, free: 6.195 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.3097, allocations: 0 / 484.5 MB, free: 6.195 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001341/0.3111, allocations: 0.891 MB / 485.4 MB, free: 5.648 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004195/0.3115, allocations: 49.95 kB / 485.4 MB, free: 5.625 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00781/0.3193, allocations: 5.09 MB / 490.5 MB, free: 1.812 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001924/0.3196, allocations: 0.8121 MB / 491.3 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003804/0.32, allocations: 62.95 kB / 491.4 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002427/0.3202, allocations: 139.4 kB / 491.5 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of SimCode: time 7.31e-07/0.3202, allocations: 0 / 491.5 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03828/0.3585, allocations: 11.69 MB / 0.4914 GB, free: 5.223 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.143/9.501, allocations: 19.92 kB / 0.4914 GB, free: 5.207 MB / 366.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)