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.0008329/0.0008327, allocations: 97.95 kB / 15.36 MB, free: 0.7344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.007762/0.007762, allocations: 172.7 kB / 16.27 MB, free: 6.648 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.459/1.459, allocations: 223.3 MB / 240.3 MB, free: 5.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2193/0.2193, allocations: 22.34 MB / 313.8 MB, free: 13.03 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003444/0.0003446, allocations: 8 kB / 382.6 MB, free: 10.12 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3622/0.3626, allocations: 55.99 MB / 438.6 MB, free: 39.21 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Generation.Heater_control_case_003): time 0.003456/0.3661, allocations: 4.16 MB / 442.7 MB, free: 36.12 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001863/0.3679, allocations: 1.266 MB / 444 MB, free: 35.2 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002485/0.3682, allocations: 16.56 kB / 444 MB, free: 35.19 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002625/0.3685, allocations: 133.4 kB / 444.1 MB, free: 35.11 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000571/0.3691, allocations: 408.8 kB / 444.5 MB, free: 34.88 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006116/0.3697, allocations: 276.8 kB / 444.8 MB, free: 34.7 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002053/0.3717, allocations: 2.637 MB / 447.4 MB, free: 33.74 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001475/0.3732, allocations: 1.27 MB / 448.7 MB, free: 33.28 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008325/0.3741, allocations: 0.622 MB / 449.3 MB, free: 33.04 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001094/0.3752, allocations: 0.9061 MB / 450.2 MB, free: 32.71 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000168/0.3754, allocations: 92.59 kB / 450.3 MB, free: 32.71 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001991/0.3756, allocations: 92.72 kB / 450.4 MB, free: 32.71 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003811/0.376, allocations: 0.5402 MB / 451 MB, free: 32.53 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006346/0.3766, allocations: 0.7751 MB / 451.7 MB, free: 32.09 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001537/0.3781, allocations: 2.417 MB / 454.2 MB, free: 31.49 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.177e-06/0.3782, allocations: 0 / 454.2 MB, free: 31.49 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.215e-06/0.3782, allocations: 3.875 kB / 454.2 MB, free: 31.49 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.668e-05/0.3782, allocations: 4 kB / 454.2 MB, free: 31.49 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.003549/0.3818, allocations: 1.783 MB / 456 MB, free: 30.6 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.221e-05/0.3818, allocations: 14.66 kB / 456 MB, free: 30.59 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002997/0.3821, allocations: 151.2 kB / 456.1 MB, free: 30.52 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001287/0.3834, allocations: 0.8622 MB / 457 MB, free: 29.95 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001156/0.3835, allocations: 113.2 kB / 457.1 MB, free: 29.88 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000278/0.3838, allocations: 137.6 kB / 457.2 MB, free: 29.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002979/0.3868, allocations: 1.596 MB / 458.8 MB, free: 29.18 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.824e-05/0.3868, allocations: 0 / 458.8 MB, free: 29.18 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001366/0.387, allocations: 46.59 kB / 458.9 MB, free: 29.14 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.905e-05/0.387, allocations: 31.72 kB / 458.9 MB, free: 29.14 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002412/0.3894, allocations: 1.418 MB / 460.3 MB, free: 28.59 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01075/0.4002, allocations: 7.194 MB / 467.5 MB, free: 23.97 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005109/0.4054, allocations: 1.891 MB / 469.4 MB, free: 23.34 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001136/0.4065, allocations: 0.7244 MB / 470.1 MB, free: 23.02 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.981e-05/0.4066, allocations: 18.55 kB / 470.1 MB, free: 23.01 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.249e-05/0.4067, allocations: 44.52 kB / 470.2 MB, free: 22.96 MB / 350.1 MB Notification: Performance of pre-optimization done (n=102): time 3.767e-06/0.4067, allocations: 3.938 kB / 470.2 MB, free: 22.96 MB / 350.1 MB Notification: Performance of matching and sorting (n=102): time 0.007216/0.4139, allocations: 4.003 MB / 474.2 MB, free: 20.42 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.982e-05/0.414, allocations: 70.59 kB / 474.3 MB, free: 20.35 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001268/0.4152, allocations: 0.6842 MB / 474.9 MB, free: 20.04 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001028/0.4154, allocations: 42.2 kB / 475 MB, free: 19.99 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003518/0.4157, allocations: 0.5106 MB / 475.5 MB, free: 19.59 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004607/0.4162, allocations: 409.7 kB / 475.9 MB, free: 19.27 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002268/0.4164, allocations: 115.7 kB / 476 MB, free: 19.21 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000189/0.4166, allocations: 409.2 kB / 476.4 MB, free: 18.86 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00139/0.418, allocations: 0.85 MB / 477.3 MB, free: 18.51 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001469/0.4195, allocations: 1.002 MB / 478.3 MB, free: 17.98 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01326/0.4328, allocations: 4.613 MB / 482.9 MB, free: 15.61 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.448e-05/0.4328, allocations: 0 / 482.9 MB, free: 15.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.004243/0.4371, allocations: 2.488 MB / 485.4 MB, free: 13.07 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.631e-05/0.4371, allocations: 8 kB / 485.4 MB, free: 13.06 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.627e-05/0.4371, allocations: 4 kB / 485.4 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001568/0.4387, allocations: 0.5473 MB / 485.9 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001662/0.4404, allocations: 395.5 kB / 486.3 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01451/0.4549, allocations: 21.46 MB / 0.4959 GB, free: 4.543 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001726/0.4567, allocations: 150.7 kB / 0.496 GB, free: 4.395 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003653/0.4571, allocations: 44 kB / 0.4961 GB, free: 4.352 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.00141/0.4585, allocations: 427.8 kB / 0.4965 GB, free: 3.926 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004226/0.4589, allocations: 94.86 kB / 0.4966 GB, free: 3.832 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004291/0.4632, allocations: 1.979 MB / 0.4985 GB, free: 1.789 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.289e-05/0.4632, allocations: 12 kB / 0.4985 GB, free: 1.777 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.411e-05/0.4633, allocations: 4 kB / 0.4985 GB, free: 1.773 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.916e-05/0.4633, allocations: 11.91 kB / 0.4985 GB, free: 1.762 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007044/0.4704, allocations: 3.55 MB / 0.502 GB, free: 14.08 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.135e-06/0.4704, allocations: 0 / 0.502 GB, free: 14.08 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001983/0.4724, allocations: 339.6 kB / 0.5023 GB, free: 13.75 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001383/0.4738, allocations: 480.8 kB / 0.5028 GB, free: 13.23 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002058/0.474, allocations: 63.97 kB / 0.5028 GB, free: 13.17 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01577/0.4898, allocations: 20.6 MB / 0.5229 GB, free: 6.566 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.188e-06/0.4898, allocations: 0 / 0.5229 GB, free: 6.566 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005925/0.4958, allocations: 2.738 MB / 0.5256 GB, free: 3.746 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005276/0.4963, allocations: 191.8 kB / 0.5258 GB, free: 3.539 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003499/0.4967, allocations: 59.97 kB / 0.5259 GB, free: 3.48 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001051/0.4977, allocations: 75.77 kB / 0.5259 GB, free: 3.406 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003714/0.4981, allocations: 92.81 kB / 0.526 GB, free: 3.316 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001025/0.4982, allocations: 35.92 kB / 0.526 GB, free: 3.281 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0007472/0.499, allocations: 483 kB / 0.5265 GB, free: 2.812 MB / 398.1 MB Notification: Performance of sort global known variables: time 4.81e-07/0.499, allocations: 0 / 0.5265 GB, free: 2.812 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002035/0.501, allocations: 0.5068 MB / 0.527 GB, free: 2.305 MB / 398.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.0003512/0.5014, allocations: 189.5 kB / 0.5272 GB, free: 2.113 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004948/0.5064, allocations: 3.417 MB / 0.5305 GB, free: 14.5 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.242e-06/0.5064, allocations: 448 / 0.5305 GB, free: 14.5 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002934/0.5093, allocations: 2.475 MB / 0.5329 GB, free: 11.83 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00188/0.5112, allocations: 299.5 kB / 0.5332 GB, free: 11.54 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01035/0.5216, allocations: 6.582 MB / 0.5396 GB, free: 4.914 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001104/0.5227, allocations: 1.272 MB / 0.5409 GB, free: 3.605 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001282/0.524, allocations: 351.6 kB / 0.5412 GB, free: 3.258 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003979/0.5244, allocations: 75.42 kB / 0.5413 GB, free: 3.184 MB / 414.1 MB Notification: Performance of SimCode: time 9.52e-07/0.5245, allocations: 0 / 0.5413 GB, free: 3.184 MB / 414.1 MB Notification: Performance of Templates: time 0.03874/0.5632, allocations: 21.49 MB / 0.5623 GB, free: 13.93 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)