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.00135/0.00135, allocations: 108.2 kB / 16.45 MB, free: 6.453 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.001419/0.001419, allocations: 216.2 kB / 19.43 MB, free: 3.625 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.456/1.456, allocations: 230.6 MB / 252.8 MB, free: 8.965 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.02927/0.02927, allocations: 3.936 MB / 312.8 MB, free: 0.4961 MB / 238.1 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: "" <> 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002164/0.002164, allocations: 59.91 kB / 434.5 MB, free: 14.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1086, allocations: 54.1 MB / 488.6 MB, free: 8.449 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.TimeBasedCorrelations): time 0.003617/0.1122, allocations: 2.018 MB / 490.7 MB, free: 6.422 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003166/0.1154, allocations: 1.53 MB / 492.2 MB, free: 4.887 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002871/0.1157, allocations: 7.938 kB / 492.2 MB, free: 4.879 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002488/0.1159, allocations: 59.39 kB / 492.3 MB, free: 4.82 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001076/0.117, allocations: 255 kB / 492.5 MB, free: 4.57 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.001022/0.118, allocations: 347.1 kB / 492.8 MB, free: 4.23 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000945/0.119, allocations: 0.6201 MB / 493.5 MB, free: 3.609 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000219/0.1192, allocations: 70.19 kB / 493.5 MB, free: 3.531 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004812/0.1197, allocations: 259.3 kB / 493.8 MB, free: 3.277 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004508/0.1201, allocations: 283 kB / 494.1 MB, free: 3 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001614/0.1203, allocations: 64 kB / 494.1 MB, free: 2.938 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007737/0.1211, allocations: 375.4 kB / 494.5 MB, free: 2.57 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001847/0.1212, allocations: 127.6 kB / 494.6 MB, free: 2.445 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003619/0.1216, allocations: 234.9 kB / 494.9 MB, free: 2.215 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001233/0.1228, allocations: 0.7048 MB / 495.6 MB, free: 1.508 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.374e-06/0.1228, allocations: 3.984 kB / 495.6 MB, free: 1.504 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.1228, allocations: 0 / 495.6 MB, free: 1.504 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.465e-05/0.1229, allocations: 4 kB / 495.6 MB, free: 1.5 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.003911/0.1268, allocations: 2.5 MB / 498.1 MB, free: 14.93 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.353e-05/0.1268, allocations: 15.98 kB / 498.1 MB, free: 14.91 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002114/0.1271, allocations: 66.72 kB / 498.1 MB, free: 14.84 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001766/0.1288, allocations: 166.6 kB / 498.3 MB, free: 14.68 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001131/0.13, allocations: 376 kB / 498.7 MB, free: 14.27 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001177/0.1301, allocations: 32.94 kB / 498.7 MB, free: 14.24 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001698/0.1302, allocations: 44.36 kB / 498.7 MB, free: 14.2 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001603/0.1318, allocations: 0.5794 MB / 499.3 MB, free: 13.61 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.554e-05/0.1319, allocations: 7.938 kB / 499.3 MB, free: 13.61 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.822e-05/0.1319, allocations: 8 kB / 499.3 MB, free: 13.6 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.263e-05/0.1319, allocations: 8 kB / 499.4 MB, free: 13.59 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001744/0.1337, allocations: 0.6269 MB / 500 MB, free: 12.96 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002675/0.1363, allocations: 1.147 MB / 0.4894 GB, free: 11.76 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001438/0.1378, allocations: 0.5072 MB / 0.4899 GB, free: 11.25 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009469/0.1387, allocations: 389.8 kB / 0.4902 GB, free: 10.86 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.396e-05/0.1388, allocations: 8.312 kB / 0.4903 GB, free: 10.85 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001378/0.1402, allocations: 0.7481 MB / 0.491 GB, free: 10.05 MB / 366.1 MB Notification: Performance of pre-optimization done (n=57): time 3.106e-06/0.1402, allocations: 0 / 0.491 GB, free: 10.05 MB / 366.1 MB Notification: Performance of matching and sorting (n=57): time 0.003249/0.1434, allocations: 1.385 MB / 0.4923 GB, free: 8.652 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001121/0.1435, allocations: 142.8 kB / 0.4925 GB, free: 8.488 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003211/0.1438, allocations: 250.6 kB / 0.4927 GB, free: 8.238 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.707e-05/0.1439, allocations: 37.7 kB / 0.4927 GB, free: 8.195 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000141/0.1441, allocations: 157.2 kB / 0.4929 GB, free: 8.039 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001976/0.1443, allocations: 190.4 kB / 0.4931 GB, free: 7.852 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003011/0.1446, allocations: 118.2 kB / 0.4932 GB, free: 7.727 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001886/0.1448, allocations: 350.7 kB / 0.4935 GB, free: 7.375 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009103/0.1457, allocations: 345 kB / 0.4939 GB, free: 7.039 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008924/0.1466, allocations: 357.3 kB / 0.4942 GB, free: 6.695 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001863/0.1484, allocations: 0.8313 MB / 0.495 GB, free: 5.832 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.128e-06/0.1484, allocations: 0 / 0.495 GB, free: 5.832 MB / 366.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.002226/0.1507, allocations: 0.9137 MB / 0.4959 GB, free: 4.902 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001127/0.1508, allocations: 97.86 kB / 0.496 GB, free: 4.797 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.636e-06/0.1508, allocations: 4 kB / 0.496 GB, free: 4.793 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.366e-05/0.1508, allocations: 4 kB / 0.496 GB, free: 4.789 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008186/0.1516, allocations: 131.8 kB / 0.4961 GB, free: 4.66 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.882e-05/0.1516, allocations: 7.938 kB / 0.4961 GB, free: 4.652 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004685/0.1521, allocations: 71.58 kB / 0.4962 GB, free: 4.582 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001368/0.1522, allocations: 47.94 kB / 0.4963 GB, free: 4.535 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.0004566/0.1527, allocations: 303.8 kB / 0.4965 GB, free: 4.215 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001354/0.1528, allocations: 43.77 kB / 0.4966 GB, free: 4.172 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00268/0.1555, allocations: 1.139 MB / 0.4977 GB, free: 3.012 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.614e-06/0.1555, allocations: 8 kB / 0.4977 GB, free: 3.004 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.1555, allocations: 0 / 0.4977 GB, free: 3.004 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.035e-06/0.1555, allocations: 0 / 0.4977 GB, free: 3.004 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008234/0.1564, allocations: 0.6028 MB / 0.4983 GB, free: 2.352 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.088e-06/0.1564, allocations: 0 / 0.4983 GB, free: 2.352 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007866/0.1571, allocations: 103.8 kB / 0.4984 GB, free: 2.25 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.695e-06/0.1572, allocations: 4 kB / 0.4984 GB, free: 2.246 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.703e-05/0.1572, allocations: 27.97 kB / 0.4984 GB, free: 2.219 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.74e-06/0.1572, allocations: 4 kB / 0.4984 GB, free: 2.215 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.1572, allocations: 4 kB / 0.4984 GB, free: 2.211 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003725/0.161, allocations: 1.669 MB / 0.5001 GB, free: 0.5039 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001162/0.1611, allocations: 116.8 kB / 0.5002 GB, free: 380 kB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001174/0.1612, allocations: 31.98 kB / 0.5002 GB, free: 348 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004034/0.1616, allocations: 36.05 kB / 0.5002 GB, free: 312 kB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001783/0.1618, allocations: 63.86 kB / 0.5003 GB, free: 248 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000122/0.1619, allocations: 59.92 kB / 0.5004 GB, free: 188 kB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001839/0.1621, allocations: 174 kB / 0.5005 GB, free: 16 kB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1621, allocations: 0 / 0.5005 GB, free: 16 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.000641/0.1627, allocations: 171.7 kB / 0.5007 GB, free: 15.85 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.004714/0.1675, allocations: 2.429 MB / 0.5031 GB, free: 13.42 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002375/0.1698, allocations: 1.025 MB / 0.5041 GB, free: 12.37 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.1698, allocations: 0 / 0.5041 GB, free: 12.37 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001259/0.1711, allocations: 0.6279 MB / 0.5047 GB, free: 11.72 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003601/0.1714, allocations: 40.56 kB / 0.5047 GB, free: 11.68 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009775/0.1812, allocations: 5.077 MB / 0.5097 GB, free: 6.496 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005282/0.1818, allocations: 0.8043 MB / 0.5104 GB, free: 5.668 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003691/0.1821, allocations: 70.94 kB / 0.5105 GB, free: 5.598 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003068/0.1824, allocations: 143.4 kB / 0.5107 GB, free: 5.457 MB / 382.1 MB Notification: Performance of SimCode: time 8.12e-07/0.1824, allocations: 4 kB / 0.5107 GB, free: 5.453 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2407/0.4231, allocations: 11.78 MB / 0.5222 GB, free: 38.31 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.47/9.893, allocations: 12.5 kB / 0.5222 GB, free: 38.3 MB / 382.1 MB " [Timeout remaining time 650] (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 & python3 -m fmpy simulate --output-file AdvancedNoise_AdvancedNoise.Examples.TimeBasedCorrelations_res.csv --start-time 0 --stop-time 100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01 AdvancedNoise_AdvancedNoise_Examples_TimeBasedCorrelations.fmu > AdvancedNoise_AdvancedNoise.Examples.TimeBasedCorrelations.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 12.91782743902877] Failed to read output from testmodel.py, exit status != 0: 9.97001816984266 9.983841484 9.858341677 Calling exit ...