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) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001724/0.001724, allocations: 110 kB / 18.93 MB, free: 2.945 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002211/0.002211, allocations: 192.3 kB / 22.23 MB, free: 5.16 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.515/1.515, allocations: 225.6 MB / 251 MB, free: 13.02 MB / 206.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.0291/0.0291, allocations: 3.934 MB / 310.2 MB, free: 4.965 MB / 238.1 MB
"
[Timeout remaining time 180]
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=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 0.001976/0.001976, allocations: 71.89 kB / 431.8 MB, free: 19.43 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.1136/0.1156, allocations: 52.94 MB / 484.7 MB, free: 14.39 MB / 350.1 MB
Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.TimeBasedCorrelations): time 0.003349/0.1189, allocations: 2.018 MB / 486.7 MB, free: 12.36 MB / 350.1 MB
Notification: Performance of NFInst.instExpressions: time 0.00279/0.1217, allocations: 1.554 MB / 488.3 MB, free: 10.8 MB / 350.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001134/0.1218, allocations: 7.938 kB / 488.3 MB, free: 10.8 MB / 350.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0001782/0.122, allocations: 51.47 kB / 488.3 MB, free: 10.75 MB / 350.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0007117/0.1227, allocations: 255 kB / 488.6 MB, free: 10.5 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.0007842/0.1235, allocations: 371.1 kB / 488.9 MB, free: 10.13 MB / 350.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0007072/0.1242, allocations: 0.6435 MB / 489.6 MB, free: 9.488 MB / 350.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001617/0.1243, allocations: 66.25 kB / 489.7 MB, free: 9.418 MB / 350.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0003197/0.1247, allocations: 263.2 kB / 489.9 MB, free: 9.16 MB / 350.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0003454/0.125, allocations: 283 kB / 490.2 MB, free: 8.883 MB / 350.1 MB
Notification: Performance of NFPackage.collectConstants: time 0.0001/0.1251, allocations: 64 kB / 490.3 MB, free: 8.82 MB / 350.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0006538/0.1258, allocations: 403.4 kB / 490.6 MB, free: 8.426 MB / 350.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0001435/0.1259, allocations: 123.7 kB / 490.8 MB, free: 8.305 MB / 350.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.000258/0.1262, allocations: 242.9 kB / 491 MB, free: 8.066 MB / 350.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0009253/0.1271, allocations: 0.7087 MB / 491.7 MB, free: 7.355 MB / 350.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.1271, allocations: 4 kB / 491.7 MB, free: 7.352 MB / 350.1 MB
Notification: Performance of FrontEnd: time 1.302e-06/0.1271, allocations: 0 / 491.7 MB, free: 7.352 MB / 350.1 MB
Notification: Performance of Transformations before backend: time 1.177e-05/0.1271, allocations: 0 / 491.7 MB, free: 7.352 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.003322/0.1304, allocations: 2.417 MB / 494.1 MB, free: 4.883 MB / 350.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.714e-05/0.1305, allocations: 12.03 kB / 494.1 MB, free: 4.871 MB / 350.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001356/0.1318, allocations: 168.5 kB / 494.3 MB, free: 4.707 MB / 350.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007017/0.1325, allocations: 313.6 kB / 494.6 MB, free: 4.375 MB / 350.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.064e-05/0.1326, allocations: 36.88 kB / 494.7 MB, free: 4.34 MB / 350.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 9.71e-05/0.1327, allocations: 36.38 kB / 494.7 MB, free: 4.305 MB / 350.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.001341/0.134, allocations: 0.5753 MB / 495.3 MB, free: 3.723 MB / 350.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.244e-05/0.134, allocations: 192 / 495.3 MB, free: 3.723 MB / 350.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.523e-05/0.1341, allocations: 23.92 kB / 495.3 MB, free: 3.699 MB / 350.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.027e-06/0.1341, allocations: 4 kB / 495.3 MB, free: 3.695 MB / 350.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001686/0.1358, allocations: 0.6306 MB / 495.9 MB, free: 3.059 MB / 350.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002285/0.1381, allocations: 1.103 MB / 497 MB, free: 1.914 MB / 350.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0014/0.1395, allocations: 0.5188 MB / 497.5 MB, free: 1.387 MB / 350.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0009123/0.1404, allocations: 393.8 kB / 497.9 MB, free: 1 MB / 350.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 4.503e-05/0.1404, allocations: 12.31 kB / 497.9 MB, free: 0.9883 MB / 350.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001292/0.1417, allocations: 0.7439 MB / 498.7 MB, free: 200 kB / 350.1 MB
Notification: Performance of pre-optimization done (n=57): time 1.863e-06/0.1417, allocations: 0 / 498.7 MB, free: 200 kB / 350.1 MB
Notification: Performance of matching and sorting (n=57): time 0.003187/0.1449, allocations: 1.387 MB / 0.4884 GB, free: 14.79 MB / 366.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 0.000115/0.145, allocations: 142.8 kB / 0.4885 GB, free: 14.62 MB / 366.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002874/0.1453, allocations: 253.8 kB / 0.4887 GB, free: 14.37 MB / 366.1 MB
Notification: Performance of collectPreVariables (initialization): time 6.328e-05/0.1454, allocations: 33.7 kB / 0.4888 GB, free: 14.33 MB / 366.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0001172/0.1455, allocations: 153.2 kB / 0.4889 GB, free: 14.18 MB / 366.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0001712/0.1457, allocations: 182.5 kB / 0.4891 GB, free: 14 MB / 366.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002296/0.1459, allocations: 126.1 kB / 0.4892 GB, free: 13.87 MB / 366.1 MB
Notification: Performance of setup shared object (initialization): time 0.000171/0.1461, allocations: 346.8 kB / 0.4895 GB, free: 13.52 MB / 366.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.000893/0.147, allocations: 349 kB / 0.4899 GB, free: 13.18 MB / 366.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008831/0.1479, allocations: 349.1 kB / 0.4902 GB, free: 12.84 MB / 366.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.001829/0.1497, allocations: 0.8349 MB / 0.491 GB, free: 11.98 MB / 366.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.1497, allocations: 3.938 kB / 0.491 GB, free: 11.98 MB / 366.1 MB
Notification: Performance of matching and sorting (n=77) (initialization): time 0.002126/0.1518, allocations: 0.9173 MB / 0.4919 GB, free: 11.04 MB / 366.1 MB
Notification: Performance of prepare postOptimizeDAE: time 0.0001188/0.1519, allocations: 101.2 kB / 0.492 GB, free: 10.93 MB / 366.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.641e-06/0.1519, allocations: 0 / 0.492 GB, free: 10.93 MB / 366.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 2.092e-05/0.152, allocations: 4 kB / 0.492 GB, free: 10.93 MB / 366.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007907/0.1527, allocations: 127.8 kB / 0.4921 GB, free: 10.8 MB / 366.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.214e-05/0.1528, allocations: 4 kB / 0.4921 GB, free: 10.8 MB / 366.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004222/0.1532, allocations: 75.62 kB / 0.4922 GB, free: 10.73 MB / 366.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001075/0.1533, allocations: 51.88 kB / 0.4923 GB, free: 10.68 MB / 366.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.0004074/0.1537, allocations: 291.4 kB / 0.4925 GB, free: 10.37 MB / 366.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000106/0.1538, allocations: 43.77 kB / 0.4926 GB, free: 10.33 MB / 366.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002684/0.1565, allocations: 1.134 MB / 0.4937 GB, free: 9.168 MB / 366.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.177e-06/0.1565, allocations: 11.94 kB / 0.4937 GB, free: 9.156 MB / 366.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 5.471e-06/0.1565, allocations: 0 / 0.4937 GB, free: 9.156 MB / 366.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.502e-06/0.1565, allocations: 3.938 kB / 0.4937 GB, free: 9.152 MB / 366.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000765/0.1573, allocations: 0.5706 MB / 0.4943 GB, free: 8.535 MB / 366.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.375e-06/0.1573, allocations: 0 / 0.4943 GB, free: 8.535 MB / 366.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007755/0.158, allocations: 111.8 kB / 0.4944 GB, free: 8.426 MB / 366.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 3.587e-06/0.1581, allocations: 0 / 0.4944 GB, free: 8.426 MB / 366.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.086e-05/0.1581, allocations: 23.98 kB / 0.4944 GB, free: 8.402 MB / 366.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.428e-06/0.1581, allocations: 4 kB / 0.4944 GB, free: 8.398 MB / 366.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.1581, allocations: 0 / 0.4944 GB, free: 8.398 MB / 366.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003499/0.1616, allocations: 1.668 MB / 0.496 GB, free: 6.699 MB / 366.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 7.215e-05/0.1617, allocations: 47.61 kB / 0.4961 GB, free: 6.652 MB / 366.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001223/0.1618, allocations: 31.98 kB / 0.4961 GB, free: 6.621 MB / 366.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003999/0.1622, allocations: 39.97 kB / 0.4961 GB, free: 6.582 MB / 366.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002151/0.1624, allocations: 63.89 kB / 0.4962 GB, free: 6.52 MB / 366.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001087/0.1625, allocations: 55.95 kB / 0.4963 GB, free: 6.465 MB / 366.1 MB
Notification: Performance of sorting global known variables: time 0.0001936/0.1627, allocations: 169.2 kB / 0.4964 GB, free: 6.293 MB / 366.1 MB
Notification: Performance of sort global known variables: time 1e-07/0.1627, allocations: 0 / 0.4964 GB, free: 6.293 MB / 366.1 MB
Notification: Performance of remove unused functions: time 0.000563/0.1633, allocations: 171.7 kB / 0.4966 GB, free: 6.125 MB / 366.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.0007469/0.1641, allocations: 323.4 kB / 0.4969 GB, free: 5.844 MB / 366.1 MB
Notification: Performance of simCode: created initialization part: time 0.002444/0.1665, allocations: 1.016 MB / 0.4979 GB, free: 4.805 MB / 366.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.1665, allocations: 0 / 0.4979 GB, free: 4.805 MB / 366.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.001239/0.1677, allocations: 0.6315 MB / 0.4985 GB, free: 4.148 MB / 366.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003355/0.1681, allocations: 55.28 kB / 0.4985 GB, free: 4.098 MB / 366.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002059/0.1701, allocations: 1.109 MB / 0.4996 GB, free: 2.957 MB / 366.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004483/0.1706, allocations: 0.8082 MB / 0.5004 GB, free: 2.125 MB / 366.1 MB
Notification: Performance of simCode: alias equations: time 0.0003434/0.1709, allocations: 70.94 kB / 0.5005 GB, free: 2.059 MB / 366.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000184/0.1711, allocations: 43.41 kB / 0.5005 GB, free: 2.016 MB / 366.1 MB
Notification: Performance of SimCode: time 6.32e-07/0.1711, allocations: 0 / 0.5005 GB, free: 2.016 MB / 366.1 MB
Notification: Performance of Templates: time 0.02198/0.1931, allocations: 8.259 MB / 0.5086 GB, free: 9.812 MB / 382.1 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=480 -lv LOG_STATS > AdvancedNoise_AdvancedNoise.Examples.TimeBasedCorrelations.pipe 2>&1) [Timeout 480]
[Calling sys.exit(0), Time elapsed: 5.795626466162503]
Failed to read output from testmodel.py, exit status != 0:
0.20199945662170649 0.47726744 0.34709674900000004
Calling exit ...
<OMPython.OMCSessionZMQ object at 0x7f24712917b0>