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.001239/0.001239, allocations: 103.5 kB / 15.99 MB, free: 6.348 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.001312/0.001312, allocations: 194.4 kB / 16.91 MB, free: 6.188 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.219/1.219, allocations: 222.9 MB / 240.6 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08373/0.08373, allocations: 22.32 MB / 313.1 MB, free: 9.145 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001303/0.001303, allocations: 65.73 kB / 380.9 MB, free: 41.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07394/0.07526, allocations: 54.96 MB / 435.9 MB, free: 13.55 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Generation.Heater_control_case_004): time 0.004786/0.08008, allocations: 4.577 MB / 440.4 MB, free: 8.945 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002123/0.08223, allocations: 1.286 MB / 441.7 MB, free: 7.652 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003229/0.0826, allocations: 19.88 kB / 441.8 MB, free: 7.633 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002986/0.08291, allocations: 127.1 kB / 441.9 MB, free: 7.508 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005998/0.08352, allocations: 401.9 kB / 442.3 MB, free: 7.113 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006193/0.08415, allocations: 283.7 kB / 442.5 MB, free: 6.836 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001658/0.08581, allocations: 2.177 MB / 444.7 MB, free: 4.652 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001507/0.08733, allocations: 1.602 MB / 446.3 MB, free: 3.008 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007847/0.08813, allocations: 0.8416 MB / 447.2 MB, free: 2.164 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001047/0.08918, allocations: 1.06 MB / 448.2 MB, free: 1.102 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002328/0.08942, allocations: 228 kB / 448.4 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000272/0.0897, allocations: 232 kB / 448.7 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004832/0.09019, allocations: 0.6899 MB / 449.4 MB, free: 15.96 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000736/0.09094, allocations: 0.9182 MB / 450.3 MB, free: 15.04 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001418/0.09236, allocations: 2.105 MB / 452.4 MB, free: 12.93 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.09237, allocations: 0 / 452.4 MB, free: 12.93 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.09238, allocations: 0 / 452.4 MB, free: 12.93 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.785e-05/0.09241, allocations: 0 / 452.4 MB, free: 12.93 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.003896/0.09631, allocations: 2.012 MB / 454.4 MB, free: 10.86 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.534e-05/0.09635, allocations: 12.03 kB / 454.4 MB, free: 10.85 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002527/0.09661, allocations: 151.2 kB / 454.6 MB, free: 10.7 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001101/0.09772, allocations: 0.8642 MB / 455.4 MB, free: 9.789 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.651e-05/0.09782, allocations: 116.6 kB / 455.5 MB, free: 9.668 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002075/0.09804, allocations: 140.2 kB / 455.7 MB, free: 9.531 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002347/0.1004, allocations: 1.589 MB / 457.3 MB, free: 7.914 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.51e-05/0.1004, allocations: 0 / 457.3 MB, free: 7.914 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001303/0.1006, allocations: 48 kB / 457.3 MB, free: 7.867 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.921e-05/0.1006, allocations: 28 kB / 457.3 MB, free: 7.84 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002065/0.1027, allocations: 1.419 MB / 458.8 MB, free: 6.414 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008558/0.1112, allocations: 7.113 MB / 465.9 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004538/0.1158, allocations: 1.877 MB / 467.7 MB, free: 12.91 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001007/0.1168, allocations: 0.7347 MB / 468.5 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.797e-05/0.1169, allocations: 20.98 kB / 468.5 MB, free: 12.16 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.753e-05/0.1169, allocations: 47.48 kB / 468.5 MB, free: 12.1 MB / 350.1 MB Notification: Performance of pre-optimization done (n=103): time 2.966e-06/0.1169, allocations: 0 / 468.5 MB, free: 12.1 MB / 350.1 MB Notification: Performance of matching and sorting (n=103): time 0.006578/0.1235, allocations: 3.924 MB / 472.5 MB, free: 7.852 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.746e-05/0.1236, allocations: 64.41 kB / 472.5 MB, free: 7.777 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000862/0.1245, allocations: 0.6838 MB / 473.2 MB, free: 7.082 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001024/0.1246, allocations: 45.7 kB / 473.3 MB, free: 7.031 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002905/0.1249, allocations: 0.5032 MB / 473.8 MB, free: 6.52 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003643/0.1252, allocations: 422 kB / 474.2 MB, free: 6.102 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00041/0.1257, allocations: 247.5 kB / 474.4 MB, free: 5.852 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001544/0.1258, allocations: 414.7 kB / 474.8 MB, free: 5.438 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001192/0.127, allocations: 0.8383 MB / 475.7 MB, free: 4.598 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001284/0.1283, allocations: 1.001 MB / 476.7 MB, free: 3.535 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01288/0.1412, allocations: 4.471 MB / 481.1 MB, free: 14.99 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.784e-06/0.1412, allocations: 4 kB / 481.1 MB, free: 14.99 MB / 366.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004476/0.1457, allocations: 2.468 MB / 483.6 MB, free: 12.46 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.388e-05/0.1458, allocations: 9.875 kB / 483.6 MB, free: 12.46 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.296e-05/0.1458, allocations: 4 kB / 483.6 MB, free: 12.45 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001715/0.1475, allocations: 0.5395 MB / 484.2 MB, free: 11.87 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001767/0.1493, allocations: 403.5 kB / 484.6 MB, free: 11.47 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01496/0.1642, allocations: 23.06 MB / 0.4957 GB, free: 2.25 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00122/0.1655, allocations: 166.7 kB / 0.4959 GB, free: 2.086 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002168/0.1657, allocations: 47.98 kB / 0.4959 GB, free: 2.039 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.000798/0.1665, allocations: 421.3 kB / 0.4963 GB, free: 1.617 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002388/0.1668, allocations: 90.88 kB / 0.4964 GB, free: 1.527 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003468/0.1703, allocations: 1.987 MB / 0.4983 GB, free: 15.47 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.197e-06/0.1703, allocations: 12 kB / 0.4984 GB, free: 15.46 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.288e-05/0.1703, allocations: 8 kB / 0.4984 GB, free: 15.45 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.438e-06/0.1703, allocations: 3.984 kB / 0.4984 GB, free: 15.45 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005652/0.176, allocations: 3.711 MB / 0.502 GB, free: 11.61 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.43e-06/0.176, allocations: 4.188 kB / 0.502 GB, free: 11.61 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001982/0.178, allocations: 343.6 kB / 0.5023 GB, free: 11.27 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001304/0.1793, allocations: 488.5 kB / 0.5028 GB, free: 10.75 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001586/0.1795, allocations: 67.95 kB / 0.5029 GB, free: 10.68 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1608/0.3403, allocations: 22.16 MB / 0.5245 GB, free: 68.18 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/0.3403, allocations: 6.5 kB / 0.5245 GB, free: 68.18 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003902/0.3442, allocations: 2.728 MB / 0.5272 GB, free: 67.82 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002283/0.3445, allocations: 198.1 kB / 0.5274 GB, free: 67.72 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001775/0.3447, allocations: 57.59 kB / 0.5274 GB, free: 67.72 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007699/0.3454, allocations: 75.58 kB / 0.5275 GB, free: 67.72 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002507/0.3457, allocations: 100.7 kB / 0.5276 GB, free: 67.72 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.87e-05/0.3458, allocations: 27.72 kB / 0.5276 GB, free: 67.72 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004901/0.3463, allocations: 479.1 kB / 0.5281 GB, free: 67.62 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3463, allocations: 0 / 0.5281 GB, free: 67.62 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001292/0.3476, allocations: 0.5019 MB / 0.5286 GB, free: 67.62 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.0002203/0.3478, allocations: 177.4 kB / 0.5287 GB, free: 67.53 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004425/0.3522, allocations: 3.994 MB / 0.5326 GB, free: 65.87 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.3523, allocations: 4.719 kB / 0.5326 GB, free: 65.87 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002085/0.3544, allocations: 2.456 MB / 0.535 GB, free: 64.22 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001098/0.3555, allocations: 318.3 kB / 0.5353 GB, free: 64.2 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008359/0.3638, allocations: 6.193 MB / 0.5414 GB, free: 61.11 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008451/0.3647, allocations: 1.279 MB / 0.5426 GB, free: 60.38 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004845/0.3652, allocations: 87.89 kB / 0.5427 GB, free: 60.38 MB / 398.1 MB Notification: Performance of SimCode: time 7.61e-07/0.3652, allocations: 0 / 0.5427 GB, free: 60.38 MB / 398.1 MB Notification: Performance of Templates: time 0.05444/0.4196, allocations: 81.7 MB / 0.6225 GB, free: 1.711 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)