Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.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.001442/0.001442, allocations: 79.73 kB / 19.76 MB, free: 1.871 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.001493/0.001493, allocations: 157.8 kB / 23.01 MB, free: 4.605 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.522/1.522, allocations: 177.2 MB / 203.4 MB, free: 8.973 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1024/0.1024, allocations: 17.81 MB / 277.6 MB, free: 15.36 MB / 270.1 MB " [Timeout remaining time 180] Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/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(AES.Coursework.ThermSys_component_models.Controlled_heater_case_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002") translateModel(AES.Coursework.ThermSys_component_models.Controlled_heater_case_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002") [Timeout 660] "Notification: AES 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.002103/0.002103, allocations: 59.91 kB / 414.6 MB, free: 4.531 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1147/0.1168, allocations: 59.55 MB / 474.2 MB, free: 8.859 MB / 446.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_002): time 0.005171/0.122, allocations: 3.078 MB / 477.3 MB, free: 5.762 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001986/0.1239, allocations: 0.9392 MB / 478.2 MB, free: 4.812 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002229/0.1242, allocations: 11.88 kB / 478.2 MB, free: 4.801 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002828/0.1245, allocations: 107.1 kB / 478.3 MB, free: 4.695 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004533/0.1249, allocations: 258.5 kB / 478.6 MB, free: 4.441 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006199/0.1255, allocations: 203.7 kB / 478.8 MB, free: 4.242 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001389/0.1269, allocations: 1.236 MB / 480 MB, free: 3 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008818/0.1278, allocations: 0.6564 MB / 480.7 MB, free: 2.328 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007368/0.1285, allocations: 490.8 kB / 481.2 MB, free: 1.848 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008631/0.1294, allocations: 0.5295 MB / 481.7 MB, free: 1.316 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001888/0.1296, allocations: 132 kB / 481.8 MB, free: 1.188 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002128/0.1298, allocations: 132 kB / 481.9 MB, free: 1.059 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004199/0.1302, allocations: 403 kB / 482.3 MB, free: 0.6641 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005462/0.1308, allocations: 470.2 kB / 482.8 MB, free: 208 kB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2381/0.3689, allocations: 1.468 MB / 484.3 MB, free: 48.09 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.045e-06/0.3689, allocations: 3.344 kB / 484.3 MB, free: 48.09 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.3689, allocations: 0 / 484.3 MB, free: 48.09 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.433e-05/0.3689, allocations: 3.281 kB / 484.3 MB, free: 48.09 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 182 * Number of variables: 182 Notification: Performance of Generate backend data structure: time 0.002472/0.3714, allocations: 1.228 MB / 485.5 MB, free: 47.55 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.078e-05/0.3714, allocations: 12.58 kB / 485.5 MB, free: 47.55 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001694/0.3716, allocations: 93.67 kB / 485.6 MB, free: 47.51 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007794/0.3724, allocations: 0.5039 MB / 486.1 MB, free: 47.31 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.923e-05/0.3725, allocations: 79.33 kB / 486.2 MB, free: 47.28 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001338/0.3726, allocations: 87.58 kB / 486.3 MB, free: 47.27 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001331/0.3739, allocations: 0.9502 MB / 487.2 MB, free: 47.18 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.547e-05/0.3739, allocations: 3.281 kB / 487.2 MB, free: 47.18 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.051e-05/0.374, allocations: 29.88 kB / 487.3 MB, free: 47.18 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.341e-05/0.374, allocations: 15.84 kB / 487.3 MB, free: 47.18 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001073/0.3751, allocations: 0.8125 MB / 488.1 MB, free: 47.18 MB / 446.1 MB Notification: The following initial equation is redundant and consistent due to simplifications in RemoveSimpleEquations and therefore removed from the initialization problem: der(pipeline.fluidStream.w) = 0.0 -> 0.0 = 0.0 Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004536/0.3796, allocations: 2.668 MB / 490.7 MB, free: 46.22 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002387/0.382, allocations: 1.014 MB / 491.8 MB, free: 45.89 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005068/0.3825, allocations: 406 kB / 492.2 MB, free: 45.71 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.463e-05/0.3826, allocations: 7.25 kB / 492.2 MB, free: 45.71 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.234e-05/0.3826, allocations: 50.34 kB / 492.2 MB, free: 45.66 MB / 446.1 MB Notification: Performance of pre-optimization done (n=58): time 3.175e-06/0.3826, allocations: 0 / 492.2 MB, free: 45.66 MB / 446.1 MB Notification: Performance of matching and sorting (n=58): time 0.003461/0.3861, allocations: 1.601 MB / 493.8 MB, free: 45.02 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.121e-05/0.3861, allocations: 66.12 kB / 493.9 MB, free: 44.95 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000415/0.3865, allocations: 402.4 kB / 494.3 MB, free: 44.74 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 4.825e-05/0.3866, allocations: 33.7 kB / 494.3 MB, free: 44.7 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001453/0.3867, allocations: 336.7 kB / 494.6 MB, free: 44.45 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001748/0.3869, allocations: 244.4 kB / 494.9 MB, free: 44.26 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002027/0.3871, allocations: 126.2 kB / 495 MB, free: 44.2 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.034e-05/0.3872, allocations: 360.5 kB / 495.3 MB, free: 43.87 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005714/0.3877, allocations: 457.8 kB / 495.8 MB, free: 43.68 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005808/0.3883, allocations: 0.4948 MB / 496.3 MB, free: 43.45 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006426/0.3947, allocations: 2.363 MB / 498.7 MB, free: 42.67 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.092e-06/0.3948, allocations: 0 / 498.7 MB, free: 42.67 MB / 446.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.002102/0.3969, allocations: 1.339 MB / 500 MB, free: 42.07 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.112e-05/0.3969, allocations: 6.562 kB / 500 MB, free: 42.07 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.45e-05/0.3969, allocations: 2.5 kB / 0.4883 GB, free: 42.07 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009704/0.3979, allocations: 344 kB / 0.4886 GB, free: 41.91 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008293/0.3987, allocations: 190 kB / 0.4888 GB, free: 41.91 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007193/0.4059, allocations: 13.86 MB / 0.5023 GB, free: 28.85 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007774/0.4067, allocations: 76.78 kB / 0.5024 GB, free: 28.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.905e-05/0.4067, allocations: 20.41 kB / 0.5024 GB, free: 28.8 MB / 446.1 MB Warning: Assuming fixed start value for the following 2 variables: CH.Ec:VARIABLE(flow=false fixed = true ) type: Real CH.Tfo:VARIABLE(min = 0.0 start = CH.Tstart unit = \"K\" fixed = true nominal = 300.0 ) \"outlet fluid temp\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 1 (Hon.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (79): * Single equations (assignments): 69 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005292/0.4073, allocations: 275.3 kB / 0.5027 GB, free: 28.61 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001084/0.4074, allocations: 57.8 kB / 0.5027 GB, free: 28.57 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001838/0.4092, allocations: 1.135 MB / 0.5038 GB, free: 28.03 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.631e-06/0.4092, allocations: 6.969 kB / 0.5039 GB, free: 28.03 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.501e-06/0.4092, allocations: 3.219 kB / 0.5039 GB, free: 28.03 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.732e-06/0.4092, allocations: 3.281 kB / 0.5039 GB, free: 28.03 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002604/0.4118, allocations: 1.862 MB / 0.5057 GB, free: 27.09 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.997e-06/0.4118, allocations: 0 / 0.5057 GB, free: 27.09 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009493/0.4128, allocations: 169.9 kB / 0.5058 GB, free: 27.09 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000717/0.4135, allocations: 308.7 kB / 0.5061 GB, free: 26.95 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.104e-05/0.4136, allocations: 38.94 kB / 0.5062 GB, free: 26.93 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007375/0.4209, allocations: 13.43 MB / 0.5193 GB, free: 30.13 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.427e-06/0.4209, allocations: 4.719 kB / 0.5193 GB, free: 30.13 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002434/0.4234, allocations: 1.602 MB / 0.5209 GB, free: 29.3 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001577/0.4235, allocations: 64.22 kB / 0.5209 GB, free: 29.25 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.515e-05/0.4236, allocations: 31.02 kB / 0.5209 GB, free: 29.24 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004239/0.4241, allocations: 30.94 kB / 0.521 GB, free: 29.23 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001584/0.4242, allocations: 61.44 kB / 0.521 GB, free: 29.22 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.765e-05/0.4243, allocations: 15.75 kB / 0.521 GB, free: 29.21 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.000293/0.4246, allocations: 285.1 kB / 0.5213 GB, free: 29.07 MB / 462.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4246, allocations: 3.375 kB / 0.5213 GB, free: 29.07 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0009799/0.4255, allocations: 304.3 kB / 0.5216 GB, free: 29.01 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 22 (CH.Tfo,CH.Ec,pipeline.fluidStream.T[1],pipeline.fluidStream.T[2],pipeline.fluidStream.T[3],pipeline.fluidStream.T[4],pipeline.fluidStream.T[5],pipeline.wall.wall.T[1,1],pipeline.wall.wall.T[1,2],pipeline.wall.wall.T[1,3],pipeline.wall.wall.T[2,1],pipeline.wall.wall.T[2,2],pipeline.wall.wall.T[2,3],pipeline.wall.wall.T[3,1],pipeline.wall.wall.T[3,2],pipeline.wall.wall.T[3,3],pipeline.wall.wall.T[4,1],pipeline.wall.wall.T[4,2],pipeline.wall.wall.T[4,3],pipeline.wall.wall.T[5,1],pipeline.wall.wall.T[5,2],pipeline.wall.wall.T[5,3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001843/0.4257, allocations: 142.5 kB / 0.5217 GB, free: 28.9 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.002332/0.4281, allocations: 2.016 MB / 0.5237 GB, free: 27.44 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.868e-06/0.4281, allocations: 0 / 0.5237 GB, free: 27.44 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001537/0.4296, allocations: 1.544 MB / 0.5252 GB, free: 26.14 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007397/0.4303, allocations: 172.2 kB / 0.5254 GB, free: 26.08 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005522/0.4359, allocations: 3.052 MB / 0.5284 GB, free: 24.3 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005326/0.4364, allocations: 415.6 kB / 0.5288 GB, free: 24.16 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0004914/0.4369, allocations: 167.1 kB / 0.5289 GB, free: 24.14 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001718/0.4371, allocations: 48.62 kB / 0.529 GB, free: 24.13 MB / 462.1 MB Notification: Performance of SimCode: time 1.072e-06/0.4371, allocations: 0 / 0.529 GB, free: 24.13 MB / 462.1 MB Notification: Performance of Templates: time 0.0287/0.4658, allocations: 13.6 MB / 0.5423 GB, free: 22.64 MB / 462.1 MB " [Timeout remaining time 660] make -j1 -f AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.makefile [Timeout 660] (rm -f AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.sim & ./AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -s ida -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 420.5434353699675] Failed to read output from testmodel.py, exit status != 0: 0.475040839985013 0.487409419 0.11573140400000001 Calling exit ...