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.001817/0.001817, allocations: 118.8 kB / 17.16 MB, free: 5.914 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.002396/0.002396, allocations: 206.2 kB / 20.13 MB, free: 2.969 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.561/1.561, allocations: 230.6 MB / 253.5 MB, free: 15.09 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.02644/0.02644, allocations: 3.92 MB / 313.5 MB, free: 2.137 MB / 238.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.002042/0.002042, allocations: 65.72 kB / 435.3 MB, free: 38.16 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1043/0.1063, allocations: 54.11 MB / 489.4 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.TimeBasedCorrelations): time 0.002806/0.1092, allocations: 2.006 MB / 491.4 MB, free: 11.74 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00227/0.1114, allocations: 1.533 MB / 492.9 MB, free: 10.55 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001345/0.1116, allocations: 6.188 kB / 492.9 MB, free: 10.55 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001642/0.1117, allocations: 53.75 kB / 493 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006344/0.1124, allocations: 262.6 kB / 493.2 MB, free: 10.3 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.0006281/0.113, allocations: 347.1 kB / 493.6 MB, free: 10.04 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004655/0.1135, allocations: 0.6253 MB / 494.2 MB, free: 9.66 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001526/0.1136, allocations: 66.88 kB / 494.2 MB, free: 9.605 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000238/0.1138, allocations: 259.4 kB / 494.5 MB, free: 9.441 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002519/0.1141, allocations: 284.1 kB / 494.8 MB, free: 9.234 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.632e-05/0.1142, allocations: 63.56 kB / 494.8 MB, free: 9.234 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005445/0.1147, allocations: 370.1 kB / 495.2 MB, free: 9.066 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001053/0.1148, allocations: 129.2 kB / 495.3 MB, free: 8.957 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001809/0.115, allocations: 232.4 kB / 495.5 MB, free: 8.773 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007429/0.1158, allocations: 0.7188 MB / 496.3 MB, free: 8.25 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.1158, allocations: 4 kB / 496.3 MB, free: 8.246 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.1158, allocations: 0 / 496.3 MB, free: 8.246 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.407e-06/0.1158, allocations: 4 kB / 496.3 MB, free: 8.242 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.002345/0.1181, allocations: 2.496 MB / 498.8 MB, free: 5.676 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.081e-05/0.1182, allocations: 12.03 kB / 498.8 MB, free: 5.664 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.519e-05/0.1182, allocations: 4.75 kB / 498.8 MB, free: 5.66 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.741e-05/0.1183, allocations: 74.72 kB / 498.9 MB, free: 5.578 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001358/0.1196, allocations: 164.5 kB / 499 MB, free: 5.418 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005628/0.1202, allocations: 368.1 kB / 499.4 MB, free: 5.02 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.889e-05/0.1202, allocations: 32.94 kB / 499.4 MB, free: 4.988 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.639e-05/0.1203, allocations: 44.38 kB / 499.5 MB, free: 4.945 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001096/0.1214, allocations: 0.5794 MB / 0.4883 GB, free: 4.355 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.072e-05/0.1214, allocations: 0 / 0.4883 GB, free: 4.355 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.195e-05/0.1215, allocations: 12 kB / 0.4883 GB, free: 4.344 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.009e-06/0.1215, allocations: 8 kB / 0.4883 GB, free: 4.336 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001386/0.1229, allocations: 0.6269 MB / 0.4889 GB, free: 3.707 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00182/0.1247, allocations: 1.139 MB / 0.4901 GB, free: 2.52 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001196/0.1259, allocations: 0.515 MB / 0.4906 GB, free: 1.996 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000743/0.1266, allocations: 393.8 kB / 0.4909 GB, free: 1.609 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.575e-05/0.1267, allocations: 4.328 kB / 0.4909 GB, free: 1.605 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00102/0.1277, allocations: 0.7482 MB / 0.4917 GB, free: 0.8086 MB / 350.1 MB Notification: Performance of pre-optimization done (n=57): time 2.735e-06/0.1277, allocations: 7.984 kB / 0.4917 GB, free: 0.8008 MB / 350.1 MB Notification: Performance of matching and sorting (n=57): time 0.002915/0.1306, allocations: 1.389 MB / 0.493 GB, free: 15.39 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001158/0.1307, allocations: 130.8 kB / 0.4932 GB, free: 15.24 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003057/0.131, allocations: 258.6 kB / 0.4934 GB, free: 14.98 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.263e-05/0.1311, allocations: 37.7 kB / 0.4934 GB, free: 14.94 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001158/0.1312, allocations: 149.2 kB / 0.4936 GB, free: 14.79 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001892/0.1314, allocations: 186.4 kB / 0.4938 GB, free: 14.61 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002309/0.1316, allocations: 122.2 kB / 0.4939 GB, free: 14.48 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002301/0.1319, allocations: 358.7 kB / 0.4942 GB, free: 14.12 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009331/0.1328, allocations: 349 kB / 0.4946 GB, free: 13.78 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008984/0.1337, allocations: 349.3 kB / 0.4949 GB, free: 13.45 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00188/0.1356, allocations: 0.8236 MB / 0.4957 GB, free: 12.59 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.1356, allocations: 0 / 0.4957 GB, free: 12.59 MB / 366.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.002142/0.1377, allocations: 0.9254 MB / 0.4966 GB, free: 11.64 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001017/0.1378, allocations: 91.36 kB / 0.4967 GB, free: 11.54 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.1378, allocations: 7.938 kB / 0.4967 GB, free: 11.54 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.588e-05/0.1378, allocations: 0 / 0.4967 GB, free: 11.54 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008112/0.1387, allocations: 131.8 kB / 0.4968 GB, free: 11.41 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.784e-06/0.1387, allocations: 4 kB / 0.4968 GB, free: 11.4 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004436/0.1391, allocations: 79.58 kB / 0.4969 GB, free: 11.32 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001067/0.1392, allocations: 51.88 kB / 0.4969 GB, free: 11.27 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.0004882/0.1397, allocations: 295.8 kB / 0.4972 GB, free: 10.96 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001169/0.1398, allocations: 47.77 kB / 0.4973 GB, free: 10.91 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002573/0.1424, allocations: 1.135 MB / 0.4984 GB, free: 9.762 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.612e-06/0.1424, allocations: 4 kB / 0.4984 GB, free: 9.758 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.079e-06/0.1424, allocations: 3.938 kB / 0.4984 GB, free: 9.754 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.1424, allocations: 0 / 0.4984 GB, free: 9.754 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007718/0.1432, allocations: 0.5989 MB / 0.499 GB, free: 9.102 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-06/0.1432, allocations: 4 kB / 0.499 GB, free: 9.098 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007792/0.144, allocations: 107.8 kB / 0.4991 GB, free: 8.992 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.532e-06/0.144, allocations: 4 kB / 0.4991 GB, free: 8.988 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.423e-05/0.144, allocations: 27.97 kB / 0.4991 GB, free: 8.961 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.575e-06/0.144, allocations: 0 / 0.4991 GB, free: 8.961 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.486e-06/0.1441, allocations: 3.984 kB / 0.4991 GB, free: 8.957 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003529/0.1476, allocations: 1.654 MB / 0.5007 GB, free: 7.27 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001012/0.1477, allocations: 124.7 kB / 0.5009 GB, free: 7.129 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000108/0.1478, allocations: 31.98 kB / 0.5009 GB, free: 7.098 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004029/0.1482, allocations: 35.97 kB / 0.5009 GB, free: 7.062 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001883/0.1484, allocations: 63.91 kB / 0.501 GB, free: 7 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001174/0.1485, allocations: 55.95 kB / 0.501 GB, free: 6.945 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001983/0.1487, allocations: 178 kB / 0.5012 GB, free: 6.773 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1487, allocations: 0 / 0.5012 GB, free: 6.773 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006484/0.1493, allocations: 171.7 kB / 0.5014 GB, free: 6.605 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.00488/0.1542, allocations: 2.439 MB / 0.5037 GB, free: 4.172 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002427/0.1567, allocations: 1.017 MB / 0.5047 GB, free: 3.129 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.1567, allocations: 0 / 0.5047 GB, free: 3.129 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001262/0.1579, allocations: 0.6357 MB / 0.5054 GB, free: 2.465 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000394/0.1583, allocations: 45.8 kB / 0.5054 GB, free: 2.422 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009806/0.1681, allocations: 5.081 MB / 0.5104 GB, free: 13.23 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005647/0.1687, allocations: 0.8043 MB / 0.5112 GB, free: 12.41 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003943/0.1691, allocations: 66.95 kB / 0.5112 GB, free: 12.34 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003253/0.1694, allocations: 147.4 kB / 0.5114 GB, free: 12.2 MB / 382.1 MB Notification: Performance of SimCode: time 1.142e-06/0.1694, allocations: 0 / 0.5114 GB, free: 12.2 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03637/0.2058, allocations: 11.83 MB / 0.5229 GB, free: 0.5078 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.306/9.512, allocations: 7.312 kB / 0.5229 GB, free: 0.5039 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 & /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: 12.700858578027692] Failed to read output from testmodel.py, exit status != 0: 9.647783824999351 9.67226162 9.552147573 Calling exit ...