Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003.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.001315/0.001315, allocations: 92.42 kB / 20.46 MB, free: 1.246 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.001394/0.001394, allocations: 222.3 kB / 23.77 MB, free: 4.422 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.452/1.452, allocations: 230.6 MB / 257.5 MB, free: 7.805 MB / 206.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.1092/0.1092, allocations: 24.03 MB / 338 MB, free: 11.34 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_Generation.Heater_control_case_003,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003") translateModel(AES.Coursework.ThermSys_Generation.Heater_control_case_003,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003") [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.002194/0.002194, allocations: 63.89 kB / 475.1 MB, free: 5.898 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3032/0.3054, allocations: 59.56 MB / 0.5221 GB, free: 10.45 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Generation.Heater_control_case_003): time 0.004225/0.3096, allocations: 3.938 MB / 0.526 GB, free: 7.777 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001914/0.3115, allocations: 1.269 MB / 0.5272 GB, free: 6.871 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002525/0.3118, allocations: 25.66 kB / 0.5272 GB, free: 6.855 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000318/0.3121, allocations: 171.7 kB / 0.5274 GB, free: 6.75 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006081/0.3127, allocations: 448.2 kB / 0.5278 GB, free: 6.473 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006644/0.3134, allocations: 311.6 kB / 0.5281 GB, free: 6.289 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001651/0.315, allocations: 2.183 MB / 0.5302 GB, free: 5.211 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001236/0.3163, allocations: 1.145 MB / 0.5314 GB, free: 4.672 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009218/0.3172, allocations: 0.8393 MB / 0.5322 GB, free: 4.281 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001197/0.3184, allocations: 0.9258 MB / 0.5331 GB, free: 3.914 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003905/0.3188, allocations: 237.2 kB / 0.5333 GB, free: 3.914 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003682/0.3191, allocations: 238.8 kB / 0.5335 GB, free: 3.914 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004996/0.3196, allocations: 0.7055 MB / 0.5342 GB, free: 3.57 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007701/0.3204, allocations: 0.7813 MB / 0.535 GB, free: 3.148 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002334/0.3227, allocations: 2.618 MB / 0.5376 GB, free: 2.223 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.299e-06/0.3227, allocations: 0.9688 kB / 0.5376 GB, free: 2.223 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.3227, allocations: 0 / 0.5376 GB, free: 2.223 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.4e-05/0.3228, allocations: 0 / 0.5376 GB, free: 2.223 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 300 * Number of variables: 300 Notification: Performance of Generate backend data structure: time 0.0042/0.327, allocations: 1.976 MB / 0.5395 GB, free: 1.109 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.484e-05/0.327, allocations: 11.23 kB / 0.5395 GB, free: 1.109 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002946/0.3273, allocations: 154.7 kB / 0.5396 GB, free: 1.031 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001393/0.3287, allocations: 0.8026 MB / 0.5404 GB, free: 440 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.015e-05/0.3288, allocations: 121.6 kB / 0.5405 GB, free: 360 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002427/0.329, allocations: 140.8 kB / 0.5407 GB, free: 304 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00274/0.3318, allocations: 1.612 MB / 0.5422 GB, free: 15.32 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.981e-05/0.3318, allocations: 0 / 0.5422 GB, free: 15.32 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001523/0.332, allocations: 49.12 kB / 0.5423 GB, free: 15.29 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.197e-05/0.332, allocations: 29.5 kB / 0.5423 GB, free: 15.29 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002465/0.3344, allocations: 1.423 MB / 0.5437 GB, free: 14.55 MB / 398.1 MB Notification: The following initial equation is redundant and consistent due to simplifications in RemoveSimpleEquations and therefore removed from the initialization problem: der(delivery.fluidStream.w) = 0.0 -> 0.0 = 0.0 Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009581/0.344, allocations: 4.716 MB / 0.5483 GB, free: 11.59 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004922/0.3489, allocations: 1.866 MB / 0.5501 GB, free: 10.7 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001499/0.3504, allocations: 0.7265 MB / 0.5509 GB, free: 10.3 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.55e-05/0.3505, allocations: 11.06 kB / 0.5509 GB, free: 10.3 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.286e-05/0.3506, allocations: 44.47 kB / 0.5509 GB, free: 10.26 MB / 398.1 MB Notification: Performance of pre-optimization done (n=104): time 4.068e-06/0.3506, allocations: 4.938 kB / 0.5509 GB, free: 10.25 MB / 398.1 MB Notification: Performance of matching and sorting (n=105): time 0.01184/0.3624, allocations: 4.663 MB / 0.5555 GB, free: 7.648 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.476e-05/0.3625, allocations: 63.09 kB / 0.5555 GB, free: 7.586 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001063/0.3635, allocations: 0.6662 MB / 0.5562 GB, free: 7.191 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001128/0.3637, allocations: 44.48 kB / 0.5562 GB, free: 7.145 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000425/0.3641, allocations: 0.519 MB / 0.5567 GB, free: 6.68 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005151/0.3646, allocations: 438.1 kB / 0.5571 GB, free: 6.301 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004617/0.3651, allocations: 242.2 kB / 0.5574 GB, free: 6.168 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002623/0.3653, allocations: 414.4 kB / 0.5578 GB, free: 5.781 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001403/0.3667, allocations: 0.8559 MB / 0.5586 GB, free: 5.324 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001581/0.3683, allocations: 1.022 MB / 0.5596 GB, free: 4.508 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01401/0.3823, allocations: 4.491 MB / 0.564 GB, free: 15.93 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.033e-06/0.3823, allocations: 0 / 0.564 GB, free: 15.93 MB / 414.1 MB Notification: Performance of matching and sorting (n=174) (initialization): time 0.005121/0.3874, allocations: 2.488 MB / 0.5664 GB, free: 13.39 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.292e-05/0.3875, allocations: 4 kB / 0.5664 GB, free: 13.39 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.499e-05/0.3875, allocations: 8 kB / 0.5664 GB, free: 13.38 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001849/0.3893, allocations: 0.5356 MB / 0.567 GB, free: 12.8 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001864/0.3912, allocations: 403.5 kB / 0.5673 GB, free: 12.41 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01949/0.4107, allocations: 21.11 MB / 0.5879 GB, free: 5.703 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001473/0.4121, allocations: 75.97 kB / 0.588 GB, free: 5.629 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003373/0.4125, allocations: 48 kB / 0.5881 GB, free: 5.582 MB / 430.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 Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: $DER.pipeline.fluidStream.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * 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 (159): * Single equations (assignments): 144 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 15 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 15 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%), (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.0012/0.4137, allocations: 422 kB / 0.5885 GB, free: 5.16 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003227/0.414, allocations: 95.42 kB / 0.5886 GB, free: 5.066 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00415/0.4182, allocations: 2.006 MB / 0.5905 GB, free: 3.004 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.177e-06/0.4182, allocations: 8 kB / 0.5905 GB, free: 2.996 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.059e-05/0.4182, allocations: 11.94 kB / 0.5905 GB, free: 2.984 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.022e-05/0.4182, allocations: 3.984 kB / 0.5905 GB, free: 2.98 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007342/0.4255, allocations: 3.526 MB / 0.594 GB, free: 15.33 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.811e-06/0.4255, allocations: 0 / 0.594 GB, free: 15.33 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002024/0.4276, allocations: 339.6 kB / 0.5943 GB, free: 15 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0014/0.429, allocations: 476.9 kB / 0.5948 GB, free: 14.48 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001605/0.4291, allocations: 67.97 kB / 0.5948 GB, free: 14.42 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0178/0.4469, allocations: 20.22 MB / 0.6146 GB, free: 8.66 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.125e-06/0.4469, allocations: 7.938 kB / 0.6146 GB, free: 8.652 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005625/0.4526, allocations: 2.795 MB / 0.6173 GB, free: 5.762 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003265/0.4529, allocations: 107.4 kB / 0.6174 GB, free: 5.656 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002176/0.4531, allocations: 55.98 kB / 0.6175 GB, free: 5.602 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007905/0.4539, allocations: 59.92 kB / 0.6175 GB, free: 5.543 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002735/0.4542, allocations: 104.7 kB / 0.6176 GB, free: 5.438 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.285e-05/0.4543, allocations: 27.98 kB / 0.6177 GB, free: 5.41 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0006592/0.4549, allocations: 467 kB / 0.6181 GB, free: 4.961 MB / 462.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4549, allocations: 0 / 0.6181 GB, free: 4.961 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001662/0.4566, allocations: 448 kB / 0.6185 GB, free: 4.523 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 42 (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],delivery.fluidStream.T[1],delivery.fluidStream.T[2],delivery.fluidStream.T[3],delivery.fluidStream.T[4],delivery.fluidStream.T[5],delivery.wall.wall.T[1,1],delivery.wall.wall.T[1,2],delivery.wall.wall.T[1,3],delivery.wall.wall.T[2,1],delivery.wall.wall.T[2,2],delivery.wall.wall.T[2,3],delivery.wall.wall.T[3,1],delivery.wall.wall.T[3,2],delivery.wall.wall.T[3,3],delivery.wall.wall.T[4,1],delivery.wall.wall.T[4,2],delivery.wall.wall.T[4,3],delivery.wall.wall.T[5,1],delivery.wall.wall.T[5,2],delivery.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 (92): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 15 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 15 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%), (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.0003011/0.4569, allocations: 196.1 kB / 0.6187 GB, free: 4.324 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005026/0.4619, allocations: 3.378 MB / 0.622 GB, free: 0.75 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.212e-06/0.4619, allocations: 4 kB / 0.622 GB, free: 0.7461 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003199/0.4651, allocations: 2.456 MB / 0.6244 GB, free: 14.1 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001466/0.4666, allocations: 318.5 kB / 0.6247 GB, free: 13.78 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01041/0.477, allocations: 5.743 MB / 0.6303 GB, free: 7.98 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009094/0.4779, allocations: 0.6724 MB / 0.631 GB, free: 7.273 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006554/0.4786, allocations: 83.42 kB / 0.6311 GB, free: 7.191 MB / 478.1 MB Notification: Performance of SimCode: time 1.253e-06/0.4786, allocations: 4 kB / 0.6311 GB, free: 7.188 MB / 478.1 MB Notification: Performance of Templates: time 0.09359/0.5721, allocations: 82.11 MB / 0.7113 GB, free: 4.988 MB / 0.545 GB " [Timeout remaining time 659] make -j1 -f AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003.makefile [Timeout 660] (rm -f AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003.pipe ; mkfifo AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003.pipe >> ../files/AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003.sim & ./AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 22.96071304893121] Failed to read output from testmodel.py, exit status != 0: 0.5815768679603934 0.595832668 0.270043796 Calling exit ...