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.001649/0.001649, allocations: 97.92 kB / 19.73 MB, free: 2.133 MB / 14.72 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.001874/0.001874, allocations: 219.8 kB / 23.03 MB, free: 4.945 MB / 14.72 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.563/1.563, allocations: 230.6 MB / 256.8 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] 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.0271/0.0271, allocations: 3.941 MB / 317.2 MB, free: 15.17 MB / 254.1 MB " [Timeout remaining time 180] Using package AdvancedNoise with version 1.1.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: "" <> buildModelFMU(AdvancedNoise.Examples.TimeBasedCorrelations,fileNamePrefix="AdvancedNoise_AdvancedNoise_Examples_TimeBasedCorrelations",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(AdvancedNoise.Examples.TimeBasedCorrelations,fileNamePrefix="AdvancedNoise_AdvancedNoise_Examples_TimeBasedCorrelations",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: AdvancedNoise requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001832/0.001832, allocations: 55.91 kB / 440.5 MB, free: 11.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1224/0.1242, allocations: 54.16 MB / 494.6 MB, free: 5.504 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.TimeBasedCorrelations): time 0.003564/0.1278, allocations: 1.893 MB / 496.5 MB, free: 3.594 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002914/0.1307, allocations: 1.476 MB / 498 MB, free: 2.113 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001446/0.1308, allocations: 3.938 kB / 498 MB, free: 2.109 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002035/0.131, allocations: 55.41 kB / 498.1 MB, free: 2.055 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008302/0.1319, allocations: 259 kB / 498.3 MB, free: 1.801 MB / 350.1 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.0008428/0.1327, allocations: 371.1 kB / 498.7 MB, free: 1.438 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008183/0.1335, allocations: 0.6472 MB / 499.3 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001727/0.1337, allocations: 62.31 kB / 499.4 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004354/0.1341, allocations: 267.2 kB / 499.6 MB, free: 472 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003845/0.1345, allocations: 283 kB / 499.9 MB, free: 188 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.889e-05/0.1346, allocations: 64 kB / 500 MB, free: 124 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006966/0.1353, allocations: 403.4 kB / 0.4886 GB, free: 15.73 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001545/0.1355, allocations: 127.7 kB / 0.4888 GB, free: 15.6 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002508/0.1357, allocations: 195.1 kB / 0.489 GB, free: 15.41 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009201/0.1366, allocations: 0.7281 MB / 0.4897 GB, free: 14.68 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.1367, allocations: 0 / 0.4897 GB, free: 14.68 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1367, allocations: 0 / 0.4897 GB, free: 14.68 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.105e-06/0.1367, allocations: 3.938 kB / 0.4897 GB, free: 14.68 MB / 366.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.003394/0.1401, allocations: 2.405 MB / 0.492 GB, free: 12.22 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.493e-05/0.1401, allocations: 12.03 kB / 0.492 GB, free: 12.21 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.451e-05/0.1401, allocations: 8.688 kB / 0.492 GB, free: 12.2 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001175/0.1402, allocations: 70.72 kB / 0.4921 GB, free: 12.12 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00147/0.1417, allocations: 160.5 kB / 0.4923 GB, free: 11.96 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007859/0.1425, allocations: 313.7 kB / 0.4926 GB, free: 11.63 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.903e-05/0.1426, allocations: 32.88 kB / 0.4926 GB, free: 11.6 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001062/0.1427, allocations: 40.38 kB / 0.4926 GB, free: 11.56 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001434/0.1441, allocations: 0.6488 MB / 0.4933 GB, free: 10.9 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.186e-05/0.1441, allocations: 0 / 0.4933 GB, free: 10.9 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.565e-05/0.1442, allocations: 12 kB / 0.4933 GB, free: 10.89 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.013e-05/0.1442, allocations: 4 kB / 0.4933 GB, free: 10.89 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001752/0.146, allocations: 0.7237 MB / 0.494 GB, free: 10.14 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002435/0.1484, allocations: 0.9897 MB / 0.4949 GB, free: 9.109 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001463/0.1498, allocations: 0.5925 MB / 0.4955 GB, free: 8.496 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000964/0.1508, allocations: 477.2 kB / 0.496 GB, free: 8.012 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.234e-05/0.1509, allocations: 8.328 kB / 0.496 GB, free: 8.004 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001495/0.1524, allocations: 0.8175 MB / 0.4968 GB, free: 7.129 MB / 366.1 MB Notification: Performance of pre-optimization done (n=57): time 2.875e-06/0.1524, allocations: 0 / 0.4968 GB, free: 7.129 MB / 366.1 MB Notification: Performance of matching and sorting (n=57): time 0.003564/0.1559, allocations: 1.539 MB / 0.4983 GB, free: 5.547 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001034/0.156, allocations: 130.7 kB / 0.4984 GB, free: 5.395 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003132/0.1563, allocations: 253.8 kB / 0.4987 GB, free: 5.137 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.408e-05/0.1564, allocations: 41.7 kB / 0.4987 GB, free: 5.09 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001342/0.1565, allocations: 157.2 kB / 0.4988 GB, free: 4.934 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001886/0.1567, allocations: 182.4 kB / 0.499 GB, free: 4.754 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002479/0.157, allocations: 126.1 kB / 0.4991 GB, free: 4.625 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002686/0.1572, allocations: 350.7 kB / 0.4995 GB, free: 4.273 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001/0.1582, allocations: 428.3 kB / 0.4999 GB, free: 3.844 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009733/0.1592, allocations: 444.5 kB / 0.5003 GB, free: 3.398 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001826/0.161, allocations: 0.8272 MB / 0.5011 GB, free: 2.543 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.198e-06/0.161, allocations: 7.938 kB / 0.5011 GB, free: 2.535 MB / 366.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.002299/0.1633, allocations: 1.006 MB / 0.5021 GB, free: 1.5 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001052/0.1635, allocations: 83.38 kB / 0.5022 GB, free: 1.406 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.949e-06/0.1635, allocations: 4 kB / 0.5022 GB, free: 1.402 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.192e-05/0.1635, allocations: 4 kB / 0.5022 GB, free: 1.398 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009108/0.1644, allocations: 131.8 kB / 0.5023 GB, free: 1.27 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.021e-05/0.1644, allocations: 0 / 0.5023 GB, free: 1.27 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004067/0.1648, allocations: 75.58 kB / 0.5024 GB, free: 1.195 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001523/0.165, allocations: 47.94 kB / 0.5024 GB, free: 1.148 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.0004214/0.1654, allocations: 283 kB / 0.5027 GB, free: 0.8516 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001034/0.1655, allocations: 47.75 kB / 0.5028 GB, free: 0.8047 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002566/0.1681, allocations: 1.204 MB / 0.5039 GB, free: 15.56 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.573e-06/0.1681, allocations: 4 kB / 0.5039 GB, free: 15.55 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.1681, allocations: 0 / 0.5039 GB, free: 15.55 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.637e-05/0.1681, allocations: 7.984 kB / 0.5039 GB, free: 15.55 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007736/0.1689, allocations: 472.6 kB / 0.5044 GB, free: 15.04 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.1689, allocations: 0 / 0.5044 GB, free: 15.04 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007709/0.1696, allocations: 107.8 kB / 0.5045 GB, free: 14.94 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.37e-06/0.1696, allocations: 0 / 0.5045 GB, free: 14.94 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.367e-05/0.1697, allocations: 35.89 kB / 0.5045 GB, free: 14.9 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.261e-06/0.1697, allocations: 4 kB / 0.5045 GB, free: 14.9 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/0.1697, allocations: 4 kB / 0.5045 GB, free: 14.89 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003849/0.1736, allocations: 1.823 MB / 0.5063 GB, free: 13.02 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.394e-05/0.1737, allocations: 43.62 kB / 0.5064 GB, free: 12.97 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001234/0.1738, allocations: 35.98 kB / 0.5064 GB, free: 12.94 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003935/0.1742, allocations: 35.97 kB / 0.5064 GB, free: 12.9 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002087/0.1744, allocations: 63.89 kB / 0.5065 GB, free: 12.84 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001214/0.1745, allocations: 55.91 kB / 0.5065 GB, free: 12.79 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003344/0.1748, allocations: 169.2 kB / 0.5067 GB, free: 12.62 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1748, allocations: 0 / 0.5067 GB, free: 12.62 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007394/0.1756, allocations: 171.7 kB / 0.5069 GB, free: 12.45 MB / 382.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.00498/0.1806, allocations: 2.594 MB / 0.5094 GB, free: 9.84 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002657/0.1832, allocations: 1.191 MB / 0.5106 GB, free: 8.602 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.1832, allocations: 0 / 0.5106 GB, free: 8.602 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001362/0.1846, allocations: 0.6936 MB / 0.5112 GB, free: 7.871 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003544/0.1849, allocations: 48.47 kB / 0.5113 GB, free: 7.824 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01049/0.1954, allocations: 5.527 MB / 0.5167 GB, free: 2.133 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002339/0.1957, allocations: 203.9 kB / 0.5169 GB, free: 1.914 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003793/0.196, allocations: 70.94 kB / 0.5169 GB, free: 1.844 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003213/0.1964, allocations: 147.4 kB / 0.5171 GB, free: 1.699 MB / 382.1 MB Notification: Performance of SimCode: time 1.483e-06/0.1964, allocations: 0 / 0.5171 GB, free: 1.699 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.239/0.4353, allocations: 12.57 MB / 0.5294 GB, free: 35.27 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.54/12.97, allocations: 12.69 kB / 0.5294 GB, free: 35.27 MB / 382.1 MB " [Timeout remaining time 647] (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 --stepSize=0.01 --timeout=50 --tolerance=1e-06 AdvancedNoise_AdvancedNoise_Examples_TimeBasedCorrelations.fmu > AdvancedNoise_AdvancedNoise.Examples.TimeBasedCorrelations.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 16.16029616596643] Failed to read output from testmodel.py, exit status != 0: 13.148463520104997 13.168163317 13.028210048 Calling exit ...