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.005789/0.005789, allocations: 99.53 kB / 15.73 MB, free: 5.996 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.001152/0.001152, allocations: 198.2 kB / 16.68 MB, free: 5.918 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.356/1.356, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08826/0.08826, allocations: 22.32 MB / 312.8 MB, free: 8.871 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002054/0.002054, allocations: 67.89 kB / 437 MB, free: 11.75 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1308/0.1329, allocations: 54.95 MB / 492 MB, free: 4.75 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Generation.Heater_control_case_003): time 0.005999/0.1389, allocations: 4.388 MB / 496.4 MB, free: 340 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002488/0.1414, allocations: 1.267 MB / 497.6 MB, free: 15.06 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002586/0.1417, allocations: 15.88 kB / 497.7 MB, free: 15.04 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003692/0.1421, allocations: 162.6 kB / 497.8 MB, free: 14.88 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006948/0.1428, allocations: 437.5 kB / 498.2 MB, free: 14.45 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007956/0.1436, allocations: 299.6 kB / 498.5 MB, free: 14.16 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002019/0.1456, allocations: 2.158 MB / 0.489 GB, free: 12 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00181/0.1475, allocations: 1.59 MB / 0.4905 GB, free: 10.36 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009843/0.1485, allocations: 0.8223 MB / 0.4913 GB, free: 9.539 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001334/0.1498, allocations: 0.9855 MB / 0.4923 GB, free: 8.551 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003016/0.1501, allocations: 236 kB / 0.4925 GB, free: 8.32 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003505/0.1505, allocations: 239.9 kB / 0.4927 GB, free: 8.086 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005425/0.151, allocations: 0.6898 MB / 0.4934 GB, free: 7.395 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008403/0.1519, allocations: 0.93 MB / 0.4943 GB, free: 6.461 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002101/0.154, allocations: 2.587 MB / 0.4968 GB, free: 3.867 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.199e-06/0.154, allocations: 0 / 0.4968 GB, free: 3.867 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.634e-06/0.154, allocations: 0 / 0.4968 GB, free: 3.867 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.644e-05/0.154, allocations: 0 / 0.4968 GB, free: 3.867 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.004202/0.1582, allocations: 2.023 MB / 0.4988 GB, free: 1.789 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.745e-05/0.1583, allocations: 8.031 kB / 0.4988 GB, free: 1.781 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002773/0.1586, allocations: 147.2 kB / 0.499 GB, free: 1.637 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001285/0.1599, allocations: 0.8641 MB / 0.4998 GB, free: 0.7305 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001178/0.16, allocations: 124.6 kB / 0.4999 GB, free: 0.6016 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002394/0.1602, allocations: 136.2 kB / 0.5 GB, free: 480 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2845/0.4447, allocations: 1.588 MB / 0.5016 GB, free: 21.13 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.661e-05/0.4448, allocations: 0.875 kB / 0.5016 GB, free: 21.13 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001373/0.4449, allocations: 52.66 kB / 0.5017 GB, free: 21.13 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.912e-05/0.445, allocations: 29.34 kB / 0.5017 GB, free: 21.13 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002301/0.4473, allocations: 1.416 MB / 0.5031 GB, free: 21.12 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01026/0.4576, allocations: 7.102 MB / 0.51 GB, free: 18.46 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004802/0.4624, allocations: 1.89 MB / 0.5118 GB, free: 18.44 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001312/0.4637, allocations: 0.7272 MB / 0.5126 GB, free: 18.43 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.176e-05/0.4638, allocations: 19.38 kB / 0.5126 GB, free: 18.43 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.337e-05/0.4639, allocations: 42.03 kB / 0.5126 GB, free: 18.39 MB / 382.1 MB Notification: Performance of pre-optimization done (n=102): time 6.592e-06/0.4639, allocations: 0 / 0.5126 GB, free: 18.39 MB / 382.1 MB Notification: Performance of matching and sorting (n=102): time 0.00754/0.4714, allocations: 3.935 MB / 0.5165 GB, free: 16.32 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.493e-05/0.4715, allocations: 73.09 kB / 0.5165 GB, free: 16.25 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001318/0.4728, allocations: 0.685 MB / 0.5172 GB, free: 15.94 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001037/0.4729, allocations: 41.39 kB / 0.5172 GB, free: 15.89 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003726/0.4733, allocations: 0.5083 MB / 0.5177 GB, free: 15.49 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004789/0.4738, allocations: 413 kB / 0.5181 GB, free: 15.18 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005011/0.4743, allocations: 234.3 kB / 0.5183 GB, free: 15.08 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001702/0.4745, allocations: 413.1 kB / 0.5187 GB, free: 14.72 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001436/0.4759, allocations: 0.8442 MB / 0.5196 GB, free: 14.38 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001528/0.4775, allocations: 1.006 MB / 0.5205 GB, free: 13.85 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01321/0.4907, allocations: 4.446 MB / 0.5249 GB, free: 12.13 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-05/0.4908, allocations: 2.312 kB / 0.5249 GB, free: 12.13 MB / 382.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.005556/0.4963, allocations: 2.468 MB / 0.5273 GB, free: 10.78 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.083e-05/0.4964, allocations: 7.062 kB / 0.5273 GB, free: 10.78 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.164e-05/0.4964, allocations: 4.781 kB / 0.5273 GB, free: 10.78 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001908/0.4983, allocations: 0.5398 MB / 0.5278 GB, free: 10.44 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00256/0.5009, allocations: 391.8 kB / 0.5282 GB, free: 10.35 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01842/0.5193, allocations: 23.05 MB / 0.5507 GB, free: 3.168 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001544/0.5209, allocations: 141.9 kB / 0.5509 GB, free: 3.07 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004131/0.5214, allocations: 50.86 kB / 0.5509 GB, free: 3.059 MB / 398.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.001447/0.5228, allocations: 432.7 kB / 0.5513 GB, free: 2.742 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004363/0.5233, allocations: 88.78 kB / 0.5514 GB, free: 2.695 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004109/0.5274, allocations: 1.976 MB / 0.5533 GB, free: 1.18 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.06e-05/0.5274, allocations: 8 kB / 0.5533 GB, free: 1.172 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.32e-05/0.5274, allocations: 8.875 kB / 0.5533 GB, free: 1.164 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.418e-05/0.5275, allocations: 7.969 kB / 0.5534 GB, free: 1.156 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006211/0.5337, allocations: 3.553 MB / 0.5568 GB, free: 13.5 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.983e-06/0.5337, allocations: 4 kB / 0.5568 GB, free: 13.5 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001981/0.5357, allocations: 335.6 kB / 0.5571 GB, free: 13.17 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001342/0.5371, allocations: 482.8 kB / 0.5576 GB, free: 12.66 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001749/0.5372, allocations: 63.97 kB / 0.5577 GB, free: 12.59 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01541/0.5527, allocations: 22.15 MB / 0.5793 GB, free: 4.34 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.09e-05/0.5527, allocations: 11.91 kB / 0.5793 GB, free: 4.328 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005825/0.5586, allocations: 2.732 MB / 0.582 GB, free: 1.512 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004725/0.5591, allocations: 195.7 kB / 0.5822 GB, free: 1.301 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003971/0.5595, allocations: 63.97 kB / 0.5822 GB, free: 1.238 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009688/0.5604, allocations: 47.94 kB / 0.5823 GB, free: 1.191 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003797/0.5608, allocations: 100.8 kB / 0.5824 GB, free: 1.094 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001171/0.561, allocations: 35.98 kB / 0.5824 GB, free: 1.059 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.000776/0.5617, allocations: 479 kB / 0.5829 GB, free: 0.5938 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5618, allocations: 0 / 0.5829 GB, free: 0.5938 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002012/0.5638, allocations: 0.4991 MB / 0.5834 GB, free: 96 kB / 430.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.0003798/0.5642, allocations: 180.4 kB / 0.5835 GB, free: 15.9 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004981/0.5692, allocations: 3.428 MB / 0.5869 GB, free: 12.29 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.746e-06/0.5692, allocations: 4 kB / 0.5869 GB, free: 12.29 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002838/0.572, allocations: 2.454 MB / 0.5893 GB, free: 9.641 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001576/0.5736, allocations: 324.7 kB / 0.5896 GB, free: 9.336 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01035/0.584, allocations: 5.502 MB / 0.595 GB, free: 3.84 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001578/0.5856, allocations: 1.268 MB / 0.5962 GB, free: 2.539 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001782/0.5874, allocations: 362.2 kB / 0.5965 GB, free: 2.184 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005928/0.588, allocations: 75.42 kB / 0.5966 GB, free: 2.113 MB / 446.1 MB Notification: Performance of SimCode: time 1.062e-06/0.5881, allocations: 0 / 0.5966 GB, free: 2.113 MB / 446.1 MB Notification: Performance of Templates: time 0.04251/0.6306, allocations: 23.54 MB / 0.6196 GB, free: 10.85 MB / 478.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)