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.001043/0.001043, allocations: 108 kB / 15.6 MB, free: 132 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.001119/0.001118, allocations: 196 kB / 16.53 MB, free: 6.391 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.384/1.384, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.164/0.164, allocations: 3.887 MB / 294.3 MB, free: 3.207 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002513/0.002514, allocations: 63.89 kB / 355.6 MB, free: 3.508 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1156/0.1181, allocations: 50.19 MB / 405.8 MB, free: 1.277 MB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.TimeBasedCorrelations): time 0.003341/0.1215, allocations: 1.985 MB / 407.8 MB, free: 15.27 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002634/0.1241, allocations: 1.511 MB / 409.3 MB, free: 13.76 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002378/0.1244, allocations: 0 / 409.3 MB, free: 13.76 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002409/0.1247, allocations: 51.41 kB / 409.3 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009536/0.1257, allocations: 255 kB / 409.6 MB, free: 13.46 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.000884/0.1266, allocations: 347.2 kB / 409.9 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006916/0.1273, allocations: 0.6356 MB / 410.5 MB, free: 12.48 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002032/0.1275, allocations: 89.97 kB / 410.6 MB, free: 12.39 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003703/0.1278, allocations: 259.2 kB / 410.9 MB, free: 12.14 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003633/0.1282, allocations: 279 kB / 411.2 MB, free: 11.87 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001146/0.1283, allocations: 68 kB / 411.2 MB, free: 11.8 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006028/0.129, allocations: 355.5 kB / 411.6 MB, free: 11.45 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001432/0.1291, allocations: 119.7 kB / 411.7 MB, free: 11.34 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002597/0.1294, allocations: 234.9 kB / 411.9 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008675/0.1302, allocations: 0.6977 MB / 412.6 MB, free: 10.41 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.1303, allocations: 0 / 412.6 MB, free: 10.41 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.1303, allocations: 0 / 412.6 MB, free: 10.41 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.779e-06/0.1303, 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.003039/0.1333, allocations: 2.462 MB / 415.1 MB, free: 7.871 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.94e-05/0.1334, allocations: 12.03 kB / 415.1 MB, free: 7.859 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.99e-05/0.1335, allocations: 66.72 kB / 415.1 MB, free: 7.785 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001292/0.1348, allocations: 164.2 kB / 415.3 MB, free: 7.625 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006415/0.1354, allocations: 367.9 kB / 415.7 MB, free: 7.227 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.696e-05/0.1355, allocations: 36.94 kB / 415.7 MB, free: 7.191 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.572e-05/0.1356, allocations: 40.28 kB / 415.7 MB, free: 7.152 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001195/0.1368, allocations: 0.5719 MB / 416.3 MB, free: 6.574 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.16e-05/0.1368, allocations: 7.938 kB / 416.3 MB, free: 6.566 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.128e-05/0.1369, allocations: 12 kB / 416.3 MB, free: 6.555 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.436e-06/0.1369, allocations: 8 kB / 416.3 MB, free: 6.547 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001507/0.1384, allocations: 0.623 MB / 417 MB, free: 5.922 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001924/0.1404, allocations: 1.147 MB / 418.1 MB, free: 4.727 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001273/0.1416, allocations: 0.6438 MB / 418.8 MB, free: 4.074 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008637/0.1425, allocations: 0.5018 MB / 419.3 MB, free: 3.57 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.432e-05/0.1426, allocations: 8.328 kB / 419.3 MB, free: 3.562 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001145/0.1437, allocations: 0.7558 MB / 420 MB, free: 2.758 MB / 350.1 MB Notification: Performance of pre-optimization done (n=57): time 3.306e-06/0.1437, allocations: 0 / 420 MB, free: 2.758 MB / 350.1 MB Notification: Performance of matching and sorting (n=57): time 0.002847/0.1466, allocations: 1.373 MB / 421.4 MB, free: 1.367 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.088e-05/0.1467, allocations: 130.8 kB / 421.5 MB, free: 1.215 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002448/0.1469, allocations: 262.5 kB / 421.8 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.355e-05/0.147, allocations: 37.7 kB / 421.8 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.596e-05/0.1471, allocations: 153 kB / 422 MB, free: 0.75 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001411/0.1473, allocations: 177.5 kB / 422.1 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002183/0.1475, allocations: 122.2 kB / 422.3 MB, free: 460 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001381/0.1476, allocations: 350.7 kB / 422.6 MB, free: 100 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1761/0.3238, allocations: 345.5 kB / 422.9 MB, free: 49.63 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001419/0.3252, allocations: 358.5 kB / 423.3 MB, free: 49.63 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002338/0.3276, allocations: 0.8268 MB / 424.1 MB, free: 49.49 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/0.3276, allocations: 0 / 424.1 MB, free: 49.49 MB / 350.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.002584/0.3302, allocations: 0.9197 MB / 425 MB, free: 49.38 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.573e-05/0.3303, allocations: 95.39 kB / 425.1 MB, free: 49.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.396e-06/0.3303, allocations: 0 / 425.1 MB, free: 49.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.083e-05/0.3303, allocations: 0 / 425.1 MB, free: 49.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001043/0.3314, allocations: 137.9 kB / 425.3 MB, free: 49.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.096e-05/0.3314, allocations: 0 / 425.3 MB, free: 49.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005395/0.3319, allocations: 71.03 kB / 425.3 MB, free: 49.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00013/0.3321, allocations: 51.14 kB / 425.4 MB, free: 49.32 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.0004212/0.3325, allocations: 296.2 kB / 425.7 MB, free: 49.14 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001379/0.3327, allocations: 40.97 kB / 425.7 MB, free: 49.14 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002988/0.3357, allocations: 1.127 MB / 426.8 MB, free: 48.77 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.586e-06/0.3357, allocations: 6.281 kB / 426.8 MB, free: 48.77 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/0.3357, allocations: 0 / 426.8 MB, free: 48.77 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.536e-06/0.3357, allocations: 3.422 kB / 426.8 MB, free: 48.77 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007265/0.3365, allocations: 0.5928 MB / 427.4 MB, free: 48.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.329e-06/0.3365, allocations: 0 / 427.4 MB, free: 48.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001011/0.3375, allocations: 109.1 kB / 427.5 MB, free: 48.42 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.372e-06/0.3375, allocations: 2.938 kB / 427.5 MB, free: 48.42 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.094e-05/0.3376, allocations: 35.89 kB / 427.6 MB, free: 48.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.931e-06/0.3376, allocations: 3.031 kB / 427.6 MB, free: 48.41 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.3376, allocations: 3.844 kB / 427.6 MB, free: 48.41 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004374/0.342, allocations: 1.658 MB / 429.2 MB, free: 47.81 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.502e-05/0.3421, allocations: 115.1 kB / 429.4 MB, free: 47.71 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000159/0.3423, allocations: 31.64 kB / 429.4 MB, free: 47.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005637/0.3429, allocations: 39.3 kB / 429.4 MB, free: 47.7 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002527/0.3431, allocations: 63.44 kB / 429.5 MB, free: 47.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000137/0.3433, allocations: 55.48 kB / 429.5 MB, free: 47.68 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002025/0.3435, allocations: 172.9 kB / 429.7 MB, free: 47.58 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.402e-06/0.3435, allocations: 0 / 429.7 MB, free: 47.58 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008428/0.3444, allocations: 176 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.005389/0.3498, allocations: 2.427 MB / 432.3 MB, free: 46.39 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003459/0.3533, allocations: 1.278 MB / 433.6 MB, free: 45.84 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.038e-06/0.3533, allocations: 0 / 433.6 MB, free: 45.84 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00165/0.3549, allocations: 0.8911 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.0005253/0.3555, allocations: 48.78 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.01119/0.3667, allocations: 5.064 MB / 439.6 MB, free: 42.81 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002725/0.367, allocations: 0.8064 MB / 440.4 MB, free: 42.11 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000753/0.3678, allocations: 67.2 kB / 440.5 MB, free: 42.08 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004057/0.3682, allocations: 144.6 kB / 440.6 MB, free: 41.98 MB / 350.1 MB Notification: Performance of SimCode: time 1.002e-06/0.3682, allocations: 0 / 440.6 MB, free: 41.98 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03949/0.4077, allocations: 11.54 MB / 452.1 MB, free: 40.82 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.229/8.637, allocations: 6.875 kB / 452.2 MB, free: 40.82 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/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)