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: translateModel(AdvancedNoise.Examples.TimeBasedCorrelations,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AdvancedNoise_AdvancedNoise.Examples.TimeBasedCorrelations") translateModel(AdvancedNoise.Examples.TimeBasedCorrelations,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AdvancedNoise_AdvancedNoise.Examples.TimeBasedCorrelations") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001044/0.001044, allocations: 110 kB / 16.41 MB, free: 6.5 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.001019/0.001019, allocations: 185.6 kB / 17.34 MB, free: 5.762 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.301/1.301, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.02562/0.02562, allocations: 3.905 MB / 295.1 MB, free: 11.05 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00118/0.00118, allocations: 67.39 kB / 407.6 MB, free: 28.28 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06935/0.07054, allocations: 50.18 MB / 457.8 MB, free: 10.05 MB / 334.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.TimeBasedCorrelations): time 0.002733/0.07331, allocations: 1.998 MB / 459.8 MB, free: 8.039 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002363/0.07568, allocations: 1.503 MB / 461.3 MB, free: 6.531 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001113/0.07581, allocations: 7.938 kB / 461.3 MB, free: 6.523 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001576/0.07597, allocations: 55.41 kB / 461.3 MB, free: 6.469 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006474/0.07664, allocations: 255 kB / 461.6 MB, free: 6.219 MB / 334.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.0006548/0.0773, allocations: 343.1 kB / 461.9 MB, free: 5.883 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005528/0.07787, allocations: 0.6395 MB / 462.5 MB, free: 5.242 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001681/0.07804, allocations: 90.02 kB / 462.6 MB, free: 5.148 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002724/0.07832, allocations: 267.2 kB / 462.9 MB, free: 4.887 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002936/0.07863, allocations: 271.1 kB / 463.2 MB, free: 4.621 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.37e-05/0.07873, allocations: 67.94 kB / 463.2 MB, free: 4.555 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004961/0.07923, allocations: 351.5 kB / 463.6 MB, free: 4.211 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001152/0.07936, allocations: 123.6 kB / 463.7 MB, free: 4.09 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001992/0.07956, allocations: 234.9 kB / 463.9 MB, free: 3.859 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007051/0.08027, allocations: 0.713 MB / 464.6 MB, free: 3.145 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.08029, allocations: 0 / 464.6 MB, free: 3.145 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.153e-06/0.0803, allocations: 3.938 kB / 464.6 MB, free: 3.141 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.101e-06/0.08031, allocations: 4 kB / 464.6 MB, free: 3.137 MB / 334.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.002809/0.08312, allocations: 2.451 MB / 467.1 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.975e-05/0.08316, allocations: 8.031 kB / 467.1 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001335/0.08451, allocations: 164.3 kB / 467.3 MB, free: 456 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006245/0.08514, allocations: 367.9 kB / 467.6 MB, free: 48 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.427e-05/0.08521, allocations: 36.94 kB / 467.7 MB, free: 12 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.94e-05/0.08531, allocations: 40.33 kB / 467.7 MB, free: 15.97 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001236/0.08656, allocations: 0.5719 MB / 468.3 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.016e-05/0.08658, allocations: 192 / 468.3 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.61e-05/0.08664, allocations: 19.94 kB / 468.3 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.123e-06/0.08666, allocations: 4 kB / 468.3 MB, free: 15.37 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001567/0.08823, allocations: 0.6307 MB / 468.9 MB, free: 14.74 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001914/0.09015, allocations: 1.135 MB / 470.1 MB, free: 13.55 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001349/0.09151, allocations: 0.6477 MB / 470.7 MB, free: 12.9 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009289/0.09246, allocations: 0.5018 MB / 471.2 MB, free: 12.39 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.978e-05/0.09251, allocations: 4.328 kB / 471.2 MB, free: 12.39 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001168/0.09368, allocations: 0.752 MB / 472 MB, free: 11.59 MB / 350.1 MB Notification: Performance of pre-optimization done (n=57): time 2.003e-06/0.0937, allocations: 4 kB / 472 MB, free: 11.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=57): time 0.002954/0.09666, allocations: 1.373 MB / 473.3 MB, free: 10.2 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.512e-05/0.09675, allocations: 138.8 kB / 473.5 MB, free: 10.04 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002359/0.09699, allocations: 254.5 kB / 473.7 MB, free: 9.777 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.347e-05/0.09705, allocations: 37.7 kB / 473.8 MB, free: 9.734 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.543e-05/0.09715, allocations: 157 kB / 473.9 MB, free: 9.578 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001423/0.0973, allocations: 177.5 kB / 474.1 MB, free: 9.402 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002055/0.09751, allocations: 118.2 kB / 474.2 MB, free: 9.281 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001301/0.09765, allocations: 346.8 kB / 474.5 MB, free: 8.934 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008239/0.09848, allocations: 353 kB / 474.9 MB, free: 8.59 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008235/0.09932, allocations: 361.3 kB / 475.2 MB, free: 8.238 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001614/0.1009, allocations: 0.8235 MB / 476.1 MB, free: 7.387 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.101, allocations: 0 / 476.1 MB, free: 7.387 MB / 350.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.001888/0.1028, allocations: 0.9251 MB / 477 MB, free: 6.441 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.382e-05/0.1029, allocations: 91.38 kB / 477.1 MB, free: 6.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.071e-06/0.1029, allocations: 3.984 kB / 477.1 MB, free: 6.336 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.454e-05/0.103, allocations: 4 kB / 477.1 MB, free: 6.332 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007787/0.1037, allocations: 123.8 kB / 477.2 MB, free: 6.211 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.023e-05/0.1038, allocations: 7.984 kB / 477.2 MB, free: 6.203 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004047/0.1042, allocations: 67.5 kB / 477.3 MB, free: 6.137 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.199e-05/0.1043, allocations: 51.92 kB / 477.3 MB, free: 6.086 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.0003019/0.1046, allocations: 295.8 kB / 477.6 MB, free: 5.773 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.393e-05/0.1047, allocations: 43.53 kB / 477.7 MB, free: 5.73 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002305/0.107, allocations: 1.131 MB / 478.8 MB, free: 4.578 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.981e-06/0.107, allocations: 4 kB / 478.8 MB, free: 4.574 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.107, allocations: 3.984 kB / 478.8 MB, free: 4.57 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.214e-06/0.107, allocations: 3.984 kB / 478.8 MB, free: 4.566 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006064/0.1077, allocations: 0.5989 MB / 479.4 MB, free: 3.918 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.1077, allocations: 0 / 479.4 MB, free: 3.918 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007733/0.1084, allocations: 107.8 kB / 479.5 MB, free: 3.812 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.1085, allocations: 0 / 479.5 MB, free: 3.812 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.738e-05/0.1085, allocations: 31.97 kB / 479.5 MB, free: 3.781 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.807e-06/0.1085, allocations: 4 kB / 479.5 MB, free: 3.777 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.1086, allocations: 0 / 479.5 MB, free: 3.777 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003239/0.1118, allocations: 1.669 MB / 481.2 MB, free: 2.074 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.481e-05/0.1119, allocations: 116.6 kB / 481.3 MB, free: 1.941 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001175/0.112, allocations: 31.98 kB / 481.4 MB, free: 1.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004067/0.1124, allocations: 39.95 kB / 481.4 MB, free: 1.871 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001568/0.1126, allocations: 59.92 kB / 481.5 MB, free: 1.812 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.038e-05/0.1127, allocations: 55.92 kB / 481.5 MB, free: 1.758 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001529/0.1128, allocations: 174 kB / 481.7 MB, free: 1.59 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1128, allocations: 192 / 481.7 MB, free: 1.59 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004976/0.1133, allocations: 167.8 kB / 481.8 MB, free: 1.426 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.0005944/0.114, allocations: 333.6 kB / 482.2 MB, free: 1.141 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002169/0.1161, allocations: 1.22 MB / 483.4 MB, free: 15.89 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.1162, allocations: 4 kB / 483.4 MB, free: 15.89 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001272/0.1174, allocations: 0.8933 MB / 484.3 MB, free: 14.97 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003233/0.1178, allocations: 44.5 kB / 484.3 MB, free: 14.93 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00184/0.1196, allocations: 1.116 MB / 485.4 MB, free: 13.78 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003329/0.12, allocations: 0.8043 MB / 486.3 MB, free: 12.95 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002393/0.1202, allocations: 51.39 kB / 486.3 MB, free: 12.89 MB / 366.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1202, allocations: 3.938 kB / 486.3 MB, free: 12.89 MB / 366.1 MB Notification: Performance of Templates: time 0.01068/0.1309, allocations: 8.263 MB / 494.6 MB, free: 4.664 MB / 366.1 MB make -j1 -f AdvancedNoise_AdvancedNoise.Examples.TimeBasedCorrelations.makefile (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 & ./AdvancedNoise_AdvancedNoise.Examples.TimeBasedCorrelations -abortSlowSimulation -alarm=480 -lv LOG_STATS > AdvancedNoise_AdvancedNoise.Examples.TimeBasedCorrelations.pipe 2>&1)