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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001693/0.001693, allocations: 77.09 kB / 20.66 MB, free: 3.844 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001801/0.001801, allocations: 169 kB / 24.06 MB, free: 456 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.004/1.004, allocations: 177.1 MB / 204.5 MB, free: 5.5 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise master/package.mo): time 0.01588/0.01588, allocations: 3.159 MB / 264.2 MB, free: 9.895 MB / 250.7 MB " [Timeout remaining time 180] Using package AdvancedNoise with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(AdvancedNoise.Examples.TimeBasedCorrelations,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="AdvancedNoise_AdvancedNoise.Examples.TimeBasedCorrelations") translateModel(AdvancedNoise.Examples.TimeBasedCorrelations,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="AdvancedNoise_AdvancedNoise.Examples.TimeBasedCorrelations") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.673e-06/1.673e-06, allocations: 0 / 334.7 MB, free: 0.8281 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.536e-05/1.703e-05, allocations: 6.312 kB / 334.7 MB, free: 0.8203 MB / 298.7 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.TimeBasedCorrelations): time 0.003187/0.003205, allocations: 1.952 MB / 336.6 MB, free: 14.86 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002736/0.00594, allocations: 1.483 MB / 338.1 MB, free: 13.37 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001755/0.006116, allocations: 7.938 kB / 338.1 MB, free: 13.36 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002004/0.006316, allocations: 63.39 kB / 338.2 MB, free: 13.3 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008042/0.00712, allocations: 266.7 kB / 338.4 MB, free: 13.04 MB / 314.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.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.0008202/0.00794, allocations: 378.8 kB / 338.8 MB, free: 12.66 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007373/0.008678, allocations: 0.655 MB / 339.5 MB, free: 12.01 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000167/0.008845, allocations: 54.38 kB / 339.5 MB, free: 11.95 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004881/0.009333, allocations: 359.3 kB / 339.9 MB, free: 11.6 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003442/0.009677, allocations: 227.5 kB / 340.1 MB, free: 11.38 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000119/0.009796, allocations: 60 kB / 340.2 MB, free: 11.32 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006376/0.01043, allocations: 395.2 kB / 340.5 MB, free: 10.93 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001251/0.01056, allocations: 123.6 kB / 340.7 MB, free: 10.81 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002018/0.01076, allocations: 167.6 kB / 340.8 MB, free: 10.65 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008085/0.01157, allocations: 0.5957 MB / 341.4 MB, free: 10.05 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.963e-06/0.01157, allocations: 0 / 341.4 MB, free: 10.05 MB / 314.7 MB Notification: Performance of FrontEnd: time 5.71e-07/0.01157, allocations: 0 / 341.4 MB, free: 10.05 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.285e-06/0.01158, allocations: 0 / 341.4 MB, free: 10.05 MB / 314.7 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.002154/0.01373, allocations: 1.887 MB / 343.3 MB, free: 8.105 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.249e-05/0.01377, allocations: 16.02 kB / 343.3 MB, free: 8.09 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007042/0.01447, allocations: 216.4 kB / 343.5 MB, free: 7.879 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003052/0.01478, allocations: 300 kB / 343.8 MB, free: 7.555 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.778e-05/0.01481, allocations: 32.88 kB / 343.9 MB, free: 7.523 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.589e-05/0.01487, allocations: 48.31 kB / 343.9 MB, free: 7.477 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005307/0.0154, allocations: 436.7 kB / 344.3 MB, free: 7.035 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.006e-06/0.01541, allocations: 192 / 344.3 MB, free: 7.035 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.27e-05/0.01544, allocations: 8.375 kB / 344.3 MB, free: 7.027 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.774e-06/0.01545, allocations: 12.31 kB / 344.4 MB, free: 7.016 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003563/0.01581, allocations: 313.4 kB / 344.7 MB, free: 6.695 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001057/0.01686, allocations: 0.8537 MB / 345.5 MB, free: 5.812 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000426/0.01729, allocations: 363.3 kB / 345.9 MB, free: 5.434 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002145/0.0175, allocations: 244.3 kB / 346.1 MB, free: 5.18 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.288e-05/0.01754, allocations: 12.31 kB / 346.1 MB, free: 5.168 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004091/0.01794, allocations: 0.5731 MB / 346.7 MB, free: 4.531 MB / 314.7 MB Notification: Performance of pre-optimization done (n=57): time 2.304e-06/0.01795, allocations: 0 / 346.7 MB, free: 4.531 MB / 314.7 MB Notification: Performance of matching and sorting (n=57): time 0.0008839/0.01883, allocations: 0.8982 MB / 347.6 MB, free: 3.594 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.993e-05/0.01888, allocations: 126.8 kB / 347.7 MB, free: 3.445 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001536/0.01903, allocations: 300.1 kB / 348 MB, free: 3.133 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.475e-05/0.01907, allocations: 37.7 kB / 348 MB, free: 3.09 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.915e-05/0.01915, allocations: 203.9 kB / 348.2 MB, free: 2.883 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001028/0.01925, allocations: 182.4 kB / 348.4 MB, free: 2.703 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001439/0.0194, allocations: 135.7 kB / 348.6 MB, free: 2.559 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001335/0.01953, allocations: 0.5195 MB / 349.1 MB, free: 2.027 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001942/0.01972, allocations: 204.5 kB / 349.3 MB, free: 1.816 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001813/0.0199, allocations: 204.6 kB / 349.5 MB, free: 1.605 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003883/0.02029, allocations: 458 kB / 349.9 MB, free: 1.129 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.02029, allocations: 0 / 349.9 MB, free: 1.129 MB / 314.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.0005802/0.02088, allocations: 0.6121 MB / 350.5 MB, free: 0.4922 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.887e-05/0.02092, allocations: 87.36 kB / 350.6 MB, free: 404 kB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.02093, allocations: 3.938 kB / 350.6 MB, free: 400 kB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.806e-06/0.02094, allocations: 8 kB / 350.6 MB, free: 392 kB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003495/0.02129, allocations: 123.8 kB / 350.7 MB, free: 268 kB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.118e-06/0.02129, allocations: 4 kB / 350.8 MB, free: 264 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001621/0.02145, allocations: 67.58 kB / 350.8 MB, free: 196 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.576e-05/0.02151, allocations: 47.92 kB / 350.9 MB, free: 148 kB / 314.7 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 (noise1.localSeed,globalSeed.seed,noise1.actualGlobalSeed,globalSeed.id_impure,noise2.localSeed,noise2.actualGlobalSeed,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.0001947/0.0217, allocations: 289.8 kB / 351.1 MB, free: 15.84 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.472e-05/0.02179, allocations: 75.75 kB / 351.2 MB, free: 15.77 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007642/0.02255, allocations: 0.7587 MB / 352 MB, free: 14.98 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-06/0.02256, allocations: 4 kB / 352 MB, free: 14.97 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.744e-06/0.02256, allocations: 0 / 352 MB, free: 14.97 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.02256, allocations: 0 / 352 MB, free: 14.97 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003025/0.02287, allocations: 349.2 kB / 352.3 MB, free: 14.61 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.02287, allocations: 0 / 352.3 MB, free: 14.61 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003292/0.0232, allocations: 103.8 kB / 352.4 MB, free: 14.5 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.374e-06/0.0232, allocations: 0 / 352.4 MB, free: 14.5 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.006e-05/0.02324, allocations: 31.97 kB / 352.5 MB, free: 14.47 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.854e-06/0.02324, allocations: 0 / 352.5 MB, free: 14.47 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.02324, allocations: 3.938 kB / 352.5 MB, free: 14.47 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001069/0.02431, allocations: 1.089 MB / 353.6 MB, free: 13.31 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.231e-05/0.02434, allocations: 39.58 kB / 353.6 MB, free: 13.27 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.681e-05/0.02441, allocations: 31.98 kB / 353.6 MB, free: 13.24 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001528/0.02456, allocations: 39.95 kB / 353.7 MB, free: 13.2 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001129/0.02468, allocations: 59.84 kB / 353.7 MB, free: 13.14 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.017e-05/0.02474, allocations: 59.91 kB / 353.8 MB, free: 13.09 MB / 330.7 MB Notification: Performance of sorting global known variables: time 8.29e-05/0.02482, allocations: 189.1 kB / 354 MB, free: 12.9 MB / 330.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02482, allocations: 0 / 354 MB, free: 12.9 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003713/0.02519, allocations: 175.7 kB / 354.1 MB, free: 12.73 MB / 330.7 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.0005117/0.0257, allocations: 347.5 kB / 354.5 MB, free: 12.43 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006593/0.02636, allocations: 0.7351 MB / 355.2 MB, free: 11.64 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.412e-06/0.02636, allocations: 0 / 355.2 MB, free: 11.64 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003701/0.02673, allocations: 490.8 kB / 355.7 MB, free: 11.12 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000244/0.02698, allocations: 84.45 kB / 355.8 MB, free: 11.04 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009363/0.02791, allocations: 0.9214 MB / 356.7 MB, free: 10.08 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.223e-05/0.02798, allocations: 114.1 kB / 356.8 MB, free: 9.945 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002161/0.02819, allocations: 70.95 kB / 356.9 MB, free: 9.875 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003109/0.0285, allocations: 206.1 kB / 357.1 MB, free: 9.672 MB / 330.7 MB Notification: Performance of SimCode: time 6.72e-07/0.0285, allocations: 3.938 kB / 357.1 MB, free: 9.668 MB / 330.7 MB Notification: Performance of Templates: time 0.01054/0.03904, allocations: 9.484 MB / 366.6 MB, free: 280 kB / 330.7 MB " [Timeout remaining time 660] make -j1 -f AdvancedNoise_AdvancedNoise.Examples.TimeBasedCorrelations.makefile [Timeout 660] (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=240 -lv LOG_STATS > AdvancedNoise_AdvancedNoise.Examples.TimeBasedCorrelations.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.5362105700187385]