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.00089/0.00089, allocations: 99.7 kB / 15.05 MB, free: 1.105 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.0009818/0.0009818, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.42/1.42, allocations: 223.2 MB / 239.9 MB, free: 5.449 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.1666/0.1666, allocations: 3.882 MB / 294.9 MB, free: 3.961 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003674/0.0003675, allocations: 12 kB / 356.6 MB, free: 3.523 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1124/0.1128, allocations: 51.16 MB / 407.8 MB, free: 324 kB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.TimeBasedCorrelations): time 0.002438/0.1153, allocations: 1.638 MB / 409.4 MB, free: 14.66 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00297/0.1183, allocations: 1.434 MB / 410.9 MB, free: 13.23 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002035/0.1185, allocations: 7.938 kB / 410.9 MB, free: 13.22 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001968/0.1187, allocations: 35.72 kB / 410.9 MB, free: 13.18 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006776/0.1194, allocations: 191.3 kB / 411.1 MB, free: 13 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.0007256/0.1201, allocations: 259.3 kB / 411.4 MB, free: 12.74 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004393/0.1206, allocations: 323.4 kB / 411.7 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001938/0.1208, allocations: 77.44 kB / 411.7 MB, free: 12.35 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000282/0.1211, allocations: 211.3 kB / 411.9 MB, free: 12.14 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002816/0.1214, allocations: 227.2 kB / 412.2 MB, free: 11.92 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.366e-05/0.1214, allocations: 24 kB / 412.2 MB, free: 11.89 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005468/0.122, allocations: 279.5 kB / 412.5 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001052/0.1221, allocations: 79.7 kB / 412.5 MB, free: 11.54 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001099/0.1222, allocations: 89.52 kB / 412.6 MB, free: 11.45 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006468/0.1229, allocations: 0.5226 MB / 413.2 MB, free: 10.93 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.1229, allocations: 0 / 413.2 MB, free: 10.93 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.425e-06/0.1229, allocations: 0 / 413.2 MB, free: 10.93 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.991e-06/0.1229, allocations: 0 / 413.2 MB, free: 10.93 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.003001/0.1259, allocations: 2.376 MB / 415.5 MB, free: 8.48 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.846e-05/0.126, allocations: 8.031 kB / 415.5 MB, free: 8.473 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001036/0.1261, allocations: 66.53 kB / 415.6 MB, free: 8.398 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001171/0.1273, allocations: 135.4 kB / 415.7 MB, free: 8.266 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006796/0.1279, allocations: 358.8 kB / 416.1 MB, free: 7.875 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.702e-05/0.128, allocations: 32.56 kB / 416.1 MB, free: 7.844 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.945e-05/0.1282, allocations: 51.86 kB / 416.2 MB, free: 7.793 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001212/0.1294, allocations: 0.5752 MB / 416.7 MB, free: 7.211 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.18e-05/0.1294, allocations: 0 / 416.7 MB, free: 7.211 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.891e-05/0.1295, allocations: 19.98 kB / 416.8 MB, free: 7.191 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.002e-05/0.1295, allocations: 7.984 kB / 416.8 MB, free: 7.184 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001478/0.131, allocations: 0.6542 MB / 417.4 MB, free: 6.523 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002026/0.133, allocations: 1.135 MB / 418.6 MB, free: 5.34 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001509/0.1345, allocations: 0.7029 MB / 419.3 MB, free: 4.625 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.513e-05/0.1346, allocations: 16.3 kB / 419.3 MB, free: 4.609 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001254/0.1359, allocations: 0.7598 MB / 420 MB, free: 3.801 MB / 350.1 MB Notification: Performance of pre-optimization done (n=58): time 2.645e-06/0.1359, allocations: 4 kB / 420 MB, free: 3.797 MB / 350.1 MB Notification: Performance of matching and sorting (n=58): time 0.002994/0.1389, allocations: 1.564 MB / 421.6 MB, free: 2.18 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001083/0.139, allocations: 134.8 kB / 421.7 MB, free: 2.023 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002729/0.1393, allocations: 254.5 kB / 422 MB, free: 1.762 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.629e-05/0.1394, allocations: 37.7 kB / 422 MB, free: 1.719 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001143/0.1395, allocations: 157 kB / 422.2 MB, free: 1.562 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001532/0.1396, allocations: 173.5 kB / 422.3 MB, free: 1.391 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.996e-05/0.1397, allocations: 19.98 kB / 422.4 MB, free: 1.371 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001481/0.1398, allocations: 350.8 kB / 422.7 MB, free: 1.02 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008045/0.1407, allocations: 353 kB / 423.1 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007691/0.1414, allocations: 373.3 kB / 423.4 MB, free: 324 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1895/0.331, allocations: 441.5 kB / 423.9 MB, free: 46.71 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.937e-06/0.331, allocations: 0.5312 kB / 423.9 MB, free: 46.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.002172/0.3332, allocations: 0.9475 MB / 424.8 MB, free: 46.61 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.493e-05/0.3333, allocations: 95.45 kB / 424.9 MB, free: 46.55 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.3333, allocations: 0 / 424.9 MB, free: 46.55 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.28e-05/0.3334, allocations: 3.406 kB / 424.9 MB, free: 46.55 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007259/0.3341, allocations: 143.6 kB / 425 MB, free: 46.55 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.088e-05/0.3341, allocations: 3.938 kB / 425 MB, free: 46.55 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003997/0.3345, allocations: 85.27 kB / 425.1 MB, free: 46.55 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.661e-05/0.3346, allocations: 29.03 kB / 425.2 MB, free: 46.55 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 ($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,noise1.localSeed,noise1.actualGlobalSeed,globalSeed.id_impure,noise2.localSeed,noise2.actualGlobalSeed,globalSeed.seed) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (60): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003153/0.3349, allocations: 289 kB / 425.4 MB, free: 46.37 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.872e-05/0.335, allocations: 43.97 kB / 425.5 MB, free: 46.37 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001944/0.3369, allocations: 1.153 MB / 426.6 MB, free: 46.27 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.402e-06/0.337, allocations: 2.969 kB / 426.6 MB, free: 46.27 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/0.337, allocations: 0 / 426.6 MB, free: 46.27 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.823e-06/0.337, allocations: 7.078 kB / 426.6 MB, free: 46.27 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005039/0.3375, allocations: 0.5945 MB / 427.2 MB, free: 46.08 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.3375, allocations: 3.469 kB / 427.2 MB, free: 46.08 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006872/0.3382, allocations: 111.9 kB / 427.3 MB, free: 46.08 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.693e-06/0.3382, allocations: 8.453 kB / 427.4 MB, free: 46.08 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.218e-05/0.3383, allocations: 26.53 kB / 427.4 MB, free: 46.08 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.108e-06/0.3383, allocations: 2.969 kB / 427.4 MB, free: 46.08 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/0.3383, allocations: 4.578 kB / 427.4 MB, free: 46.08 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002743/0.341, allocations: 1.694 MB / 429.1 MB, free: 45.94 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.261e-05/0.3411, allocations: 112.8 kB / 429.2 MB, free: 45.84 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001004/0.3412, allocations: 35.39 kB / 429.2 MB, free: 45.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003566/0.3416, allocations: 48.48 kB / 429.3 MB, free: 45.84 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001581/0.3417, allocations: 61.77 kB / 429.3 MB, free: 45.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.472e-05/0.3418, allocations: 29.56 kB / 429.4 MB, free: 45.84 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001221/0.3419, allocations: 168.4 kB / 429.5 MB, free: 45.76 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3419, allocations: 0 / 429.5 MB, free: 45.76 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005345/0.3425, allocations: 180.6 kB / 429.7 MB, free: 45.74 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 (42): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00359/0.3461, allocations: 2.435 MB / 432.1 MB, free: 45.03 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001869/0.348, allocations: 1.257 MB / 433.4 MB, free: 44.6 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.348, allocations: 0.9375 kB / 433.4 MB, free: 44.6 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001046/0.349, allocations: 0.911 MB / 434.3 MB, free: 44.12 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002481/0.3493, allocations: 27.92 kB / 434.3 MB, free: 44.12 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001868/0.3512, allocations: 1.548 MB / 435.9 MB, free: 43.23 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002023/0.3514, allocations: 0.8192 MB / 436.7 MB, free: 42.52 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003786/0.3518, allocations: 68.3 kB / 436.8 MB, free: 42.5 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002219/0.352, allocations: 144.4 kB / 436.9 MB, free: 42.4 MB / 350.1 MB Notification: Performance of SimCode: time 1.373e-06/0.352, allocations: 0 / 436.9 MB, free: 42.4 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01928/0.3713, allocations: 10.64 MB / 447.5 MB, free: 41.48 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001393/0.3715, allocations: 241.4 kB / 447.8 MB, free: 41.24 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.86/2.232, allocations: 0 / 447.8 MB, free: 41.24 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/linux/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) Environment - environmentSimulation: