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.001226/0.001226, 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.001207/0.001207, allocations: 195.6 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.375/1.375, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.1493/0.1493, allocations: 3.885 MB / 294.3 MB, free: 3.316 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001259/0.001259, allocations: 63.89 kB / 355.6 MB, free: 3.516 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1062/0.1075, allocations: 50.18 MB / 405.8 MB, free: 1.289 MB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.TimeBasedCorrelations): time 0.002959/0.1105, allocations: 1.984 MB / 407.7 MB, free: 15.29 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002402/0.1129, allocations: 1.507 MB / 409.2 MB, free: 13.78 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001265/0.113, allocations: 7.938 kB / 409.3 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001604/0.1132, allocations: 51.47 kB / 409.3 MB, free: 13.72 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000668/0.1139, allocations: 255 kB / 409.6 MB, free: 13.47 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.0006965/0.1146, allocations: 351.1 kB / 409.9 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000544/0.1152, allocations: 0.6201 MB / 410.5 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002163/0.1154, allocations: 102 kB / 410.6 MB, free: 12.41 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002729/0.1157, allocations: 259.2 kB / 410.9 MB, free: 12.15 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003062/0.116, allocations: 283 kB / 411.1 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001/0.1161, allocations: 64 kB / 411.2 MB, free: 11.81 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005069/0.1166, allocations: 347.5 kB / 411.6 MB, free: 11.47 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001366/0.1168, allocations: 127.6 kB / 411.7 MB, free: 11.35 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000223/0.117, allocations: 238.9 kB / 411.9 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007192/0.1177, allocations: 0.7016 MB / 412.6 MB, free: 10.41 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.1177, allocations: 0 / 412.6 MB, free: 10.41 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.1177, allocations: 0 / 412.6 MB, free: 10.41 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.572e-06/0.1177, allocations: 0 / 412.6 MB, free: 10.41 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.002889/0.1206, allocations: 2.458 MB / 415.1 MB, free: 7.879 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.192e-05/0.1207, allocations: 8.031 kB / 415.1 MB, free: 7.871 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.082e-05/0.1208, allocations: 66.73 kB / 415.1 MB, free: 7.797 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001398/0.1222, allocations: 164.3 kB / 415.3 MB, free: 7.637 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006668/0.1229, allocations: 367.9 kB / 415.7 MB, free: 7.238 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.603e-05/0.1229, allocations: 36.94 kB / 415.7 MB, free: 7.203 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.628e-05/0.123, allocations: 44.28 kB / 415.7 MB, free: 7.16 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00129/0.1243, allocations: 0.568 MB / 416.3 MB, free: 6.586 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.446e-05/0.1244, allocations: 7.875 kB / 416.3 MB, free: 6.578 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.71e-05/0.1244, allocations: 16 kB / 416.3 MB, free: 6.562 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.052e-05/0.1244, allocations: 4 kB / 416.3 MB, free: 6.559 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001569/0.126, allocations: 0.6269 MB / 417 MB, free: 5.93 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001958/0.128, allocations: 1.143 MB / 418.1 MB, free: 4.738 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001347/0.1293, allocations: 0.6515 MB / 418.8 MB, free: 4.078 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008971/0.1303, allocations: 0.4979 MB / 419.3 MB, free: 3.578 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.703e-05/0.1303, allocations: 8.328 kB / 419.3 MB, free: 3.57 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00115/0.1315, allocations: 0.752 MB / 420 MB, free: 2.77 MB / 350.1 MB Notification: Performance of pre-optimization done (n=57): time 2.344e-06/0.1315, allocations: 0 / 420 MB, free: 2.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=57): time 0.003033/0.1345, allocations: 1.373 MB / 421.4 MB, free: 1.379 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.786e-05/0.1346, allocations: 134.8 kB / 421.5 MB, free: 1.223 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002455/0.1349, allocations: 250.5 kB / 421.8 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.44e-05/0.1349, allocations: 37.7 kB / 421.8 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001049/0.135, allocations: 172.9 kB / 422 MB, free: 0.75 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001642/0.1352, allocations: 169.5 kB / 422.1 MB, free: 0.582 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002098/0.1354, allocations: 122.2 kB / 422.3 MB, free: 468 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001442/0.1356, allocations: 350.7 kB / 422.6 MB, free: 108 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1602/0.2958, allocations: 342.5 kB / 422.9 MB, free: 49.62 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000886/0.2967, allocations: 355.8 kB / 423.3 MB, free: 49.62 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00155/0.2983, allocations: 0.8257 MB / 424.1 MB, free: 49.48 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.2983, allocations: 0 / 424.1 MB, free: 49.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.001733/0.3, allocations: 0.9271 MB / 425 MB, free: 49.38 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.23e-05/0.3001, allocations: 91.44 kB / 425.1 MB, free: 49.31 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.905e-06/0.3001, allocations: 1.438 kB / 425.1 MB, free: 49.31 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.766e-05/0.3001, allocations: 2.938 kB / 425.1 MB, free: 49.31 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007318/0.3009, allocations: 133.4 kB / 425.3 MB, free: 49.31 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.035e-06/0.3009, allocations: 3 kB / 425.3 MB, free: 49.31 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003869/0.3013, allocations: 71.25 kB / 425.3 MB, free: 49.31 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.676e-05/0.3014, allocations: 49.33 kB / 425.4 MB, free: 49.31 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.000285/0.3017, allocations: 296.5 kB / 425.7 MB, free: 49.14 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.913e-05/0.3018, allocations: 38.66 kB / 425.7 MB, free: 49.14 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002061/0.3038, allocations: 1.126 MB / 426.8 MB, free: 48.77 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.031e-06/0.3039, allocations: 6.188 kB / 426.8 MB, free: 48.77 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.3039, allocations: 3.719 kB / 426.8 MB, free: 48.77 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.034e-06/0.3039, allocations: 5.203 kB / 426.8 MB, free: 48.77 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004907/0.3044, allocations: 0.6011 MB / 427.4 MB, free: 48.42 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.3044, allocations: 1.812 kB / 427.4 MB, free: 48.42 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006849/0.3051, allocations: 109.3 kB / 427.6 MB, free: 48.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.3051, allocations: 0 / 427.6 MB, free: 48.41 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.753e-05/0.3052, allocations: 27.34 kB / 427.6 MB, free: 48.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.896e-06/0.3052, allocations: 0 / 427.6 MB, free: 48.41 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.3052, allocations: 4.391 kB / 427.6 MB, free: 48.41 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002745/0.3079, allocations: 1.656 MB / 429.2 MB, free: 47.8 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.165e-05/0.308, allocations: 117.3 kB / 429.4 MB, free: 47.71 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001091/0.3081, allocations: 31.66 kB / 429.4 MB, free: 47.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003792/0.3085, allocations: 44.53 kB / 429.4 MB, free: 47.69 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001561/0.3087, allocations: 60.25 kB / 429.5 MB, free: 47.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.274e-05/0.3087, allocations: 55.55 kB / 429.5 MB, free: 47.68 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001272/0.3089, allocations: 176.2 kB / 429.7 MB, free: 47.57 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3089, allocations: 0 / 429.7 MB, free: 47.57 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000472/0.3094, allocations: 171.7 kB / 429.9 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.003363/0.3127, allocations: 2.426 MB / 432.3 MB, free: 46.39 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002046/0.3148, allocations: 1.28 MB / 433.6 MB, free: 45.85 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.3148, allocations: 0 / 433.6 MB, free: 45.85 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001033/0.3158, allocations: 0.9029 MB / 434.5 MB, free: 45.38 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003098/0.3162, allocations: 43.34 kB / 434.5 MB, free: 45.36 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007058/0.3232, allocations: 5.052 MB / 439.6 MB, free: 42.82 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002074/0.3235, allocations: 0.8087 MB / 440.4 MB, free: 42.11 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004205/0.3239, allocations: 74.83 kB / 440.5 MB, free: 42.09 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002385/0.3241, allocations: 138.2 kB / 440.6 MB, free: 41.99 MB / 350.1 MB Notification: Performance of SimCode: time 6.51e-07/0.3242, allocations: 0 / 440.6 MB, free: 41.99 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0292/0.3534, allocations: 11.56 MB / 452.2 MB, free: 40.83 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.921/8.275, allocations: 4.531 kB / 452.2 MB, free: 40.83 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 & 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)