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.001089/0.001089, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001292/0.001293, allocations: 194.7 kB / 16.14 MB, free: 6.707 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.27/1.27, allocations: 222.9 MB / 239.8 MB, free: 4.629 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.111/0.111, allocations: 3.886 MB / 293.8 MB, free: 3.203 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001459/0.001459, allocations: 59.91 kB / 354.9 MB, free: 4.016 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09103/0.09251, allocations: 50.19 MB / 405.1 MB, free: 1.789 MB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.TimeBasedCorrelations): time 0.003049/0.09558, allocations: 2.07 MB / 407.1 MB, free: 15.7 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002552/0.09816, allocations: 1.562 MB / 408.7 MB, free: 14.13 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001902/0.09839, allocations: 4 kB / 408.7 MB, free: 14.13 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001537/0.09855, allocations: 31.66 kB / 408.7 MB, free: 14.1 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006145/0.09918, allocations: 211.4 kB / 408.9 MB, free: 13.89 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.0006783/0.09986, allocations: 299.4 kB / 409.2 MB, free: 13.6 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004862/0.1004, allocations: 0.5692 MB / 409.8 MB, free: 13.03 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001572/0.1005, allocations: 97.94 kB / 409.9 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002184/0.1008, allocations: 211.2 kB / 410.1 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002337/0.101, allocations: 247 kB / 410.3 MB, free: 12.48 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.17e-05/0.1011, allocations: 24 kB / 410.4 MB, free: 12.46 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005017/0.1016, allocations: 327.5 kB / 410.7 MB, free: 12.14 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.565e-05/0.1017, allocations: 91.58 kB / 410.8 MB, free: 12.05 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001723/0.1019, allocations: 194.9 kB / 411 MB, free: 11.86 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006525/0.1025, allocations: 0.6899 MB / 411.7 MB, free: 11.17 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.485e-06/0.1025, allocations: 0 / 411.7 MB, free: 11.17 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.02e-07/0.1025, allocations: 0 / 411.7 MB, free: 11.17 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.16e-06/0.1025, allocations: 0 / 411.7 MB, free: 11.17 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.002627/0.1052, allocations: 2.454 MB / 414.1 MB, free: 8.641 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.549e-05/0.1052, allocations: 8.031 kB / 414.1 MB, free: 8.633 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.506e-05/0.1053, allocations: 62.73 kB / 414.2 MB, free: 8.562 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001239/0.1066, allocations: 172.3 kB / 414.3 MB, free: 8.395 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006023/0.1072, allocations: 371.9 kB / 414.7 MB, free: 7.992 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.656e-05/0.1072, allocations: 32.94 kB / 414.7 MB, free: 7.961 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.226e-05/0.1073, allocations: 44.28 kB / 414.8 MB, free: 7.918 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001141/0.1085, allocations: 0.5679 MB / 415.3 MB, free: 7.344 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.05e-05/0.1085, allocations: 7.938 kB / 415.4 MB, free: 7.336 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.033e-05/0.1085, allocations: 16 kB / 415.4 MB, free: 7.32 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.077e-06/0.1086, allocations: 4 kB / 415.4 MB, free: 7.316 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001422/0.11, allocations: 0.6269 MB / 416 MB, free: 6.684 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001789/0.1118, allocations: 1.151 MB / 417.2 MB, free: 5.484 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001397/0.1132, allocations: 0.687 MB / 417.8 MB, free: 4.789 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008536/0.1141, allocations: 0.5096 MB / 418.4 MB, free: 4.277 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.775e-05/0.1141, allocations: 12.31 kB / 418.4 MB, free: 4.266 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001129/0.1153, allocations: 0.752 MB / 419.1 MB, free: 3.465 MB / 350.1 MB Notification: Performance of pre-optimization done (n=58): time 1.973e-06/0.1153, allocations: 0 / 419.1 MB, free: 3.465 MB / 350.1 MB Notification: Performance of matching and sorting (n=58): time 0.002677/0.1179, allocations: 1.388 MB / 420.5 MB, free: 2.059 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.807e-05/0.118, allocations: 134.8 kB / 420.6 MB, free: 1.902 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002259/0.1183, allocations: 258.5 kB / 420.9 MB, free: 1.637 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.078e-05/0.1183, allocations: 41.7 kB / 420.9 MB, free: 1.59 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.959e-05/0.1184, allocations: 153 kB / 421.1 MB, free: 1.438 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001264/0.1186, allocations: 177.5 kB / 421.3 MB, free: 1.262 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002043/0.1188, allocations: 122.2 kB / 421.4 MB, free: 1.137 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001135/0.1189, allocations: 350.7 kB / 421.7 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007787/0.1197, allocations: 349 kB / 422.1 MB, free: 456 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007264/0.1204, allocations: 361.3 kB / 422.4 MB, free: 100 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1392/0.2596, allocations: 0.8233 MB / 423.2 MB, free: 49.57 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.34e-06/0.2596, allocations: 5.344 kB / 423.2 MB, free: 49.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001702/0.2613, allocations: 0.9301 MB / 424.2 MB, free: 49.47 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.858e-05/0.2614, allocations: 93.97 kB / 424.3 MB, free: 49.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.2614, allocations: 2.594 kB / 424.3 MB, free: 49.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.334e-05/0.2614, allocations: 3.188 kB / 424.3 MB, free: 49.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007149/0.2621, allocations: 136.3 kB / 424.4 MB, free: 49.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.667e-06/0.2622, allocations: 4.625 kB / 424.4 MB, free: 49.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003788/0.2625, allocations: 68.48 kB / 424.5 MB, free: 49.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.104e-05/0.2626, allocations: 48.42 kB / 424.5 MB, free: 49.41 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 (60): * Single equations (assignments): 58 * 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.0002768/0.2629, allocations: 295.6 kB / 424.8 MB, free: 49.23 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.307e-05/0.263, allocations: 40.47 kB / 424.8 MB, free: 49.23 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001922/0.2649, allocations: 1.143 MB / 426 MB, free: 49.05 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.119e-06/0.265, allocations: 6.219 kB / 426 MB, free: 49.05 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.265, allocations: 0.6875 kB / 426 MB, free: 49.05 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.332e-06/0.265, allocations: 0 / 426 MB, free: 49.05 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004574/0.2654, allocations: 0.6096 MB / 426.6 MB, free: 48.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.2654, allocations: 0 / 426.6 MB, free: 48.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006814/0.2661, allocations: 113 kB / 426.7 MB, free: 48.69 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.776e-06/0.2661, allocations: 0 / 426.7 MB, free: 48.69 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.596e-05/0.2662, allocations: 27.12 kB / 426.7 MB, free: 48.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/0.2662, allocations: 3.656 kB / 426.7 MB, free: 48.68 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/0.2662, allocations: 0.5625 kB / 426.7 MB, free: 48.68 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002633/0.2689, allocations: 1.677 MB / 428.4 MB, free: 48.08 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.133e-05/0.2689, allocations: 123.7 kB / 428.5 MB, free: 47.98 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001002/0.269, allocations: 30.47 kB / 428.6 MB, free: 47.97 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003661/0.2694, allocations: 40.16 kB / 428.6 MB, free: 47.96 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000158/0.2696, allocations: 63.33 kB / 428.7 MB, free: 47.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.95e-05/0.2697, allocations: 61.31 kB / 428.7 MB, free: 47.95 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001138/0.2698, allocations: 174.2 kB / 428.9 MB, free: 47.84 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2698, allocations: 1.156 kB / 428.9 MB, free: 47.84 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004634/0.2702, allocations: 166.2 kB / 429.1 MB, free: 47.82 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 (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.003451/0.2737, allocations: 2.448 MB / 431.5 MB, free: 46.65 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001723/0.2754, allocations: 1.236 MB / 432.7 MB, free: 46.11 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.2755, allocations: 0 / 432.7 MB, free: 46.11 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009704/0.2764, allocations: 0.9045 MB / 433.7 MB, free: 45.64 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003083/0.2767, allocations: 49.84 kB / 433.7 MB, free: 45.63 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006517/0.2833, allocations: 5.2 MB / 438.9 MB, free: 42.94 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000178/0.2835, allocations: 0.8078 MB / 439.7 MB, free: 42.23 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003936/0.2839, allocations: 72.59 kB / 439.8 MB, free: 42.2 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002358/0.2841, allocations: 139.6 kB / 439.9 MB, free: 42.11 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.2841, allocations: 0 / 439.9 MB, free: 42.11 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.342/0.6261, allocations: 10.96 MB / 450.9 MB, free: 41.07 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002089/0.6263, allocations: 259.9 kB / 451.1 MB, free: 40.79 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.152/2.779, allocations: 0 / 451.1 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)