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.004685/0.004685, allocations: 97.94 kB / 15.73 MB, free: 6.004 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.00128/0.00128, allocations: 193 kB / 16.67 MB, free: 5.934 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.422/1.422, allocations: 222.9 MB / 240.4 MB, free: 4.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.1411/0.1411, allocations: 3.886 MB / 294.4 MB, free: 3.215 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001898/0.001898, allocations: 63.91 kB / 406.4 MB, free: 0.7227 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2356/0.2375, allocations: 50.18 MB / 456.6 MB, free: 20.42 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.TimeBasedCorrelations): time 0.002544/0.2401, allocations: 1.992 MB / 458.6 MB, free: 19.01 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002589/0.2427, allocations: 1.518 MB / 460.1 MB, free: 18 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000209/0.2429, allocations: 3.062 kB / 460.1 MB, free: 18 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002297/0.2431, allocations: 51.94 kB / 460.2 MB, free: 17.96 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007827/0.2439, allocations: 256.7 kB / 460.4 MB, free: 17.81 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.0008531/0.2447, allocations: 345.6 kB / 460.8 MB, free: 17.62 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005346/0.2453, allocations: 0.6239 MB / 461.4 MB, free: 17.33 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001756/0.2455, allocations: 66.94 kB / 461.4 MB, free: 17.29 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002987/0.2458, allocations: 259.9 kB / 461.7 MB, free: 17.16 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003459/0.2461, allocations: 279.7 kB / 462 MB, free: 17.02 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.205e-05/0.2462, allocations: 63.06 kB / 462 MB, free: 17.02 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006113/0.2468, allocations: 344 kB / 462.4 MB, free: 16.93 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001268/0.2469, allocations: 127.7 kB / 462.5 MB, free: 16.84 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002017/0.2471, allocations: 233.4 kB / 462.7 MB, free: 16.68 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008788/0.248, allocations: 0.717 MB / 463.4 MB, free: 16.38 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.248, allocations: 0 / 463.4 MB, free: 16.38 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.248, allocations: 0 / 463.4 MB, free: 16.38 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.434e-06/0.248, allocations: 0 / 463.4 MB, free: 16.38 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.003007/0.251, allocations: 2.498 MB / 465.9 MB, free: 15.12 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.186e-05/0.2511, allocations: 9.656 kB / 465.9 MB, free: 15.12 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001196/0.2512, allocations: 70.81 kB / 466 MB, free: 15.07 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001333/0.2525, allocations: 173.7 kB / 466.2 MB, free: 15.03 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006302/0.2532, allocations: 375.5 kB / 466.5 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.504e-05/0.2532, allocations: 36.69 kB / 466.6 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.026e-05/0.2533, allocations: 36.16 kB / 466.6 MB, free: 14.7 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00122/0.2545, allocations: 0.574 MB / 467.2 MB, free: 14.51 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.359e-05/0.2545, allocations: 3.938 kB / 467.2 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.019e-05/0.2546, allocations: 14.03 kB / 467.2 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.596e-06/0.2546, allocations: 5.688 kB / 467.2 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001487/0.2561, allocations: 0.6266 MB / 467.8 MB, free: 14.31 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001936/0.258, allocations: 1.138 MB / 469 MB, free: 13.63 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001229/0.2593, allocations: 0.5187 MB / 469.5 MB, free: 13.44 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008027/0.2601, allocations: 392.4 kB / 469.9 MB, free: 13.31 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.84e-05/0.2601, allocations: 9.141 kB / 469.9 MB, free: 13.31 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001115/0.2612, allocations: 0.7535 MB / 470.6 MB, free: 12.91 MB / 350.1 MB Notification: Performance of pre-optimization done (n=57): time 2.635e-06/0.2612, allocations: 0 / 470.6 MB, free: 12.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=57): time 0.003047/0.2643, allocations: 1.383 MB / 472 MB, free: 12.42 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.331e-05/0.2644, allocations: 133.5 kB / 472.2 MB, free: 12.29 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003383/0.2647, allocations: 260.8 kB / 472.4 MB, free: 12.13 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.387e-05/0.2648, allocations: 34.36 kB / 472.4 MB, free: 12.09 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.127e-05/0.2649, allocations: 159.6 kB / 472.6 MB, free: 11.96 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001418/0.265, allocations: 178 kB / 472.8 MB, free: 11.82 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002568/0.2653, allocations: 128.4 kB / 472.9 MB, free: 11.76 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.97e-05/0.2654, allocations: 352.3 kB / 473.2 MB, free: 11.43 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008367/0.2662, allocations: 347 kB / 473.6 MB, free: 11.32 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008291/0.267, allocations: 360.5 kB / 473.9 MB, free: 11.2 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001647/0.2687, allocations: 0.8271 MB / 474.8 MB, free: 10.82 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.138e-06/0.2687, allocations: 0 / 474.8 MB, free: 10.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.001906/0.2706, allocations: 0.9205 MB / 475.7 MB, free: 10.45 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.077e-05/0.2707, allocations: 94.34 kB / 475.8 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.2707, allocations: 0.6562 kB / 475.8 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.893e-05/0.2707, allocations: 6.312 kB / 475.8 MB, free: 10.37 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007615/0.2715, allocations: 134.3 kB / 475.9 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.307e-05/0.2715, allocations: 2.938 kB / 475.9 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004458/0.2719, allocations: 68.88 kB / 476 MB, free: 10.33 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001214/0.2721, allocations: 48.95 kB / 476 MB, free: 10.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.0003427/0.2724, allocations: 293.3 kB / 476.3 MB, free: 10.09 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.961e-05/0.2725, allocations: 44.23 kB / 476.4 MB, free: 10.07 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002286/0.2748, allocations: 1.144 MB / 477.5 MB, free: 9.637 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.544e-06/0.2748, allocations: 3.688 kB / 477.5 MB, free: 9.637 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.683e-06/0.2748, allocations: 4.891 kB / 477.5 MB, free: 9.633 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.287e-06/0.2748, allocations: 2.531 kB / 477.5 MB, free: 9.633 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006637/0.2755, allocations: 0.5932 MB / 478.1 MB, free: 9.254 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.105e-06/0.2755, allocations: 3.938 kB / 478.1 MB, free: 9.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007642/0.2762, allocations: 106.2 kB / 478.2 MB, free: 9.242 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.123e-06/0.2762, allocations: 6.469 kB / 478.2 MB, free: 9.238 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.744e-05/0.2763, allocations: 27.52 kB / 478.3 MB, free: 9.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.918e-06/0.2763, allocations: 1.062 kB / 478.3 MB, free: 9.23 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/0.2763, allocations: 1.953 kB / 478.3 MB, free: 9.23 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003195/0.2795, allocations: 1.668 MB / 479.9 MB, free: 8.59 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.953e-05/0.2796, allocations: 117 kB / 480 MB, free: 8.469 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001308/0.2797, allocations: 30.03 kB / 480.1 MB, free: 8.461 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003796/0.2801, allocations: 45.3 kB / 480.1 MB, free: 8.449 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001882/0.2803, allocations: 60.77 kB / 480.2 MB, free: 8.434 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001239/0.2804, allocations: 52.44 kB / 480.2 MB, free: 8.43 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001678/0.2806, allocations: 170.5 kB / 480.4 MB, free: 8.328 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2806, allocations: 0 / 480.4 MB, free: 8.328 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006499/0.2812, allocations: 168.1 kB / 480.6 MB, free: 8.297 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.003965/0.2852, allocations: 2.438 MB / 483 MB, free: 7.051 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001993/0.2872, allocations: 1.013 MB / 484 MB, free: 6.527 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/0.2872, allocations: 0 / 484 MB, free: 6.527 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001007/0.2882, allocations: 0.6322 MB / 484.6 MB, free: 6.168 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003509/0.2886, allocations: 44.95 kB / 484.7 MB, free: 6.148 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007608/0.2962, allocations: 5.09 MB / 489.8 MB, free: 2.59 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002064/0.2964, allocations: 0.8082 MB / 490.6 MB, free: 1.758 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003719/0.2967, allocations: 70.94 kB / 490.6 MB, free: 1.688 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002446/0.297, allocations: 143.4 kB / 490.8 MB, free: 1.547 MB / 350.1 MB Notification: Performance of SimCode: time 9.72e-07/0.297, allocations: 0 / 490.8 MB, free: 1.547 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04067/0.3377, allocations: 11.71 MB / 0.4907 GB, free: 5.965 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.715/9.053, allocations: 16 kB / 0.4907 GB, free: 5.949 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 & /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)