Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.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_component_models.Controlled_heater_case_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002") translateModel(AES.Coursework.ThermSys_component_models.Controlled_heater_case_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0076/0.0076, allocations: 103.2 kB / 15.73 MB, free: 6.004 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.001416/0.001416, allocations: 188.6 kB / 16.67 MB, free: 5.93 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.499/1.499, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09745/0.09745, allocations: 22.33 MB / 312.8 MB, free: 8.844 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001215/0.001215, allocations: 63.91 kB / 437 MB, free: 11.82 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1171/0.1183, allocations: 54.95 MB / 492 MB, free: 4.82 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_002): time 0.004987/0.1233, allocations: 3.353 MB / 495.3 MB, free: 1.441 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002108/0.1255, allocations: 0.9313 MB / 496.3 MB, free: 0.5039 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004821/0.126, allocations: 7.938 kB / 496.3 MB, free: 0.4961 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000382/0.1264, allocations: 99.16 kB / 496.4 MB, free: 408 kB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007509/0.1272, allocations: 266.4 kB / 496.6 MB, free: 140 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007462/0.128, allocations: 187.7 kB / 496.8 MB, free: 15.95 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001416/0.1294, allocations: 1.236 MB / 498.1 MB, free: 14.71 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001193/0.1306, allocations: 0.8824 MB / 498.9 MB, free: 13.82 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009108/0.1315, allocations: 486.8 kB / 499.4 MB, free: 13.34 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001372/0.1329, allocations: 0.5647 MB / 500 MB, free: 12.77 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004407/0.1334, allocations: 132 kB / 0.4884 GB, free: 12.64 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004451/0.1338, allocations: 132 kB / 0.4885 GB, free: 12.52 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005248/0.1344, allocations: 407 kB / 0.4889 GB, free: 12.12 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009327/0.1353, allocations: 0.5292 MB / 0.4894 GB, free: 11.59 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00136/0.1367, allocations: 1.457 MB / 0.4908 GB, free: 10.12 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.1367, allocations: 0 / 0.4908 GB, free: 10.12 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1367, allocations: 0 / 0.4908 GB, free: 10.12 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.374e-05/0.1367, allocations: 0 / 0.4908 GB, free: 10.12 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: 182 * Number of variables: 182 Notification: Performance of Generate backend data structure: time 0.003053/0.1398, allocations: 1.287 MB / 0.4921 GB, free: 8.789 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.475e-05/0.1398, allocations: 8.031 kB / 0.4921 GB, free: 8.781 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002342/0.1401, allocations: 91.91 kB / 0.4922 GB, free: 8.691 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008313/0.1409, allocations: 0.566 MB / 0.4927 GB, free: 8.086 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001113/0.141, allocations: 80.27 kB / 0.4928 GB, free: 8.004 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001559/0.1412, allocations: 80.28 kB / 0.4929 GB, free: 7.926 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001674/0.1429, allocations: 0.9288 MB / 0.4938 GB, free: 6.988 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.255e-05/0.1429, allocations: 0 / 0.4938 GB, free: 6.988 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.558e-05/0.143, allocations: 35.94 kB / 0.4938 GB, free: 6.953 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.773e-05/0.143, allocations: 16 kB / 0.4939 GB, free: 6.938 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001374/0.1444, allocations: 0.8043 MB / 0.4946 GB, free: 6.133 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005858/0.1503, allocations: 3.95 MB / 0.4985 GB, free: 1.906 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002929/0.1532, allocations: 1.033 MB / 0.4995 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006955/0.154, allocations: 414.4 kB / 0.4999 GB, free: 468 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.272e-05/0.154, allocations: 4.562 kB / 0.4999 GB, free: 464 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.52e-05/0.1541, allocations: 39.12 kB / 0.4999 GB, free: 416 kB / 382.1 MB Notification: Performance of pre-optimization done (n=58): time 2.916e-06/0.1541, allocations: 0 / 0.4999 GB, free: 416 kB / 382.1 MB Notification: Performance of matching and sorting (n=58): time 0.264/0.4181, allocations: 2.358 MB / 0.5022 GB, free: 21.17 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.631e-05/0.4182, allocations: 68.81 kB / 0.5023 GB, free: 21.11 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005228/0.4187, allocations: 417.4 kB / 0.5027 GB, free: 21 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.946e-05/0.4188, allocations: 33.33 kB / 0.5027 GB, free: 20.96 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001951/0.419, allocations: 322.7 kB / 0.5031 GB, free: 20.86 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001959/0.4192, allocations: 232 kB / 0.5033 GB, free: 20.71 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002208/0.4194, allocations: 123.4 kB / 0.5034 GB, free: 20.7 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000103/0.4195, allocations: 372.9 kB / 0.5037 GB, free: 20.39 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000623/0.4202, allocations: 454.5 kB / 0.5042 GB, free: 20.38 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006462/0.4208, allocations: 0.492 MB / 0.5047 GB, free: 20.31 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006866/0.4277, allocations: 2.352 MB / 0.507 GB, free: 20.23 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.644e-06/0.4277, allocations: 0.875 kB / 0.507 GB, free: 20.23 MB / 382.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.002619/0.4303, allocations: 1.344 MB / 0.5083 GB, free: 20.05 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.348e-05/0.4304, allocations: 6.266 kB / 0.5083 GB, free: 20.05 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.366e-06/0.4304, allocations: 1.438 kB / 0.5083 GB, free: 20.05 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001075/0.4315, allocations: 342 kB / 0.5086 GB, free: 19.96 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008838/0.4324, allocations: 187.8 kB / 0.5088 GB, free: 19.96 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009414/0.4418, allocations: 15.15 MB / 0.5236 GB, free: 6.266 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007459/0.4426, allocations: 67.8 kB / 0.5236 GB, free: 6.238 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.319e-05/0.4426, allocations: 22.31 kB / 0.5237 GB, free: 6.238 MB / 382.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: 7 * 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 (79): * Single equations (assignments): 69 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 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%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006207/0.4433, allocations: 286.7 kB / 0.5239 GB, free: 6.105 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001155/0.4434, allocations: 57.36 kB / 0.524 GB, free: 6.074 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002245/0.4456, allocations: 1.138 MB / 0.5251 GB, free: 5.914 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.013e-05/0.4457, allocations: 7.344 kB / 0.5251 GB, free: 5.914 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.074e-06/0.4457, allocations: 3.781 kB / 0.5251 GB, free: 5.914 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.097e-05/0.4457, allocations: 5.281 kB / 0.5251 GB, free: 5.914 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003676/0.4494, allocations: 2.117 MB / 0.5272 GB, free: 5.172 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.102e-06/0.4494, allocations: 2.109 kB / 0.5272 GB, free: 5.172 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001095/0.4505, allocations: 166.4 kB / 0.5273 GB, free: 5.164 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00105/0.4515, allocations: 306.8 kB / 0.5276 GB, free: 5.016 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000112/0.4517, allocations: 31.19 kB / 0.5277 GB, free: 5.004 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01042/0.4621, allocations: 14.72 MB / 0.542 GB, free: 6.492 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/0.4621, allocations: 3.406 kB / 0.542 GB, free: 6.492 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003074/0.4652, allocations: 1.606 MB / 0.5436 GB, free: 5.652 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002098/0.4655, allocations: 142.1 kB / 0.5437 GB, free: 5.516 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001144/0.4656, allocations: 28.81 kB / 0.5438 GB, free: 5.504 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004591/0.466, allocations: 28.73 kB / 0.5438 GB, free: 5.496 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002055/0.4663, allocations: 57.33 kB / 0.5439 GB, free: 5.48 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.168e-05/0.4663, allocations: 22.81 kB / 0.5439 GB, free: 5.473 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004262/0.4667, allocations: 295.2 kB / 0.5442 GB, free: 5.32 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4668, allocations: 0 / 0.5442 GB, free: 5.32 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001235/0.468, allocations: 298.7 kB / 0.5444 GB, free: 5.262 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 22 (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]) * 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 (49): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 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%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002699/0.4683, allocations: 151.2 kB / 0.5446 GB, free: 5.148 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003114/0.4714, allocations: 2.036 MB / 0.5466 GB, free: 3.664 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.4714, allocations: 1.406 kB / 0.5466 GB, free: 3.664 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001869/0.4733, allocations: 1.559 MB / 0.5481 GB, free: 2.355 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008326/0.4741, allocations: 171.6 kB / 0.5483 GB, free: 2.305 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005329/0.4795, allocations: 3.027 MB / 0.5512 GB, free: 0.5469 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007623/0.4803, allocations: 1.01 MB / 0.5522 GB, free: 15.8 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0006433/0.4809, allocations: 169.3 kB / 0.5524 GB, free: 15.75 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002108/0.4811, allocations: 45.25 kB / 0.5524 GB, free: 15.74 MB / 414.1 MB Notification: Performance of SimCode: time 9.92e-07/0.4811, allocations: 1.469 kB / 0.5524 GB, free: 15.74 MB / 414.1 MB Notification: Performance of Templates: time 0.02632/0.5075, allocations: 13.11 MB / 0.5652 GB, free: 5.617 MB / 414.1 MB make -j1 -f AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.makefile (rm -f AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.sim & ./AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe 2>&1)