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: "" <> buildModelFMU(AES.Coursework.ThermSys_Generation.Heater_control_case_003,fileNamePrefix="AES_AES_Coursework_ThermSys_Generation_Heater_control_case_003",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_Generation.Heater_control_case_003,fileNamePrefix="AES_AES_Coursework_ThermSys_Generation_Heater_control_case_003",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00541/0.00541, allocations: 104.4 kB / 15.74 MB, free: 5.949 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.001107/0.001107, allocations: 192.3 kB / 16.67 MB, free: 5.871 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.379/1.379, 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.09336/0.09336, allocations: 22.34 MB / 312.9 MB, free: 8.887 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002132/0.002132, allocations: 67.89 kB / 436.5 MB, free: 12.28 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1515/0.1536, allocations: 54.95 MB / 491.5 MB, free: 5.285 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Generation.Heater_control_case_003): time 0.006515/0.1602, allocations: 4.386 MB / 495.9 MB, free: 0.8672 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002314/0.1625, allocations: 1.267 MB / 497.1 MB, free: 15.59 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003112/0.1629, allocations: 19.88 kB / 497.2 MB, free: 15.57 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003349/0.1632, allocations: 166.6 kB / 497.3 MB, free: 15.41 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006383/0.1639, allocations: 429.5 kB / 497.7 MB, free: 14.99 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007126/0.1646, allocations: 307.6 kB / 498 MB, free: 14.69 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001958/0.1666, allocations: 2.15 MB / 0.4885 GB, free: 12.53 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001815/0.1684, allocations: 1.61 MB / 0.49 GB, free: 10.88 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001049/0.1695, allocations: 0.8223 MB / 0.4908 GB, free: 10.05 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001272/0.1708, allocations: 0.9738 MB / 0.4918 GB, free: 9.078 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002779/0.171, allocations: 236 kB / 0.492 GB, free: 8.848 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003123/0.1714, allocations: 243.9 kB / 0.4922 GB, free: 8.609 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005497/0.1719, allocations: 0.6937 MB / 0.4929 GB, free: 7.914 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008668/0.1728, allocations: 0.9222 MB / 0.4938 GB, free: 6.988 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002052/0.1749, allocations: 2.59 MB / 0.4964 GB, free: 4.391 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.1749, allocations: 0 / 0.4964 GB, free: 4.391 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.684e-06/0.1749, allocations: 4 kB / 0.4964 GB, free: 4.387 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.402e-05/0.1749, allocations: 0 / 0.4964 GB, free: 4.387 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.00434/0.1793, allocations: 2.01 MB / 0.4983 GB, free: 2.324 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.873e-05/0.1793, allocations: 8.031 kB / 0.4983 GB, free: 2.316 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002254/0.1796, allocations: 185.7 kB / 0.4985 GB, free: 2.125 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002724/0.1798, allocations: 151.2 kB / 0.4987 GB, free: 1.977 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001445/0.1813, allocations: 0.8641 MB / 0.4995 GB, free: 1.07 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001033/0.1814, allocations: 120.6 kB / 0.4996 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000268/0.1817, allocations: 140.2 kB / 0.4997 GB, free: 0.8086 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2708/0.4525, allocations: 1.58 MB / 0.5013 GB, free: 20.9 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.607e-05/0.4525, allocations: 2.031 kB / 0.5013 GB, free: 20.9 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001191/0.4527, allocations: 47.38 kB / 0.5013 GB, free: 20.9 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.55e-05/0.4527, allocations: 27.88 kB / 0.5014 GB, free: 20.9 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002303/0.455, allocations: 1.422 MB / 0.5028 GB, free: 20.89 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01142/0.4665, allocations: 7.111 MB / 0.5097 GB, free: 18.22 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005112/0.4716, allocations: 1.889 MB / 0.5115 GB, free: 18.2 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00139/0.473, allocations: 0.7241 MB / 0.5122 GB, free: 18.18 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.12e-05/0.4731, allocations: 14.42 kB / 0.5123 GB, free: 18.18 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.746e-05/0.4732, allocations: 43.39 kB / 0.5123 GB, free: 18.14 MB / 382.1 MB Notification: Performance of pre-optimization done (n=102): time 4.309e-06/0.4732, allocations: 3.188 kB / 0.5123 GB, free: 18.14 MB / 382.1 MB Notification: Performance of matching and sorting (n=102): time 0.007224/0.4804, allocations: 3.934 MB / 0.5161 GB, free: 16.22 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.676e-05/0.4805, allocations: 69 kB / 0.5162 GB, free: 16.15 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001073/0.4816, allocations: 0.6846 MB / 0.5169 GB, free: 15.84 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001566/0.4817, allocations: 45.7 kB / 0.5169 GB, free: 15.79 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003406/0.4821, allocations: 0.5128 MB / 0.5174 GB, free: 15.39 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004438/0.4825, allocations: 410.3 kB / 0.5178 GB, free: 15.08 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005223/0.4831, allocations: 233.3 kB / 0.518 GB, free: 14.97 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001779/0.4832, allocations: 413.8 kB / 0.5184 GB, free: 14.62 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001654/0.4849, allocations: 0.8519 MB / 0.5193 GB, free: 14.27 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001458/0.4864, allocations: 0.998 MB / 0.5202 GB, free: 13.75 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0133/0.4997, allocations: 4.449 MB / 0.5246 GB, free: 12.09 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.32e-05/0.4997, allocations: 1.094 kB / 0.5246 GB, free: 12.09 MB / 382.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.004576/0.5043, allocations: 2.468 MB / 0.527 GB, free: 10.73 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.862e-05/0.5044, allocations: 8 kB / 0.527 GB, free: 10.73 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.579e-05/0.5044, allocations: 4.562 kB / 0.527 GB, free: 10.73 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001697/0.5061, allocations: 0.5434 MB / 0.5275 GB, free: 10.39 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001784/0.5079, allocations: 391.1 kB / 0.5279 GB, free: 10.3 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01443/0.5224, allocations: 23.05 MB / 0.5504 GB, free: 3.109 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001427/0.5238, allocations: 140.5 kB / 0.5506 GB, free: 3.012 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001522/0.524, allocations: 53.08 kB / 0.5506 GB, free: 2.996 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.0008902/0.5249, allocations: 419.9 kB / 0.551 GB, free: 2.688 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002169/0.5251, allocations: 94.34 kB / 0.5511 GB, free: 2.641 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003413/0.5285, allocations: 1.98 MB / 0.553 GB, free: 1.414 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.728e-06/0.5285, allocations: 11.59 kB / 0.553 GB, free: 1.414 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.297e-05/0.5286, allocations: 3.938 kB / 0.553 GB, free: 1.414 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.231e-05/0.5286, allocations: 3.984 kB / 0.553 GB, free: 1.41 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005722/0.5343, allocations: 3.559 MB / 0.5565 GB, free: 13.77 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.753e-06/0.5344, allocations: 0 / 0.5565 GB, free: 13.77 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001958/0.5363, allocations: 335.6 kB / 0.5568 GB, free: 13.44 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001331/0.5377, allocations: 476.8 kB / 0.5573 GB, free: 12.93 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001849/0.5379, allocations: 70.95 kB / 0.5574 GB, free: 12.86 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01499/0.5529, allocations: 22.16 MB / 0.579 GB, free: 4.602 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.619e-06/0.5529, allocations: 3.938 kB / 0.579 GB, free: 4.598 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004836/0.5578, allocations: 2.732 MB / 0.5817 GB, free: 1.781 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004034/0.5582, allocations: 195.7 kB / 0.5819 GB, free: 1.57 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002158/0.5584, allocations: 63.97 kB / 0.5819 GB, free: 1.508 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007349/0.5592, allocations: 55.88 kB / 0.582 GB, free: 1.453 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003086/0.5595, allocations: 100.8 kB / 0.5821 GB, free: 1.355 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.464e-05/0.5596, allocations: 27.98 kB / 0.5821 GB, free: 1.328 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0005991/0.5602, allocations: 483 kB / 0.5826 GB, free: 0.8594 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.5602, allocations: 0 / 0.5826 GB, free: 0.8594 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001662/0.5619, allocations: 0.4991 MB / 0.5831 GB, free: 368 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.004894/0.5668, allocations: 3.349 MB / 0.5863 GB, free: 12.91 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004598/0.5714, allocations: 3.425 MB / 0.5897 GB, free: 9.297 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.961e-06/0.5714, allocations: 0 / 0.5897 GB, free: 9.297 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003041/0.5745, allocations: 2.459 MB / 0.5921 GB, free: 6.645 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001558/0.5761, allocations: 317.4 kB / 0.5924 GB, free: 6.344 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02463/0.6007, allocations: 15.46 MB / 0.6075 GB, free: 6.559 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009711/0.6017, allocations: 1.268 MB / 0.6087 GB, free: 5.262 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001131/0.6029, allocations: 355.6 kB / 0.609 GB, free: 4.91 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007077/0.6036, allocations: 459.3 kB / 0.6095 GB, free: 4.465 MB / 462.1 MB Notification: Performance of SimCode: time 1.152e-06/0.6036, allocations: 0 / 0.6095 GB, free: 4.465 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09125/0.6949, allocations: 34.98 MB / 0.6436 GB, free: 1.848 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.41/14.1, allocations: 7.609 kB / 0.6437 GB, free: 1.84 MB / 494.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_Generation_Heater_control_case_003_fmu --startTime=0 --stopTime=10000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_Generation_Heater_control_case_003.fmu > AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003.pipe 2>&1)