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/AdvancedNoise 1.1.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 AdvancedNoise with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/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/AdvancedNoise 1.1.0-master/package.mo): time 0.02754/0.02754, allocations: 3.903 MB / 18.88 MB, free: 3.516 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.0008576/0.0008576, allocations: 178 kB / 20.51 MB, free: 2.492 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.425/1.425, allocations: 223.2 MB / 245.3 MB, free: 11.75 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008698/0.0008697, allocations: 100.6 kB / 297.2 MB, free: 9.992 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003598/0.0003599, allocations: 8 kB / 359 MB, free: 12.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2528/0.2532, allocations: 51.17 MB / 410.1 MB, free: 31.16 MB / 302.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.TimeBasedCorrelations): time 0.00176/0.255, allocations: 1.647 MB / 411.8 MB, free: 29.51 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002216/0.2572, allocations: 1.41 MB / 413.2 MB, free: 28.11 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003381/0.2576, allocations: 0 / 413.2 MB, free: 28.11 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001877/0.2578, allocations: 35.66 kB / 413.2 MB, free: 28.07 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007612/0.2585, allocations: 179.3 kB / 413.4 MB, free: 27.89 MB / 302.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.0007218/0.2593, allocations: 277.8 kB / 413.7 MB, free: 27.62 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005311/0.2598, allocations: 0.5185 MB / 414.2 MB, free: 27.11 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001801/0.26, allocations: 77.25 kB / 414.3 MB, free: 27.02 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003096/0.2603, allocations: 207.2 kB / 414.5 MB, free: 26.82 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003157/0.2607, allocations: 235.1 kB / 414.7 MB, free: 26.59 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.77e-05/0.2607, allocations: 20 kB / 414.7 MB, free: 26.57 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005347/0.2613, allocations: 315.4 kB / 415 MB, free: 26.26 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001086/0.2614, allocations: 83.72 kB / 415.1 MB, free: 26.18 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.95e-05/0.2615, allocations: 93.39 kB / 415.2 MB, free: 26.08 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006769/0.2622, allocations: 0.5246 MB / 415.7 MB, free: 25.56 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.2622, allocations: 0 / 415.7 MB, free: 25.56 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.2622, allocations: 0 / 415.7 MB, free: 25.56 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.722e-05/0.2623, allocations: 0 / 415.7 MB, free: 25.56 MB / 302.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.002867/0.2651, allocations: 2.372 MB / 418.1 MB, free: 23.12 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.96e-05/0.2652, allocations: 12.03 kB / 418.1 MB, free: 23.11 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000177/0.2654, allocations: 70.53 kB / 418.2 MB, free: 23.03 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001273/0.2666, allocations: 170.9 kB / 418.3 MB, free: 22.86 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006623/0.2673, allocations: 354.8 kB / 418.7 MB, free: 22.48 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.31e-05/0.2674, allocations: 32.56 kB / 418.7 MB, free: 22.45 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.881e-05/0.2675, allocations: 51.84 kB / 418.8 MB, free: 22.4 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001087/0.2686, allocations: 0.587 MB / 419.4 MB, free: 21.8 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.37e-05/0.2686, allocations: 0 / 419.4 MB, free: 21.8 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.767e-05/0.2687, allocations: 12 kB / 419.4 MB, free: 21.79 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.097e-05/0.2687, allocations: 12 kB / 419.4 MB, free: 21.78 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001341/0.2701, allocations: 0.6542 MB / 420 MB, free: 21.12 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001949/0.272, allocations: 1.151 MB / 421.2 MB, free: 19.92 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001382/0.2734, allocations: 0.7145 MB / 421.9 MB, free: 19.2 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008168/0.2743, allocations: 0.5174 MB / 422.4 MB, free: 18.68 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.849e-05/0.2743, allocations: 12.31 kB / 422.4 MB, free: 18.66 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001108/0.2755, allocations: 0.7598 MB / 423.2 MB, free: 17.86 MB / 302.1 MB Notification: Performance of pre-optimization done (n=58): time 3.286e-06/0.2755, allocations: 0 / 423.2 MB, free: 17.86 MB / 302.1 MB Notification: Performance of matching and sorting (n=58): time 0.00254/0.278, allocations: 1.431 MB / 424.6 MB, free: 16.41 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.049e-05/0.2781, allocations: 130.8 kB / 424.8 MB, free: 16.25 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002186/0.2783, allocations: 258.5 kB / 425 MB, free: 15.99 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.98e-05/0.2784, allocations: 33.7 kB / 425 MB, free: 15.95 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.781e-05/0.2785, allocations: 149.1 kB / 425.2 MB, free: 15.8 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001106/0.2786, allocations: 177.5 kB / 425.4 MB, free: 15.63 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.851e-05/0.2786, allocations: 12 kB / 425.4 MB, free: 15.62 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.898e-05/0.2787, allocations: 350.8 kB / 425.7 MB, free: 15.27 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006944/0.2794, allocations: 365 kB / 426.1 MB, free: 14.91 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007062/0.2801, allocations: 373.3 kB / 426.4 MB, free: 14.54 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007187/0.2809, allocations: 446.4 kB / 426.9 MB, free: 14.1 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.2809, allocations: 0 / 426.9 MB, free: 14.1 MB / 302.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001605/0.2825, allocations: 0.9641 MB / 427.8 MB, free: 13.11 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.363e-05/0.2826, allocations: 95.36 kB / 427.9 MB, free: 13.01 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.2826, allocations: 0 / 427.9 MB, free: 13.01 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2e-05/0.2826, allocations: 3.953 kB / 427.9 MB, free: 13 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006741/0.2833, allocations: 147.8 kB / 428.1 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.087e-05/0.2833, allocations: 4 kB / 428.1 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003655/0.2837, allocations: 83.42 kB / 428.2 MB, free: 12.77 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.858e-05/0.2838, allocations: 51.94 kB / 428.2 MB, free: 12.72 MB / 302.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.0002683/0.284, allocations: 287.3 kB / 428.5 MB, free: 12.42 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.137e-05/0.2841, allocations: 47.52 kB / 428.5 MB, free: 12.38 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001862/0.286, allocations: 1.166 MB / 429.7 MB, free: 11.18 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.113e-06/0.286, allocations: 4 kB / 429.7 MB, free: 11.18 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.983e-06/0.286, allocations: 7.891 kB / 429.7 MB, free: 11.17 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.571e-06/0.286, allocations: 0 / 429.7 MB, free: 11.17 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005234/0.2866, allocations: 0.599 MB / 430.3 MB, free: 10.52 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/0.2866, allocations: 0 / 430.3 MB, free: 10.52 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006567/0.2872, allocations: 115.8 kB / 430.4 MB, free: 10.41 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.673e-06/0.2873, allocations: 3.953 kB / 430.4 MB, free: 10.41 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.491e-05/0.2873, allocations: 35.97 kB / 430.5 MB, free: 10.37 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.544e-06/0.2873, allocations: 0 / 430.5 MB, free: 10.37 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-06/0.2873, allocations: 3.984 kB / 430.5 MB, free: 10.37 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002608/0.29, allocations: 1.696 MB / 432.2 MB, free: 8.637 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.467e-05/0.29, allocations: 120.6 kB / 432.3 MB, free: 8.5 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.944e-05/0.2901, allocations: 35.88 kB / 432.3 MB, free: 8.465 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003392/0.2905, allocations: 51.97 kB / 432.4 MB, free: 8.414 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001566/0.2906, allocations: 63.88 kB / 432.4 MB, free: 8.352 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.175e-05/0.2907, allocations: 59.95 kB / 432.5 MB, free: 8.293 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001249/0.2909, allocations: 170 kB / 432.7 MB, free: 8.125 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2909, allocations: 0 / 432.7 MB, free: 8.125 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004863/0.2914, allocations: 171.8 kB / 432.8 MB, free: 7.957 MB / 302.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.003165/0.2945, allocations: 2.46 MB / 435.3 MB, free: 5.504 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001767/0.2963, allocations: 1.263 MB / 436.5 MB, free: 4.215 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.2963, allocations: 0 / 436.5 MB, free: 4.215 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009792/0.2973, allocations: 0.9167 MB / 437.5 MB, free: 3.273 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003032/0.2976, allocations: 44.52 kB / 437.5 MB, free: 3.227 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004842/0.3025, allocations: 3.369 MB / 440.9 MB, free: 15.81 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004482/0.303, allocations: 0.8046 MB / 441.7 MB, free: 14.98 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004588/0.3034, allocations: 74.92 kB / 441.8 MB, free: 14.9 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002651/0.3037, allocations: 139.4 kB / 441.9 MB, free: 14.77 MB / 318.1 MB Notification: Performance of SimCode: time 3.91e-07/0.3037, allocations: 8 kB / 441.9 MB, free: 14.76 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02373/0.3274, allocations: 10.78 MB / 452.7 MB, free: 4.148 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000177/0.3277, allocations: 247 kB / 452.9 MB, free: 3.902 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.117/2.444, allocations: 0 / 452.9 MB, free: 3.902 MB / 318.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)