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.007758/0.007758, allocations: 114.3 kB / 15.71 MB, free: 6.484 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.001687/0.001688, allocations: 194 kB / 16.65 MB, free: 6.391 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.396/1.396, allocations: 222.9 MB / 240.3 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.241/0.241, allocations: 22.36 MB / 312.9 MB, free: 12.45 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001449/0.001449, allocations: 61.19 kB / 437 MB, free: 33.85 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09841/0.09987, allocations: 54.98 MB / 492 MB, free: 1.227 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Generation.Heater_control_case_004): time 0.004676/0.1046, allocations: 4.416 MB / 496.4 MB, free: 12.78 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002042/0.1066, allocations: 1.267 MB / 497.7 MB, free: 11.51 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002503/0.1069, allocations: 15.88 kB / 497.7 MB, free: 11.49 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003378/0.1073, allocations: 170.5 kB / 497.9 MB, free: 11.32 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006338/0.1079, allocations: 433.5 kB / 498.3 MB, free: 10.9 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006503/0.1086, allocations: 311.5 kB / 498.6 MB, free: 10.59 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001827/0.1104, allocations: 2.169 MB / 0.489 GB, free: 8.418 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001759/0.1122, allocations: 1.614 MB / 0.4906 GB, free: 6.762 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009417/0.1131, allocations: 0.8456 MB / 0.4914 GB, free: 5.914 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001136/0.1143, allocations: 0.9699 MB / 0.4924 GB, free: 4.941 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002591/0.1146, allocations: 232 kB / 0.4926 GB, free: 4.715 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000288/0.1148, allocations: 232 kB / 0.4928 GB, free: 4.488 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005383/0.1154, allocations: 0.6898 MB / 0.4935 GB, free: 3.797 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009195/0.1163, allocations: 0.9223 MB / 0.4944 GB, free: 2.871 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002109/0.1184, allocations: 2.563 MB / 0.4969 GB, free: 308 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.482e-06/0.1185, allocations: 4 kB / 0.4969 GB, free: 304 kB / 366.1 MB Notification: Performance of FrontEnd: time 2.544e-06/0.1185, allocations: 0 / 0.4969 GB, free: 304 kB / 366.1 MB Notification: Performance of Transformations before backend: time 4.749e-05/0.1185, allocations: 0 / 0.4969 GB, free: 304 kB / 366.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.005169/0.1237, allocations: 2.008 MB / 0.4988 GB, free: 14.23 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.969e-05/0.1238, allocations: 8.031 kB / 0.4989 GB, free: 14.23 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003057/0.1241, allocations: 155.2 kB / 0.499 GB, free: 14.07 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001374/0.1255, allocations: 0.868 MB / 0.4999 GB, free: 13.16 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001151/0.1256, allocations: 116.6 kB / 0.5 GB, free: 13.04 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002859/0.1259, allocations: 140.3 kB / 0.5001 GB, free: 12.91 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002686/0.1286, allocations: 1.589 MB / 0.5016 GB, free: 11.29 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.836e-05/0.1286, allocations: 0 / 0.5016 GB, free: 11.29 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000137/0.1288, allocations: 44 kB / 0.5017 GB, free: 11.25 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.393e-05/0.1288, allocations: 28 kB / 0.5017 GB, free: 11.22 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002358/0.1312, allocations: 1.407 MB / 0.5031 GB, free: 9.805 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01007/0.1412, allocations: 7.093 MB / 0.51 GB, free: 2.199 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004848/0.1461, allocations: 1.874 MB / 0.5118 GB, free: 328 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001209/0.1473, allocations: 0.7391 MB / 0.5126 GB, free: 15.57 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.415e-05/0.1474, allocations: 12.91 kB / 0.5126 GB, free: 15.57 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.581e-05/0.1475, allocations: 47.5 kB / 0.5126 GB, free: 15.51 MB / 398.1 MB Notification: Performance of pre-optimization done (n=103): time 2.705e-06/0.1475, allocations: 4 kB / 0.5126 GB, free: 15.51 MB / 398.1 MB Notification: Performance of matching and sorting (n=103): time 0.007354/0.1548, allocations: 3.924 MB / 0.5165 GB, free: 11.25 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.394e-05/0.1549, allocations: 60.41 kB / 0.5165 GB, free: 11.18 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009944/0.1559, allocations: 0.68 MB / 0.5172 GB, free: 10.49 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001201/0.1561, allocations: 41.7 kB / 0.5172 GB, free: 10.44 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000351/0.1564, allocations: 0.5109 MB / 0.5177 GB, free: 9.922 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004065/0.1568, allocations: 418.1 kB / 0.5181 GB, free: 9.508 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004288/0.1573, allocations: 243.5 kB / 0.5184 GB, free: 9.266 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001842/0.1575, allocations: 414.7 kB / 0.5188 GB, free: 8.852 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001301/0.1588, allocations: 0.8468 MB / 0.5196 GB, free: 8 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001421/0.1602, allocations: 0.9967 MB / 0.5206 GB, free: 6.941 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01373/0.1739, allocations: 4.47 MB / 0.5249 GB, free: 2.395 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.054e-05/0.174, allocations: 3.938 kB / 0.5249 GB, free: 2.391 MB / 398.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004778/0.1788, allocations: 2.468 MB / 0.5273 GB, free: 15.86 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.635e-05/0.1788, allocations: 8 kB / 0.5273 GB, free: 15.86 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.484e-05/0.1788, allocations: 4 kB / 0.5273 GB, free: 15.85 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001827/0.1807, allocations: 0.5395 MB / 0.5279 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0019/0.1826, allocations: 407.3 kB / 0.5283 GB, free: 14.87 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01735/0.1999, allocations: 23.04 MB / 0.5508 GB, free: 5.668 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001421/0.2014, allocations: 150.6 kB / 0.5509 GB, free: 5.52 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000335/0.2018, allocations: 48 kB / 0.5509 GB, free: 5.473 MB / 430.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.001079/0.2029, allocations: 437.9 kB / 0.5514 GB, free: 5.035 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000349/0.2032, allocations: 86.97 kB / 0.5514 GB, free: 4.949 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003882/0.2071, allocations: 1.986 MB / 0.5534 GB, free: 2.906 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.129e-05/0.2071, allocations: 12 kB / 0.5534 GB, free: 2.895 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.882e-05/0.2072, allocations: 7.984 kB / 0.5534 GB, free: 2.887 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.106e-05/0.2072, allocations: 3.984 kB / 0.5534 GB, free: 2.883 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006586/0.2138, allocations: 3.705 MB / 0.557 GB, free: 15.05 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.606e-06/0.2138, allocations: 4 kB / 0.557 GB, free: 15.05 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001986/0.2158, allocations: 347.9 kB / 0.5574 GB, free: 14.71 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001335/0.2171, allocations: 480.5 kB / 0.5578 GB, free: 14.2 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001568/0.2173, allocations: 67.95 kB / 0.5579 GB, free: 14.13 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01539/0.2327, allocations: 22.16 MB / 0.5795 GB, free: 5.863 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-06/0.2327, allocations: 7.938 kB / 0.5795 GB, free: 5.855 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005233/0.238, allocations: 2.74 MB / 0.5822 GB, free: 3.027 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000429/0.2384, allocations: 191.7 kB / 0.5824 GB, free: 2.82 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002512/0.2387, allocations: 55.98 kB / 0.5824 GB, free: 2.766 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008321/0.2395, allocations: 59.92 kB / 0.5825 GB, free: 2.707 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002945/0.2398, allocations: 96.75 kB / 0.5826 GB, free: 2.613 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.122e-05/0.2399, allocations: 35.98 kB / 0.5826 GB, free: 2.578 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0006475/0.2406, allocations: 475 kB / 0.5831 GB, free: 2.113 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2406, allocations: 0 / 0.5831 GB, free: 2.113 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001837/0.2425, allocations: 0.4951 MB / 0.5836 GB, free: 1.617 MB / 462.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.0003326/0.2428, allocations: 184.3 kB / 0.5837 GB, free: 1.426 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.243/0.4858, allocations: 3.419 MB / 0.5871 GB, free: 96.45 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.424e-06/0.4859, allocations: 0.9375 kB / 0.5871 GB, free: 96.45 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002537/0.4884, allocations: 2.453 MB / 0.5895 GB, free: 94.81 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001326/0.4897, allocations: 319.2 kB / 0.5898 GB, free: 94.8 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007702/0.4975, allocations: 5.549 MB / 0.5952 GB, free: 92.43 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001083/0.4986, allocations: 1.27 MB / 0.5964 GB, free: 91.7 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001316/0.4999, allocations: 371.2 kB / 0.5968 GB, free: 91.66 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003315/0.5002, allocations: 74.94 kB / 0.5969 GB, free: 91.65 MB / 462.1 MB Notification: Performance of SimCode: time 1.162e-06/0.5002, allocations: 0 / 0.5969 GB, free: 91.65 MB / 462.1 MB Notification: Performance of Templates: time 0.03387/0.5341, allocations: 22.75 MB / 0.6191 GB, free: 79 MB / 462.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)