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.00912/0.00912, allocations: 101.5 kB / 15.73 MB, free: 6.031 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.001847/0.001847, allocations: 188.6 kB / 16.67 MB, free: 5.969 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.468/1.468, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.1416/0.1416, allocations: 3.889 MB / 294.4 MB, free: 3.168 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001296/0.001297, allocations: 55.91 kB / 406.4 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2708/0.2722, allocations: 50.19 MB / 456.6 MB, free: 20.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.TimeBasedCorrelations): time 0.002756/0.275, allocations: 1.989 MB / 458.6 MB, free: 18.98 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002623/0.2776, allocations: 1.508 MB / 460.1 MB, free: 17.96 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001578/0.2778, allocations: 7.406 kB / 460.1 MB, free: 17.96 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002061/0.278, allocations: 45.95 kB / 460.1 MB, free: 17.92 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006732/0.2787, allocations: 254.6 kB / 460.4 MB, free: 17.79 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.0006528/0.2794, allocations: 341.5 kB / 460.7 MB, free: 17.6 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004363/0.2798, allocations: 0.6447 MB / 461.4 MB, free: 17.29 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001582/0.28, allocations: 94.55 kB / 461.5 MB, free: 17.24 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002117/0.2802, allocations: 258 kB / 461.7 MB, free: 17.12 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002768/0.2805, allocations: 272.3 kB / 462 MB, free: 16.98 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.261e-05/0.2805, allocations: 63.34 kB / 462 MB, free: 16.98 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005214/0.2811, allocations: 351.8 kB / 462.4 MB, free: 16.88 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000131/0.2812, allocations: 128 kB / 462.5 MB, free: 16.8 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002349/0.2815, allocations: 240.3 kB / 462.7 MB, free: 16.63 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000977/0.2824, allocations: 0.7147 MB / 463.5 MB, free: 16.33 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.043e-06/0.2825, allocations: 0.7031 kB / 463.5 MB, free: 16.33 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.435e-06/0.2825, allocations: 3.938 kB / 463.5 MB, free: 16.33 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.579e-05/0.2825, allocations: 0 / 463.5 MB, free: 16.33 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.003311/0.2858, allocations: 2.446 MB / 465.9 MB, free: 15.12 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.151e-05/0.2859, allocations: 9.406 kB / 465.9 MB, free: 15.12 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000135/0.286, allocations: 71.02 kB / 466 MB, free: 15.06 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001498/0.2875, allocations: 165.8 kB / 466.2 MB, free: 15.03 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006712/0.2882, allocations: 375.9 kB / 466.5 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.038e-05/0.2883, allocations: 32.31 kB / 466.6 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.968e-05/0.2884, allocations: 44.64 kB / 466.6 MB, free: 14.7 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001375/0.2898, allocations: 0.5654 MB / 467.2 MB, free: 14.51 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.539e-05/0.2898, allocations: 3.938 kB / 467.2 MB, free: 14.51 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.986e-05/0.2899, allocations: 19.2 kB / 467.2 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.132e-05/0.2899, allocations: 5.938 kB / 467.2 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001671/0.2916, allocations: 0.6251 MB / 467.8 MB, free: 14.31 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002162/0.2938, allocations: 1.135 MB / 469 MB, free: 13.63 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00141/0.2952, allocations: 0.6449 MB / 469.6 MB, free: 13.36 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009076/0.2961, allocations: 0.5002 MB / 470.1 MB, free: 13.15 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.082e-05/0.2962, allocations: 9.719 kB / 470.1 MB, free: 13.14 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001209/0.2974, allocations: 0.7537 MB / 470.9 MB, free: 12.75 MB / 350.1 MB Notification: Performance of pre-optimization done (n=57): time 2.935e-06/0.2974, allocations: 0 / 470.9 MB, free: 12.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=57): time 0.003073/0.3005, allocations: 1.374 MB / 472.2 MB, free: 12.26 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.473e-05/0.3006, allocations: 137.9 kB / 472.4 MB, free: 12.12 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002802/0.3009, allocations: 252.4 kB / 472.6 MB, free: 11.97 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.426e-05/0.3009, allocations: 39.02 kB / 472.7 MB, free: 11.93 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.422e-05/0.301, allocations: 151.7 kB / 472.8 MB, free: 11.8 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000124/0.3011, allocations: 173.5 kB / 473 MB, free: 11.67 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002246/0.3014, allocations: 123.5 kB / 473.1 MB, free: 11.61 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001023/0.3015, allocations: 352.7 kB / 473.4 MB, free: 11.28 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008413/0.3023, allocations: 343.9 kB / 473.8 MB, free: 11.18 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008171/0.3032, allocations: 364.5 kB / 474.1 MB, free: 11.05 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001663/0.3048, allocations: 0.8233 MB / 474.9 MB, free: 10.68 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.015e-06/0.3049, allocations: 4 kB / 475 MB, free: 10.67 MB / 350.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.001901/0.3068, allocations: 0.9198 MB / 475.9 MB, free: 10.3 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.99e-05/0.3068, allocations: 97.06 kB / 476 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.543e-06/0.3069, allocations: 0 / 476 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.86e-05/0.3069, allocations: 6.844 kB / 476 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00082/0.3077, allocations: 134 kB / 476.1 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.058e-05/0.3077, allocations: 2.922 kB / 476.1 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004053/0.3081, allocations: 71.92 kB / 476.2 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001122/0.3083, allocations: 49.89 kB / 476.2 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.0003219/0.3086, allocations: 297.3 kB / 476.5 MB, free: 9.938 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001075/0.3087, allocations: 44.2 kB / 476.6 MB, free: 9.918 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002325/0.311, allocations: 1.129 MB / 477.7 MB, free: 9.492 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.332e-06/0.3111, allocations: 3.281 kB / 477.7 MB, free: 9.492 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.132e-06/0.3111, allocations: 5.344 kB / 477.7 MB, free: 9.488 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.995e-06/0.3111, allocations: 3.375 kB / 477.7 MB, free: 9.488 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006347/0.3117, allocations: 0.5954 MB / 478.3 MB, free: 9.105 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.3117, allocations: 0 / 478.3 MB, free: 9.105 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007641/0.3125, allocations: 107.2 kB / 478.4 MB, free: 9.098 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.408e-06/0.3125, allocations: 1.281 kB / 478.4 MB, free: 9.098 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.276e-05/0.3126, allocations: 31.36 kB / 478.4 MB, free: 9.086 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.267e-06/0.3126, allocations: 1.438 kB / 478.4 MB, free: 9.086 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.3126, allocations: 1.344 kB / 478.4 MB, free: 9.086 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003419/0.316, allocations: 1.66 MB / 480.1 MB, free: 8.449 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.387e-05/0.3161, allocations: 120.9 kB / 480.2 MB, free: 8.324 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001258/0.3163, allocations: 28.44 kB / 480.2 MB, free: 8.316 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004092/0.3167, allocations: 37.77 kB / 480.3 MB, free: 8.312 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002099/0.3169, allocations: 60.92 kB / 480.3 MB, free: 8.297 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000124/0.317, allocations: 52.47 kB / 480.4 MB, free: 8.293 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000174/0.3172, allocations: 179.4 kB / 480.6 MB, free: 8.184 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3172, allocations: 0 / 480.6 MB, free: 8.184 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007437/0.318, allocations: 163 kB / 480.7 MB, free: 8.156 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.00408/0.3221, allocations: 2.432 MB / 483.2 MB, free: 6.91 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002315/0.3244, allocations: 1.225 MB / 484.4 MB, free: 6.266 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.3244, allocations: 4 kB / 484.4 MB, free: 6.262 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001321/0.3257, allocations: 0.8894 MB / 485.3 MB, free: 5.715 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004041/0.3261, allocations: 47.12 kB / 485.3 MB, free: 5.695 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00812/0.3343, allocations: 5.068 MB / 490.4 MB, free: 1.941 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002023/0.3345, allocations: 0.8043 MB / 491.2 MB, free: 1.113 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003427/0.3348, allocations: 70.94 kB / 491.3 MB, free: 1.043 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002392/0.3351, allocations: 143.4 kB / 491.4 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of SimCode: time 5.92e-07/0.3351, allocations: 0 / 491.4 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03585/0.371, allocations: 11.9 MB / 0.4915 GB, free: 5.145 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.563/8.934, allocations: 12.17 kB / 0.4915 GB, free: 5.133 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)