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.001059/0.001059, allocations: 108 kB / 15.63 MB, free: 112 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.001069/0.001069, allocations: 196.3 kB / 16.56 MB, free: 6.656 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.31/1.31, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.1361/0.1361, allocations: 3.889 MB / 294.3 MB, free: 3.227 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001343/0.001343, allocations: 64.09 kB / 355.6 MB, free: 3.469 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09159/0.09295, allocations: 50.18 MB / 405.8 MB, free: 1.246 MB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.TimeBasedCorrelations): time 0.00327/0.09627, allocations: 1.991 MB / 407.8 MB, free: 15.24 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002731/0.09902, allocations: 1.511 MB / 409.3 MB, free: 13.72 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002235/0.09927, allocations: 4 kB / 409.3 MB, free: 13.72 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001876/0.09947, allocations: 47.41 kB / 409.4 MB, free: 13.67 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008362/0.1003, allocations: 259 kB / 409.6 MB, free: 13.42 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.0008497/0.1012, allocations: 343.2 kB / 409.9 MB, free: 13.08 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007586/0.102, allocations: 0.6317 MB / 410.6 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002183/0.1022, allocations: 102 kB / 410.7 MB, free: 12.35 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000397/0.1026, allocations: 255.2 kB / 410.9 MB, free: 12.1 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003812/0.103, allocations: 271 kB / 411.2 MB, free: 11.84 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001453/0.1031, allocations: 68 kB / 411.3 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006134/0.1038, allocations: 351.5 kB / 411.6 MB, free: 11.43 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001366/0.1039, allocations: 123.6 kB / 411.7 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002379/0.1042, allocations: 234.9 kB / 412 MB, free: 11.07 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009501/0.1051, allocations: 0.7132 MB / 412.7 MB, free: 10.36 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.257e-06/0.1051, allocations: 4 kB / 412.7 MB, free: 10.36 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.492e-06/0.1051, allocations: 4 kB / 412.7 MB, free: 10.35 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.266e-05/0.1052, allocations: 0 / 412.7 MB, free: 10.35 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.003203/0.1084, allocations: 2.447 MB / 415.1 MB, free: 7.832 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.218e-05/0.1084, allocations: 12.03 kB / 415.1 MB, free: 7.82 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001158/0.1086, allocations: 66.73 kB / 415.2 MB, free: 7.746 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001303/0.1099, allocations: 164.3 kB / 415.4 MB, free: 7.586 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006923/0.1106, allocations: 367.9 kB / 415.7 MB, free: 7.188 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.366e-05/0.1106, allocations: 32.94 kB / 415.7 MB, free: 7.156 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.679e-05/0.1107, allocations: 48.22 kB / 415.8 MB, free: 7.109 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001162/0.1119, allocations: 0.5719 MB / 416.4 MB, free: 6.531 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.309e-05/0.1119, allocations: 7.875 kB / 416.4 MB, free: 6.523 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.694e-05/0.112, allocations: 15.94 kB / 416.4 MB, free: 6.508 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.557e-06/0.112, allocations: 11.98 kB / 416.4 MB, free: 6.496 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001524/0.1135, allocations: 0.6269 MB / 417 MB, free: 5.867 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001879/0.1154, allocations: 1.127 MB / 418.2 MB, free: 4.691 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001266/0.1167, allocations: 0.6516 MB / 418.8 MB, free: 4.031 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008551/0.1176, allocations: 0.5018 MB / 419.3 MB, free: 3.527 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.165e-05/0.1176, allocations: 12.31 kB / 419.3 MB, free: 3.516 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001117/0.1188, allocations: 0.7436 MB / 420.1 MB, free: 2.727 MB / 350.1 MB Notification: Performance of pre-optimization done (n=57): time 2.695e-06/0.1188, allocations: 0 / 420.1 MB, free: 2.727 MB / 350.1 MB Notification: Performance of matching and sorting (n=57): time 0.002724/0.1215, allocations: 1.381 MB / 421.4 MB, free: 1.328 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.439e-05/0.1216, allocations: 138.8 kB / 421.6 MB, free: 1.168 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002456/0.1218, allocations: 250.5 kB / 421.8 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.733e-05/0.1219, allocations: 37.7 kB / 421.9 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.921e-05/0.122, allocations: 161 kB / 422 MB, free: 0.707 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001352/0.1221, allocations: 165.5 kB / 422.2 MB, free: 0.543 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000243/0.1224, allocations: 126.2 kB / 422.3 MB, free: 424 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001196/0.1225, allocations: 350.7 kB / 422.6 MB, free: 64 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1393/0.2618, allocations: 343.9 kB / 423 MB, free: 49.59 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008481/0.2627, allocations: 355.7 kB / 423.3 MB, free: 49.59 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001388/0.2641, allocations: 0.8265 MB / 424.2 MB, free: 49.45 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.2641, allocations: 0 / 424.2 MB, free: 49.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.001588/0.2657, allocations: 0.9258 MB / 425.1 MB, free: 49.35 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.899e-05/0.2657, allocations: 91.86 kB / 425.2 MB, free: 49.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.264e-06/0.2657, allocations: 0.5469 kB / 425.2 MB, free: 49.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.837e-05/0.2658, allocations: 3.219 kB / 425.2 MB, free: 49.29 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006923/0.2665, allocations: 138.4 kB / 425.3 MB, free: 49.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.945e-06/0.2665, allocations: 2.188 kB / 425.3 MB, free: 49.29 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003441/0.2668, allocations: 70.41 kB / 425.4 MB, free: 49.29 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.537e-05/0.2669, allocations: 48.69 kB / 425.4 MB, free: 49.29 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.0002659/0.2672, allocations: 294.9 kB / 425.7 MB, free: 49.11 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.85e-05/0.2673, allocations: 39.78 kB / 425.8 MB, free: 49.11 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001872/0.2692, allocations: 1.129 MB / 426.9 MB, free: 48.74 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.499e-06/0.2692, allocations: 3.156 kB / 426.9 MB, free: 48.74 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.197e-06/0.2692, allocations: 0.6562 kB / 426.9 MB, free: 48.74 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.292e-06/0.2692, allocations: 6.719 kB / 426.9 MB, free: 48.74 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004437/0.2697, allocations: 0.5965 MB / 427.5 MB, free: 48.39 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.2697, allocations: 2.344 kB / 427.5 MB, free: 48.39 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006544/0.2703, allocations: 108.7 kB / 427.6 MB, free: 48.39 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.496e-06/0.2703, allocations: 3.375 kB / 427.6 MB, free: 48.39 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.278e-05/0.2704, allocations: 30.34 kB / 427.6 MB, free: 48.38 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/0.2704, allocations: 9.953 kB / 427.6 MB, free: 48.38 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.2704, allocations: 0 / 427.6 MB, free: 48.38 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002544/0.273, allocations: 1.66 MB / 429.3 MB, free: 47.78 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.699e-05/0.273, allocations: 119.5 kB / 429.4 MB, free: 47.68 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.238e-05/0.2731, allocations: 31.28 kB / 429.4 MB, free: 47.67 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003378/0.2735, allocations: 38.64 kB / 429.5 MB, free: 47.67 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001673/0.2737, allocations: 66.14 kB / 429.6 MB, free: 47.65 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.379e-05/0.2738, allocations: 58.23 kB / 429.6 MB, free: 47.65 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001183/0.2739, allocations: 171.3 kB / 429.8 MB, free: 47.55 MB / 350.1 MB Notification: Performance of sort global known variables: time 2e-07/0.2739, allocations: 0 / 429.8 MB, free: 47.55 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004945/0.2744, allocations: 171.3 kB / 429.9 MB, free: 47.52 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.003241/0.2776, allocations: 2.421 MB / 432.4 MB, free: 46.36 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001743/0.2794, allocations: 1.228 MB / 433.6 MB, free: 45.82 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.2794, allocations: 0 / 433.6 MB, free: 45.82 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009525/0.2804, allocations: 0.9 MB / 434.5 MB, free: 45.36 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002998/0.2807, allocations: 42.84 kB / 434.5 MB, free: 45.34 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006602/0.2873, allocations: 5.094 MB / 439.6 MB, free: 42.79 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000183/0.2875, allocations: 0.8088 MB / 440.4 MB, free: 42.08 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003165/0.2878, allocations: 70 kB / 440.5 MB, free: 42.05 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000226/0.2881, allocations: 144.9 kB / 440.6 MB, free: 41.95 MB / 350.1 MB Notification: Performance of SimCode: time 7.21e-07/0.2881, allocations: 0 / 440.6 MB, free: 41.95 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02938/0.3174, allocations: 11.54 MB / 452.2 MB, free: 40.79 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.399/6.716, allocations: 0 / 452.2 MB, free: 40.79 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)