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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(AES.Coursework.ThermSys_Generation.Heater_control_case_003,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,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=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001053/0.001053, allocations: 108 kB / 15.61 MB, free: 148 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001009/0.001009, allocations: 194.6 kB / 16.53 MB, free: 6.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.437/1.437, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.233/0.233, allocations: 22.35 MB / 312.7 MB, free: 12.55 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001907/0.001907, allocations: 55.91 kB / 380.8 MB, free: 10.54 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4063/0.4082, allocations: 54.95 MB / 435.8 MB, free: 39.77 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Generation.Heater_control_case_003): time 0.005623/0.4139, allocations: 4.391 MB / 440.2 MB, free: 36.58 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00265/0.4165, allocations: 1.272 MB / 441.4 MB, free: 35.66 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007769/0.4173, allocations: 14 kB / 441.4 MB, free: 35.65 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005567/0.418, allocations: 164 kB / 441.6 MB, free: 35.55 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001141/0.4191, allocations: 431.4 kB / 442 MB, free: 35.28 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009812/0.4201, allocations: 305 kB / 442.3 MB, free: 35.1 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002479/0.4226, allocations: 2.151 MB / 444.5 MB, free: 34.04 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001669/0.4243, allocations: 1.588 MB / 446.1 MB, free: 33.37 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009333/0.4252, allocations: 0.8162 MB / 446.9 MB, free: 32.98 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009527/0.4262, allocations: 0.9852 MB / 447.9 MB, free: 32.54 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002618/0.4265, allocations: 235.9 kB / 448.1 MB, free: 32.54 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003208/0.4268, allocations: 240.3 kB / 448.3 MB, free: 32.54 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004797/0.4273, allocations: 0.7016 MB / 449 MB, free: 32.2 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007087/0.428, allocations: 0.9221 MB / 449.9 MB, free: 31.64 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001772/0.4298, allocations: 2.573 MB / 452.5 MB, free: 30.72 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.623e-06/0.4298, allocations: 4 kB / 452.5 MB, free: 30.72 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.4298, allocations: 3.094 kB / 452.5 MB, free: 30.72 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.882e-05/0.4298, allocations: 0 / 452.5 MB, free: 30.72 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: 300 * Number of variables: 300 Notification: Performance of Generate backend data structure: time 0.004018/0.4338, allocations: 2.02 MB / 454.5 MB, free: 29.66 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.551e-05/0.4339, allocations: 14.34 kB / 454.6 MB, free: 29.66 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000312/0.4342, allocations: 145.9 kB / 454.7 MB, free: 29.59 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001196/0.4354, allocations: 0.8589 MB / 455.6 MB, free: 29.02 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001159/0.4356, allocations: 113.4 kB / 455.7 MB, free: 28.95 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002459/0.4358, allocations: 139.7 kB / 455.8 MB, free: 28.9 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002845/0.4387, allocations: 1.593 MB / 457.4 MB, free: 28.25 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.789e-05/0.4387, allocations: 0 / 457.4 MB, free: 28.25 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001274/0.4388, allocations: 50.31 kB / 457.5 MB, free: 28.21 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.739e-05/0.4389, allocations: 28.75 kB / 457.5 MB, free: 28.21 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002451/0.4413, allocations: 1.422 MB / 458.9 MB, free: 27.66 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01021/0.4515, allocations: 7.163 MB / 466.1 MB, free: 23.03 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004804/0.4564, allocations: 1.893 MB / 468 MB, free: 22.4 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001085/0.4575, allocations: 0.7218 MB / 468.7 MB, free: 22.08 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.537e-05/0.4576, allocations: 14.92 kB / 468.7 MB, free: 22.08 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.885e-05/0.4576, allocations: 40.62 kB / 468.7 MB, free: 22.04 MB / 350.1 MB Notification: Performance of pre-optimization done (n=102): time 2.986e-06/0.4576, allocations: 0 / 468.7 MB, free: 22.04 MB / 350.1 MB Notification: Performance of matching and sorting (n=102): time 0.007029/0.4647, allocations: 3.938 MB / 472.7 MB, free: 19.5 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.31e-05/0.4647, allocations: 64.28 kB / 472.7 MB, free: 19.44 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001102/0.4658, allocations: 0.687 MB / 473.4 MB, free: 19.12 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.42e-05/0.4659, allocations: 41.67 kB / 473.5 MB, free: 19.08 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003229/0.4663, allocations: 0.5017 MB / 474 MB, free: 18.68 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004121/0.4667, allocations: 411.5 kB / 474.4 MB, free: 18.36 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004419/0.4671, allocations: 237.5 kB / 474.6 MB, free: 18.25 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001804/0.4673, allocations: 413.9 kB / 475 MB, free: 17.89 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001433/0.4688, allocations: 0.8436 MB / 475.8 MB, free: 17.55 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001478/0.4702, allocations: 1.005 MB / 476.9 MB, free: 17.02 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0133/0.4835, allocations: 4.46 MB / 481.3 MB, free: 15.07 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-05/0.4836, allocations: 1.156 kB / 481.3 MB, free: 15.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.004969/0.4886, allocations: 2.469 MB / 483.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.126e-05/0.4886, allocations: 9.438 kB / 483.8 MB, free: 12.6 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.691e-05/0.4887, allocations: 8 kB / 483.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001523/0.4902, allocations: 0.5394 MB / 484.3 MB, free: 12.01 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001707/0.4919, allocations: 391.5 kB / 484.7 MB, free: 11.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01556/0.5075, allocations: 23.06 MB / 0.4959 GB, free: 2.402 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001571/0.5091, allocations: 138.7 kB / 0.496 GB, free: 2.266 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001099/0.5092, allocations: 48 kB / 0.4961 GB, free: 2.219 MB / 366.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: 23 * 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 (157): * Single equations (assignments): 142 * 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.0008876/0.5101, allocations: 426.1 kB / 0.4965 GB, free: 1.793 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001915/0.5103, allocations: 94.88 kB / 0.4966 GB, free: 1.699 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003674/0.514, allocations: 1.975 MB / 0.4985 GB, free: 15.66 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.262e-05/0.514, allocations: 15.98 kB / 0.4985 GB, free: 15.65 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.027e-05/0.514, allocations: 4 kB / 0.4985 GB, free: 15.64 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.257e-05/0.514, allocations: 7.969 kB / 0.4985 GB, free: 15.64 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005656/0.5197, allocations: 3.547 MB / 0.502 GB, free: 11.96 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.651e-06/0.5197, allocations: 4.031 kB / 0.502 GB, free: 11.96 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001946/0.5217, allocations: 335.6 kB / 0.5023 GB, free: 11.63 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00137/0.5231, allocations: 484.5 kB / 0.5028 GB, free: 11.11 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001713/0.5233, allocations: 63.97 kB / 0.5028 GB, free: 11.05 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02045/0.5437, allocations: 22.18 MB / 0.5245 GB, free: 2.762 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/0.5438, allocations: 0 / 0.5245 GB, free: 2.762 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005504/0.5493, allocations: 2.736 MB / 0.5271 GB, free: 15.94 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004598/0.5497, allocations: 199.7 kB / 0.5273 GB, free: 15.73 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002077/0.55, allocations: 59.97 kB / 0.5274 GB, free: 15.67 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007238/0.5507, allocations: 55.94 kB / 0.5274 GB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003837/0.5511, allocations: 96.75 kB / 0.5275 GB, free: 15.52 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.373e-05/0.5512, allocations: 31.98 kB / 0.5276 GB, free: 15.49 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0007837/0.552, allocations: 487 kB / 0.528 GB, free: 15.02 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.552, allocations: 0 / 0.528 GB, free: 15.02 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001713/0.5537, allocations: 0.4952 MB / 0.5285 GB, free: 14.52 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (89): * Single equations (assignments): 74 * 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.0002691/0.554, allocations: 176.9 kB / 0.5287 GB, free: 14.34 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005961/0.5599, allocations: 3.98 MB / 0.5326 GB, free: 10.17 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/0.56, allocations: 0 / 0.5326 GB, free: 10.17 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002873/0.5628, allocations: 2.456 MB / 0.535 GB, free: 7.516 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001304/0.5642, allocations: 315.8 kB / 0.5353 GB, free: 7.211 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009542/0.5737, allocations: 5.535 MB / 0.5407 GB, free: 1.633 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001017/0.5748, allocations: 1.274 MB / 0.5419 GB, free: 332 kB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001142/0.5759, allocations: 351.6 kB / 0.5423 GB, free: 15.98 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003297/0.5762, allocations: 83.36 kB / 0.5423 GB, free: 15.89 MB / 430.1 MB Notification: Performance of SimCode: time 8.11e-07/0.5763, allocations: 0 / 0.5423 GB, free: 15.89 MB / 430.1 MB Notification: Performance of Templates: time 0.03716/0.6134, allocations: 22.72 MB / 0.5645 GB, free: 9.422 MB / 446.1 MB make -j1 -f AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003.makefile (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)