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.001064/0.001064, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001076/0.001076, allocations: 193.8 kB / 16.25 MB, free: 6.617 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.214/1.214, allocations: 222.9 MB / 239.9 MB, free: 4.551 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.126/0.126, allocations: 3.881 MB / 294 MB, free: 3.242 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001052/0.001052, allocations: 67.91 kB / 355.1 MB, free: 3.887 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07592/0.07699, allocations: 50.18 MB / 405.2 MB, free: 1.668 MB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.TimeBasedCorrelations): time 0.003066/0.0801, allocations: 2.062 MB / 407.3 MB, free: 15.59 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00221/0.08232, allocations: 1.511 MB / 408.8 MB, free: 14.07 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000112/0.08245, allocations: 7.938 kB / 408.8 MB, free: 14.06 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000137/0.0826, allocations: 35.66 kB / 408.9 MB, free: 14.03 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005672/0.08318, allocations: 215.4 kB / 409.1 MB, free: 13.82 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.0005739/0.08376, allocations: 311.4 kB / 409.4 MB, free: 13.51 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004972/0.08427, allocations: 0.6356 MB / 410 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001997/0.08448, allocations: 98 kB / 410.1 MB, free: 12.78 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003136/0.0848, allocations: 255.2 kB / 410.4 MB, free: 12.53 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003079/0.08511, allocations: 275 kB / 410.6 MB, free: 12.26 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.318e-05/0.0852, allocations: 64 kB / 410.7 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005779/0.08579, allocations: 367.4 kB / 411 MB, free: 11.84 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001396/0.08594, allocations: 127.7 kB / 411.2 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002289/0.08617, allocations: 238.9 kB / 411.4 MB, free: 11.48 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008066/0.08699, allocations: 0.7171 MB / 412.1 MB, free: 10.76 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.087, allocations: 0 / 412.1 MB, free: 10.76 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.08701, allocations: 0 / 412.1 MB, free: 10.76 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.666e-06/0.08703, allocations: 0 / 412.1 MB, free: 10.76 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.00265/0.08968, allocations: 2.453 MB / 414.6 MB, free: 8.238 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.793e-05/0.08973, allocations: 8.031 kB / 414.6 MB, free: 8.23 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.832e-05/0.08982, allocations: 74.72 kB / 414.7 MB, free: 8.148 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001227/0.09105, allocations: 160.3 kB / 414.8 MB, free: 7.992 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005624/0.09163, allocations: 371.9 kB / 415.2 MB, free: 7.59 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.89e-05/0.09169, allocations: 32.94 kB / 415.2 MB, free: 7.559 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.555e-05/0.09178, allocations: 48.28 kB / 415.3 MB, free: 7.512 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001077/0.09286, allocations: 0.5641 MB / 415.8 MB, free: 6.941 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.103e-05/0.09288, allocations: 3.938 kB / 415.8 MB, free: 6.938 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.04e-05/0.09294, allocations: 16 kB / 415.8 MB, free: 6.922 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.634e-06/0.09295, allocations: 4 kB / 415.8 MB, free: 6.918 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001348/0.09431, allocations: 0.6346 MB / 416.5 MB, free: 6.277 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00175/0.09607, allocations: 1.135 MB / 417.6 MB, free: 5.094 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001173/0.09725, allocations: 0.6398 MB / 418.3 MB, free: 4.445 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007928/0.09805, allocations: 0.5057 MB / 418.8 MB, free: 3.938 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.997e-05/0.09812, allocations: 12.31 kB / 418.8 MB, free: 3.926 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001044/0.09917, allocations: 0.7481 MB / 419.5 MB, free: 3.129 MB / 350.1 MB Notification: Performance of pre-optimization done (n=57): time 2.374e-06/0.09918, allocations: 0 / 419.5 MB, free: 3.129 MB / 350.1 MB Notification: Performance of matching and sorting (n=57): time 0.002554/0.1017, allocations: 1.373 MB / 420.9 MB, free: 1.738 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.642e-05/0.1018, allocations: 134.7 kB / 421 MB, free: 1.582 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002148/0.102, allocations: 258.5 kB / 421.3 MB, free: 1.316 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.999e-05/0.1021, allocations: 37.7 kB / 421.3 MB, free: 1.273 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.626e-05/0.1022, allocations: 161 kB / 421.5 MB, free: 1.113 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001259/0.1023, allocations: 177.5 kB / 421.6 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001956/0.1025, allocations: 122.2 kB / 421.8 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001033/0.1026, allocations: 350.7 kB / 422.1 MB, free: 472 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007082/0.1034, allocations: 345 kB / 422.4 MB, free: 128 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1452/0.2486, allocations: 352.3 kB / 422.8 MB, free: 49.74 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001664/0.2503, allocations: 0.8269 MB / 423.6 MB, free: 49.61 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.958e-06/0.2503, allocations: 0 / 423.6 MB, free: 49.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.001591/0.2519, allocations: 0.9194 MB / 424.5 MB, free: 49.5 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.084e-05/0.2519, allocations: 96.98 kB / 424.6 MB, free: 49.44 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.763e-06/0.252, allocations: 0 / 424.6 MB, free: 49.44 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.802e-05/0.252, allocations: 2.625 kB / 424.6 MB, free: 49.44 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006894/0.2527, allocations: 133.6 kB / 424.8 MB, free: 49.44 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.337e-06/0.2527, allocations: 4.938 kB / 424.8 MB, free: 49.44 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003634/0.2531, allocations: 69.17 kB / 424.8 MB, free: 49.44 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.675e-05/0.2532, allocations: 48.42 kB / 424.9 MB, free: 49.44 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.0002741/0.2534, allocations: 296.2 kB / 425.2 MB, free: 49.26 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.021e-05/0.2535, allocations: 42.03 kB / 425.2 MB, free: 49.26 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001835/0.2554, allocations: 1.133 MB / 426.3 MB, free: 49 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.2554, allocations: 5.812 kB / 426.3 MB, free: 49 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.2554, allocations: 0 / 426.3 MB, free: 49 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.731e-06/0.2554, allocations: 3.422 kB / 426.3 MB, free: 49 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004307/0.2558, allocations: 0.5979 MB / 426.9 MB, free: 48.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.2558, allocations: 0 / 426.9 MB, free: 48.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006602/0.2565, allocations: 110 kB / 427.1 MB, free: 48.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.218e-06/0.2565, allocations: 3.219 kB / 427.1 MB, free: 48.66 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.867e-05/0.2566, allocations: 31.95 kB / 427.1 MB, free: 48.65 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.2566, allocations: 0 / 427.1 MB, free: 48.65 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.2566, allocations: 3.062 kB / 427.1 MB, free: 48.65 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002427/0.259, allocations: 1.661 MB / 428.8 MB, free: 48.04 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.963e-05/0.2591, allocations: 113.4 kB / 428.9 MB, free: 47.95 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.548e-05/0.2592, allocations: 38.5 kB / 428.9 MB, free: 47.94 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003458/0.2595, allocations: 40.5 kB / 428.9 MB, free: 47.93 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001495/0.2597, allocations: 60.27 kB / 429 MB, free: 47.92 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.337e-05/0.2598, allocations: 59.44 kB / 429.1 MB, free: 47.91 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001109/0.2599, allocations: 168.1 kB / 429.2 MB, free: 47.81 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2599, allocations: 0 / 429.2 MB, free: 47.81 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004455/0.2604, allocations: 169.6 kB / 429.4 MB, free: 47.79 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.003337/0.2637, allocations: 2.426 MB / 431.8 MB, free: 46.62 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001915/0.2656, allocations: 1.272 MB / 433.1 MB, free: 46.08 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.634e-06/0.2656, allocations: 0 / 433.1 MB, free: 46.08 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009262/0.2666, allocations: 0.9013 MB / 434 MB, free: 45.62 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003175/0.2669, allocations: 48.28 kB / 434 MB, free: 45.6 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006427/0.2733, allocations: 5.185 MB / 439.2 MB, free: 42.92 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001805/0.2735, allocations: 0.8053 MB / 440 MB, free: 42.21 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003897/0.2739, allocations: 67.36 kB / 440.1 MB, free: 42.19 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002303/0.2742, allocations: 142.2 kB / 440.2 MB, free: 42.09 MB / 350.1 MB Notification: Performance of SimCode: time 4.91e-07/0.2742, allocations: 0 / 440.2 MB, free: 42.09 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02026/0.2944, allocations: 11.18 MB / 451.4 MB, free: 41.03 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001474/0.2946, allocations: 256.2 kB / 451.7 MB, free: 40.74 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.331/2.626, allocations: 0 / 451.7 MB, free: 40.74 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)