Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_Generation.Heater_control_case_004.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_004,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Generation.Heater_control_case_004") translateModel(AES.Coursework.ThermSys_Generation.Heater_control_case_004,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Generation.Heater_control_case_004") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001236/0.001236, allocations: 111 kB / 16.38 MB, free: 6.414 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.001333/0.001333, allocations: 190.2 kB / 17.32 MB, free: 5.75 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.33/1.33, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09084/0.09084, allocations: 22.32 MB / 313.5 MB, free: 8.875 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001217/0.001217, allocations: 67.88 kB / 437.7 MB, free: 11.77 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1112/0.1124, allocations: 54.95 MB / 492.6 MB, free: 4.777 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Generation.Heater_control_case_004): time 0.005285/0.1178, allocations: 4.423 MB / 497 MB, free: 332 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002423/0.1202, allocations: 1.263 MB / 498.3 MB, free: 15.05 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003414/0.1206, allocations: 19.88 kB / 498.3 MB, free: 15.04 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003522/0.1209, allocations: 162.6 kB / 498.5 MB, free: 14.88 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006687/0.1216, allocations: 445.4 kB / 498.9 MB, free: 14.44 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007308/0.1224, allocations: 307.6 kB / 499.2 MB, free: 14.14 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001831/0.1242, allocations: 2.177 MB / 0.4896 GB, free: 11.95 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001744/0.126, allocations: 1.61 MB / 0.4912 GB, free: 10.3 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009003/0.1269, allocations: 0.834 MB / 0.492 GB, free: 9.465 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00115/0.1281, allocations: 0.9776 MB / 0.493 GB, free: 8.484 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002644/0.1283, allocations: 232 kB / 0.4932 GB, free: 8.258 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002956/0.1286, allocations: 228 kB / 0.4934 GB, free: 8.035 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005616/0.1292, allocations: 0.686 MB / 0.4941 GB, free: 7.348 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008295/0.13, allocations: 0.9183 MB / 0.495 GB, free: 6.426 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001895/0.1319, allocations: 2.575 MB / 0.4975 GB, free: 3.844 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.132, allocations: 0 / 0.4975 GB, free: 3.844 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.132, allocations: 0 / 0.4975 GB, free: 3.844 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.973e-05/0.132, allocations: 0 / 0.4975 GB, free: 3.844 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: 302 * Number of variables: 302 Notification: Performance of Generate backend data structure: time 0.004149/0.1361, allocations: 2.012 MB / 0.4995 GB, free: 1.777 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.83e-05/0.1362, allocations: 11.97 kB / 0.4995 GB, free: 1.766 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002743/0.1365, allocations: 147.2 kB / 0.4996 GB, free: 1.621 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001186/0.1377, allocations: 0.8719 MB / 0.5005 GB, free: 0.707 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001074/0.1378, allocations: 120.6 kB / 0.5006 GB, free: 0.582 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002349/0.138, allocations: 132.3 kB / 0.5007 GB, free: 464 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2381/0.3761, allocations: 1.583 MB / 0.5023 GB, free: 21.18 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.218e-05/0.3762, allocations: 0.625 kB / 0.5023 GB, free: 21.18 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001228/0.3763, allocations: 49.09 kB / 0.5023 GB, free: 21.18 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.009e-05/0.3764, allocations: 27.53 kB / 0.5023 GB, free: 21.18 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002068/0.3784, allocations: 1.407 MB / 0.5037 GB, free: 21.17 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008967/0.3874, allocations: 7.079 MB / 0.5106 GB, free: 18.51 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004505/0.3919, allocations: 1.88 MB / 0.5125 GB, free: 18.48 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001132/0.3931, allocations: 0.7384 MB / 0.5132 GB, free: 18.46 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.903e-05/0.3932, allocations: 13.8 kB / 0.5132 GB, free: 18.46 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.777e-05/0.3932, allocations: 50.95 kB / 0.5132 GB, free: 18.43 MB / 382.1 MB Notification: Performance of pre-optimization done (n=103): time 2.745e-06/0.3932, allocations: 0 / 0.5132 GB, free: 18.43 MB / 382.1 MB Notification: Performance of matching and sorting (n=103): time 0.0068/0.4, allocations: 3.927 MB / 0.5171 GB, free: 16.39 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.308e-05/0.4001, allocations: 62.28 kB / 0.5171 GB, free: 16.32 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001004/0.4011, allocations: 0.679 MB / 0.5178 GB, free: 16.02 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001131/0.4012, allocations: 46.2 kB / 0.5178 GB, free: 15.97 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003494/0.4016, allocations: 0.51 MB / 0.5183 GB, free: 15.57 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003972/0.402, allocations: 414.9 kB / 0.5187 GB, free: 15.25 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005198/0.4025, allocations: 239.7 kB / 0.519 GB, free: 15.14 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000175/0.4027, allocations: 415 kB / 0.5194 GB, free: 14.79 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001332/0.404, allocations: 0.842 MB / 0.5202 GB, free: 14.45 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001283/0.4053, allocations: 1.004 MB / 0.5212 GB, free: 13.92 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0126/0.4179, allocations: 4.469 MB / 0.5255 GB, free: 12.14 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.137e-05/0.418, allocations: 0 / 0.5255 GB, free: 12.14 MB / 382.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004085/0.4221, allocations: 2.467 MB / 0.5279 GB, free: 10.79 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.268e-05/0.4221, allocations: 6.531 kB / 0.5279 GB, free: 10.79 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.426e-05/0.4222, allocations: 9.797 kB / 0.5279 GB, free: 10.79 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001557/0.4237, allocations: 0.5387 MB / 0.5285 GB, free: 10.45 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001709/0.4254, allocations: 404.5 kB / 0.5289 GB, free: 10.36 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.014/0.4394, allocations: 23.04 MB / 0.5514 GB, free: 3.176 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001305/0.4408, allocations: 152.9 kB / 0.5515 GB, free: 3.07 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001004/0.4409, allocations: 54.48 kB / 0.5516 GB, free: 3.051 MB / 398.1 MB Warning: Assuming fixed start value for the following 3 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 CH.xpi:VARIABLE(start = 0.0 fixed = true protected = true ) 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 (160): * Single equations (assignments): 145 * 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.0007548/0.4417, allocations: 425.5 kB / 0.552 GB, free: 2.742 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001793/0.4419, allocations: 87.75 kB / 0.552 GB, free: 2.699 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003371/0.4452, allocations: 1.99 MB / 0.554 GB, free: 1.168 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.027e-06/0.4453, allocations: 12 kB / 0.554 GB, free: 1.156 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.135e-06/0.4453, allocations: 4 kB / 0.554 GB, free: 1.152 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.113e-05/0.4453, allocations: 5.109 kB / 0.554 GB, free: 1.148 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005577/0.4509, allocations: 3.713 MB / 0.5576 GB, free: 13.34 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.883e-06/0.4509, allocations: 4.25 kB / 0.5576 GB, free: 13.33 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00188/0.4528, allocations: 343.6 kB / 0.558 GB, free: 13 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00124/0.454, allocations: 472.6 kB / 0.5584 GB, free: 12.49 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001373/0.4542, allocations: 75.88 kB / 0.5585 GB, free: 12.41 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01489/0.4691, allocations: 22.16 MB / 0.5801 GB, free: 4.156 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/0.4691, allocations: 2.031 kB / 0.5801 GB, free: 4.156 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004691/0.4738, allocations: 2.726 MB / 0.5828 GB, free: 1.348 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003112/0.4742, allocations: 195.7 kB / 0.583 GB, free: 1.137 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001865/0.4743, allocations: 67.92 kB / 0.583 GB, free: 1.07 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000717/0.4751, allocations: 55.92 kB / 0.5831 GB, free: 1.016 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002883/0.4754, allocations: 103.4 kB / 0.5832 GB, free: 0.9141 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.224e-05/0.4755, allocations: 31.98 kB / 0.5832 GB, free: 0.8828 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0005785/0.476, allocations: 472.9 kB / 0.5837 GB, free: 432 kB / 430.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.476, allocations: 4 kB / 0.5837 GB, free: 428 kB / 430.1 MB Notification: Performance of remove unused functions: time 0.00153/0.4776, allocations: 0.499 MB / 0.5842 GB, free: 15.92 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 43 (CH.Tfo,CH.Ec,CH.xpi,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.0002624/0.4779, allocations: 176.3 kB / 0.5843 GB, free: 15.73 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0045/0.4824, allocations: 3.434 MB / 0.5877 GB, free: 12.11 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.177e-06/0.4824, allocations: 0 / 0.5877 GB, free: 12.11 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002696/0.4851, allocations: 2.451 MB / 0.5901 GB, free: 9.473 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001245/0.4864, allocations: 319.5 kB / 0.5904 GB, free: 9.168 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009587/0.4959, allocations: 5.652 MB / 0.5959 GB, free: 3.512 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009803/0.497, allocations: 1.271 MB / 0.5972 GB, free: 2.211 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006777/0.4977, allocations: 87.42 kB / 0.5972 GB, free: 2.129 MB / 446.1 MB Notification: Performance of SimCode: time 7.32e-07/0.4977, allocations: 0 / 0.5972 GB, free: 2.129 MB / 446.1 MB Notification: Performance of Templates: time 0.07452/0.5722, allocations: 81.7 MB / 0.677 GB, free: 360 kB / 0.5137 GB make -j1 -f AES_AES.Coursework.ThermSys_Generation.Heater_control_case_004.makefile (rm -f AES_AES.Coursework.ThermSys_Generation.Heater_control_case_004.pipe ; mkfifo AES_AES.Coursework.ThermSys_Generation.Heater_control_case_004.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_Generation.Heater_control_case_004.pipe >> ../files/AES_AES.Coursework.ThermSys_Generation.Heater_control_case_004.sim & ./AES_AES.Coursework.ThermSys_Generation.Heater_control_case_004 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_Generation.Heater_control_case_004.pipe 2>&1)