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.001287/0.001287, allocations: 105.7 kB / 16.27 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.001287/0.001288, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.341/1.341, allocations: 222.9 MB / 240.9 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09222/0.09222, allocations: 22.32 MB / 313.4 MB, free: 8.875 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001317/0.001318, allocations: 66.86 kB / 381.4 MB, free: 41.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08014/0.08148, allocations: 54.96 MB / 436.4 MB, free: 12.97 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Generation.Heater_control_case_004): time 0.005042/0.08655, allocations: 4.403 MB / 440.8 MB, free: 8.539 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001909/0.08848, allocations: 1.271 MB / 442.1 MB, free: 7.262 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002371/0.08873, allocations: 15.88 kB / 442.1 MB, free: 7.246 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003084/0.08906, allocations: 170.5 kB / 442.3 MB, free: 7.078 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006224/0.08969, allocations: 437.4 kB / 442.7 MB, free: 6.648 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006255/0.09032, allocations: 307.6 kB / 443 MB, free: 6.348 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001754/0.09209, allocations: 2.169 MB / 445.2 MB, free: 4.172 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001552/0.09365, allocations: 1.602 MB / 446.8 MB, free: 2.527 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000806/0.09447, allocations: 0.8378 MB / 447.6 MB, free: 1.688 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001067/0.09554, allocations: 0.9737 MB / 448.6 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002908/0.09584, allocations: 232 kB / 448.8 MB, free: 496 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003377/0.09619, allocations: 228 kB / 449 MB, free: 268 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005551/0.09675, allocations: 0.6976 MB / 449.7 MB, free: 15.56 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008472/0.09761, allocations: 0.9184 MB / 450.6 MB, free: 14.64 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001946/0.09956, allocations: 2.548 MB / 453.2 MB, free: 12.08 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.121e-06/0.09958, allocations: 3.984 kB / 453.2 MB, free: 12.08 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.09958, allocations: 0 / 453.2 MB, free: 12.08 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.695e-05/0.09962, allocations: 0 / 453.2 MB, free: 12.08 MB / 334.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.004181/0.1038, allocations: 2.008 MB / 455.2 MB, free: 10.02 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.517e-05/0.1039, allocations: 12.03 kB / 455.2 MB, free: 10 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002654/0.1041, allocations: 151.2 kB / 455.4 MB, free: 9.855 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001206/0.1053, allocations: 0.8641 MB / 456.2 MB, free: 8.949 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001112/0.1055, allocations: 120.6 kB / 456.3 MB, free: 8.824 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002261/0.1057, allocations: 136.2 kB / 456.5 MB, free: 8.691 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002516/0.1082, allocations: 1.589 MB / 458.1 MB, free: 7.074 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.351e-05/0.1083, allocations: 4 kB / 458.1 MB, free: 7.07 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001422/0.1084, allocations: 48 kB / 458.1 MB, free: 7.023 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.234e-05/0.1084, allocations: 31.94 kB / 458.1 MB, free: 6.992 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002298/0.1107, allocations: 1.407 MB / 459.6 MB, free: 5.578 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009715/0.1205, allocations: 7.136 MB / 466.7 MB, free: 13.94 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004777/0.1253, allocations: 1.878 MB / 468.6 MB, free: 12.05 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001142/0.1264, allocations: 0.7386 MB / 469.3 MB, free: 11.31 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.114e-05/0.1265, allocations: 20.91 kB / 469.3 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.862e-05/0.1265, allocations: 43.56 kB / 469.4 MB, free: 11.24 MB / 350.1 MB Notification: Performance of pre-optimization done (n=103): time 3.126e-06/0.1266, allocations: 4 kB / 469.4 MB, free: 11.24 MB / 350.1 MB Notification: Performance of matching and sorting (n=103): time 0.007116/0.1337, allocations: 3.936 MB / 473.3 MB, free: 6.973 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.689e-05/0.1337, allocations: 60.41 kB / 473.4 MB, free: 6.902 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008368/0.1346, allocations: 0.68 MB / 474.1 MB, free: 6.211 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.54e-05/0.1347, allocations: 41.7 kB / 474.1 MB, free: 6.164 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003277/0.135, allocations: 0.4993 MB / 474.6 MB, free: 5.656 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003842/0.1354, allocations: 426 kB / 475 MB, free: 5.234 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004228/0.1358, allocations: 239.5 kB / 475.2 MB, free: 4.992 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001922/0.136, allocations: 414.7 kB / 475.6 MB, free: 4.578 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001266/0.1373, allocations: 0.8461 MB / 476.5 MB, free: 3.73 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001364/0.1387, allocations: 1.001 MB / 477.5 MB, free: 2.668 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01359/0.1523, allocations: 4.478 MB / 482 MB, free: 14.11 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.053e-06/0.1523, allocations: 4 kB / 482 MB, free: 14.11 MB / 366.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004517/0.1568, allocations: 2.468 MB / 484.4 MB, free: 11.58 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.965e-05/0.1569, allocations: 4 kB / 484.4 MB, free: 11.58 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.17e-05/0.1569, allocations: 8 kB / 484.5 MB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001799/0.1587, allocations: 0.5317 MB / 485 MB, free: 10.99 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001844/0.1605, allocations: 407.5 kB / 485.4 MB, free: 10.59 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01683/0.1774, allocations: 23.05 MB / 0.4965 GB, free: 1.387 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001243/0.1787, allocations: 150.8 kB / 0.4967 GB, free: 1.238 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001099/0.1788, allocations: 47.98 kB / 0.4967 GB, free: 1.191 MB / 382.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.0007503/0.1795, allocations: 430 kB / 0.4971 GB, free: 0.7617 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001788/0.1797, allocations: 90.88 kB / 0.4972 GB, free: 0.6719 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003656/0.1834, allocations: 1.99 MB / 0.4991 GB, free: 14.62 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.033e-05/0.1834, allocations: 12 kB / 0.4992 GB, free: 14.61 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.423e-06/0.1834, allocations: 4 kB / 0.4992 GB, free: 14.6 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.006e-05/0.1834, allocations: 3.984 kB / 0.4992 GB, free: 14.6 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00573/0.1892, allocations: 3.708 MB / 0.5028 GB, free: 10.76 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.954e-06/0.1892, allocations: 8 kB / 0.5028 GB, free: 10.75 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002002/0.1912, allocations: 347.6 kB / 0.5031 GB, free: 10.41 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001312/0.1925, allocations: 480.6 kB / 0.5036 GB, free: 9.898 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001324/0.1927, allocations: 67.97 kB / 0.5036 GB, free: 9.832 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1786/0.3713, allocations: 22.16 MB / 0.5253 GB, free: 67.04 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.3714, allocations: 4.438 kB / 0.5253 GB, free: 67.04 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004271/0.3756, allocations: 2.729 MB / 0.528 GB, free: 66.68 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00023/0.3759, allocations: 196.2 kB / 0.5281 GB, free: 66.59 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001971/0.3761, allocations: 65.28 kB / 0.5282 GB, free: 66.59 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007368/0.3768, allocations: 60.53 kB / 0.5283 GB, free: 66.59 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002671/0.3771, allocations: 91 kB / 0.5283 GB, free: 66.59 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.493e-05/0.3772, allocations: 34.52 kB / 0.5284 GB, free: 66.59 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000568/0.3778, allocations: 475.5 kB / 0.5288 GB, free: 66.49 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3778, allocations: 0 / 0.5288 GB, free: 66.49 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001426/0.3792, allocations: 0.4963 MB / 0.5293 GB, free: 66.49 MB / 398.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.0002286/0.3794, allocations: 180.2 kB / 0.5295 GB, free: 66.39 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004763/0.3842, allocations: 3.998 MB / 0.5334 GB, free: 64.73 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/0.3842, allocations: 2.109 kB / 0.5334 GB, free: 64.73 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002199/0.3864, allocations: 2.454 MB / 0.5358 GB, free: 63.09 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001149/0.3876, allocations: 326.4 kB / 0.5361 GB, free: 63.07 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008462/0.3961, allocations: 5.689 MB / 0.5417 GB, free: 60.53 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008505/0.3969, allocations: 1.279 MB / 0.5429 GB, free: 59.8 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004901/0.3974, allocations: 84.06 kB / 0.543 GB, free: 59.8 MB / 398.1 MB Notification: Performance of SimCode: time 8.02e-07/0.3974, allocations: 0 / 0.543 GB, free: 59.8 MB / 398.1 MB Notification: Performance of Templates: time 0.05753/0.455, allocations: 81.68 MB / 0.6228 GB, free: 1.09 MB / 414.1 MB 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)