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.007846/0.007846, allocations: 96.95 kB / 15.73 MB, free: 6.484 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.002071/0.002071, allocations: 192.3 kB / 16.67 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.513/1.513, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.1366/0.1366, allocations: 3.887 MB / 294.4 MB, free: 3.223 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001856/0.001856, allocations: 71.89 kB / 406.4 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2902/0.2921, allocations: 50.17 MB / 456.6 MB, free: 20.45 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.TimeBasedCorrelations): time 0.002743/0.2949, allocations: 1.986 MB / 458.6 MB, free: 19.04 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00237/0.2973, allocations: 1.514 MB / 460.1 MB, free: 18.03 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001718/0.2975, allocations: 3.938 kB / 460.1 MB, free: 18.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002029/0.2977, allocations: 49.34 kB / 460.1 MB, free: 17.98 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007196/0.2984, allocations: 255.5 kB / 460.4 MB, free: 17.84 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.0006781/0.2991, allocations: 349.7 kB / 460.7 MB, free: 17.65 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004887/0.2996, allocations: 0.6278 MB / 461.4 MB, free: 17.36 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001873/0.2998, allocations: 102.6 kB / 461.5 MB, free: 17.3 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000266/0.3001, allocations: 258.5 kB / 461.7 MB, free: 17.17 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003251/0.3004, allocations: 271.8 kB / 462 MB, free: 17.04 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.418e-05/0.3005, allocations: 63 kB / 462 MB, free: 17.04 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005373/0.3011, allocations: 353 kB / 462.4 MB, free: 16.94 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001353/0.3012, allocations: 124.2 kB / 462.5 MB, free: 16.86 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002073/0.3014, allocations: 242 kB / 462.7 MB, free: 16.69 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008647/0.3023, allocations: 0.7175 MB / 463.5 MB, free: 16.39 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.3023, allocations: 0 / 463.5 MB, free: 16.39 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.3023, allocations: 3.312 kB / 463.5 MB, free: 16.39 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.371e-05/0.3023, allocations: 0 / 463.5 MB, free: 16.39 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.00301/0.3053, allocations: 2.486 MB / 466 MB, free: 15.14 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.909e-05/0.3054, allocations: 9.125 kB / 466 MB, free: 15.14 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001031/0.3055, allocations: 72.17 kB / 466 MB, free: 15.08 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001387/0.3069, allocations: 165.7 kB / 466.2 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006567/0.3076, allocations: 374.8 kB / 466.6 MB, free: 14.75 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.41e-05/0.3077, allocations: 41.53 kB / 466.6 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.773e-05/0.3078, allocations: 39.92 kB / 466.6 MB, free: 14.72 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001289/0.3091, allocations: 0.5657 MB / 467.2 MB, free: 14.53 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.926e-05/0.3091, allocations: 3.938 kB / 467.2 MB, free: 14.53 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.979e-05/0.3092, allocations: 14.3 kB / 467.2 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.178e-05/0.3092, allocations: 10.09 kB / 467.2 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001656/0.3108, allocations: 0.6266 MB / 467.9 MB, free: 14.33 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002629/0.3135, allocations: 1.146 MB / 469 MB, free: 13.64 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001502/0.315, allocations: 0.645 MB / 469.7 MB, free: 13.36 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009861/0.316, allocations: 0.5047 MB / 470.2 MB, free: 13.15 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.453e-05/0.3161, allocations: 9.703 kB / 470.2 MB, free: 13.15 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001489/0.3176, allocations: 0.7536 MB / 470.9 MB, free: 12.75 MB / 350.1 MB Notification: Performance of pre-optimization done (n=57): time 4.238e-06/0.3176, allocations: 0 / 470.9 MB, free: 12.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=57): time 0.00379/0.3214, allocations: 1.379 MB / 472.3 MB, free: 12.26 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001038/0.3215, allocations: 137 kB / 472.4 MB, free: 12.12 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003848/0.3219, allocations: 253.3 kB / 472.7 MB, free: 11.97 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.917e-05/0.322, allocations: 38.2 kB / 472.7 MB, free: 11.93 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001027/0.3221, allocations: 154.5 kB / 472.9 MB, free: 11.8 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001665/0.3223, allocations: 179.5 kB / 473 MB, free: 11.66 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003324/0.3227, allocations: 126.1 kB / 473.2 MB, free: 11.61 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001016/0.3228, allocations: 354.7 kB / 473.5 MB, free: 11.27 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001326/0.3241, allocations: 351.1 kB / 473.9 MB, free: 11.16 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001287/0.3254, allocations: 355.9 kB / 474.2 MB, free: 11.04 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002595/0.328, allocations: 0.8239 MB / 475 MB, free: 10.66 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.107e-06/0.3281, allocations: 0 / 475 MB, free: 10.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.003037/0.3311, allocations: 0.9195 MB / 475.9 MB, free: 10.29 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001054/0.3312, allocations: 94.41 kB / 476 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.047e-06/0.3312, allocations: 0.5625 kB / 476 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.177e-05/0.3313, allocations: 2.188 kB / 476 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00114/0.3324, allocations: 138.5 kB / 476.2 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.233e-05/0.3325, allocations: 2.156 kB / 476.2 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006048/0.3331, allocations: 71.84 kB / 476.2 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001544/0.3332, allocations: 50.61 kB / 476.3 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.0004653/0.3337, allocations: 289.5 kB / 476.6 MB, free: 9.941 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001542/0.3339, allocations: 47.58 kB / 476.6 MB, free: 9.918 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003587/0.3375, allocations: 1.144 MB / 477.8 MB, free: 9.48 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.999e-06/0.3375, allocations: 2.938 kB / 477.8 MB, free: 9.48 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.334e-06/0.3375, allocations: 1.625 kB / 477.8 MB, free: 9.48 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.215e-05/0.3376, allocations: 2.25 kB / 477.8 MB, free: 9.48 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001005/0.3386, allocations: 0.5905 MB / 478.4 MB, free: 9.105 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.378e-06/0.3386, allocations: 4 kB / 478.4 MB, free: 9.102 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001246/0.3398, allocations: 105.5 kB / 478.5 MB, free: 9.094 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.016e-05/0.3399, allocations: 2.516 kB / 478.5 MB, free: 9.094 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001151/0.34, allocations: 26.56 kB / 478.5 MB, free: 9.086 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.921e-06/0.34, allocations: 2.25 kB / 478.5 MB, free: 9.086 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.34, allocations: 0.8438 kB / 478.5 MB, free: 9.086 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005169/0.3452, allocations: 1.669 MB / 480.2 MB, free: 8.441 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001253/0.3454, allocations: 120.2 kB / 480.3 MB, free: 8.316 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001826/0.3456, allocations: 29.05 kB / 480.3 MB, free: 8.309 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006265/0.3462, allocations: 42.06 kB / 480.4 MB, free: 8.301 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003394/0.3466, allocations: 57.28 kB / 480.4 MB, free: 8.289 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001883/0.3468, allocations: 55.09 kB / 480.5 MB, free: 8.281 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002759/0.3471, allocations: 171.4 kB / 480.6 MB, free: 8.18 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.3471, allocations: 0 / 480.6 MB, free: 8.18 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009867/0.3481, allocations: 171.8 kB / 480.8 MB, free: 8.145 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.00641/0.3545, allocations: 2.428 MB / 483.2 MB, free: 6.902 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003534/0.3581, allocations: 1.23 MB / 484.5 MB, free: 6.254 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.3581, allocations: 0 / 484.5 MB, free: 6.254 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001934/0.36, allocations: 0.8937 MB / 485.4 MB, free: 5.703 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005514/0.3606, allocations: 44.25 kB / 485.4 MB, free: 5.684 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01154/0.3722, allocations: 5.09 MB / 490.5 MB, free: 1.879 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002872/0.3725, allocations: 0.8043 MB / 491.3 MB, free: 1.051 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0006285/0.3731, allocations: 70.94 kB / 491.4 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003816/0.3735, allocations: 139.4 kB / 491.5 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of SimCode: time 1.152e-06/0.3736, allocations: 4 kB / 491.5 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04215/0.4157, allocations: 11.69 MB / 0.4914 GB, free: 5.289 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.115/9.531, allocations: 12.05 kB / 0.4914 GB, free: 5.277 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)