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.01079/0.01079, allocations: 99.44 kB / 15.73 MB, free: 6.016 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.001928/0.001928, allocations: 191.6 kB / 16.67 MB, free: 5.949 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.656/1.656, allocations: 222.9 MB / 240.3 MB, free: 4.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2444/0.2444, allocations: 22.36 MB / 312.9 MB, free: 12.51 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001269/0.00127, allocations: 56.84 kB / 437.1 MB, free: 33.84 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1484/0.1497, allocations: 54.96 MB / 492 MB, free: 1.258 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Generation.Heater_control_case_004): time 0.005359/0.1551, allocations: 4.422 MB / 496.4 MB, free: 12.8 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00304/0.1581, allocations: 1.271 MB / 497.7 MB, free: 11.52 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004866/0.1586, allocations: 15.88 kB / 497.7 MB, free: 11.51 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004229/0.1591, allocations: 166.6 kB / 497.9 MB, free: 11.34 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007973/0.1599, allocations: 437.5 kB / 498.3 MB, free: 10.91 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008985/0.1608, allocations: 315.4 kB / 498.6 MB, free: 10.61 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002253/0.1631, allocations: 2.173 MB / 0.4891 GB, free: 8.426 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002136/0.1652, allocations: 1.598 MB / 0.4906 GB, free: 6.785 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001228/0.1665, allocations: 0.8457 MB / 0.4915 GB, free: 5.938 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001331/0.1678, allocations: 0.9776 MB / 0.4924 GB, free: 4.957 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002943/0.1681, allocations: 232 kB / 0.4926 GB, free: 4.73 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003644/0.1685, allocations: 228 kB / 0.4928 GB, free: 4.508 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006323/0.1691, allocations: 0.6937 MB / 0.4935 GB, free: 3.812 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009135/0.1701, allocations: 0.9184 MB / 0.4944 GB, free: 2.891 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002248/0.1723, allocations: 2.571 MB / 0.4969 GB, free: 320 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.1723, allocations: 0 / 0.4969 GB, free: 320 kB / 366.1 MB Notification: Performance of FrontEnd: time 3.095e-06/0.1724, allocations: 0 / 0.4969 GB, free: 320 kB / 366.1 MB Notification: Performance of Transformations before backend: time 3.895e-05/0.1724, allocations: 0 / 0.4969 GB, free: 320 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.004972/0.1774, allocations: 2.012 MB / 0.4989 GB, free: 14.25 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.33e-05/0.1774, allocations: 8.031 kB / 0.4989 GB, free: 14.24 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003195/0.1778, allocations: 147.2 kB / 0.499 GB, free: 14.09 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001439/0.1792, allocations: 0.8719 MB / 0.4999 GB, free: 13.18 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001259/0.1793, allocations: 116.6 kB / 0.5 GB, free: 13.06 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002381/0.1796, allocations: 136.3 kB / 0.5001 GB, free: 12.93 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002658/0.1823, allocations: 1.589 MB / 0.5017 GB, free: 11.31 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.797e-05/0.1823, allocations: 3.938 kB / 0.5017 GB, free: 11.3 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001309/0.1824, allocations: 52 kB / 0.5017 GB, free: 11.25 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.116e-05/0.1825, allocations: 28 kB / 0.5018 GB, free: 11.23 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002285/0.1848, allocations: 1.407 MB / 0.5031 GB, free: 9.812 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01059/0.1954, allocations: 7.086 MB / 0.5101 GB, free: 2.215 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004747/0.2001, allocations: 1.879 MB / 0.5119 GB, free: 340 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001199/0.2014, allocations: 0.7422 MB / 0.5126 GB, free: 15.59 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.887e-05/0.2015, allocations: 12.98 kB / 0.5126 GB, free: 15.57 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.477e-05/0.2015, allocations: 51.55 kB / 0.5127 GB, free: 15.52 MB / 398.1 MB Notification: Performance of pre-optimization done (n=103): time 3.106e-06/0.2015, allocations: 0 / 0.5127 GB, free: 15.52 MB / 398.1 MB Notification: Performance of matching and sorting (n=103): time 0.007251/0.2088, allocations: 3.924 MB / 0.5165 GB, free: 11.26 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.106e-05/0.2089, allocations: 64.41 kB / 0.5166 GB, free: 11.18 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001219/0.2101, allocations: 0.6761 MB / 0.5172 GB, free: 10.5 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001057/0.2102, allocations: 49.69 kB / 0.5173 GB, free: 10.44 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003931/0.2106, allocations: 0.507 MB / 0.5178 GB, free: 9.926 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005065/0.2111, allocations: 418.1 kB / 0.5182 GB, free: 9.512 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005325/0.2117, allocations: 239.5 kB / 0.5184 GB, free: 9.273 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002357/0.2119, allocations: 414.7 kB / 0.5188 GB, free: 8.859 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001463/0.2134, allocations: 0.8468 MB / 0.5196 GB, free: 8.008 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001626/0.215, allocations: 1.004 MB / 0.5206 GB, free: 6.941 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01411/0.2292, allocations: 4.459 MB / 0.525 GB, free: 2.406 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.39e-05/0.2292, allocations: 0 / 0.525 GB, free: 2.406 MB / 398.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.005325/0.2346, allocations: 2.468 MB / 0.5274 GB, free: 15.88 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.912e-05/0.2346, allocations: 10.81 kB / 0.5274 GB, free: 15.88 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.975e-05/0.2346, allocations: 12.03 kB / 0.5274 GB, free: 15.86 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001946/0.2366, allocations: 0.5278 MB / 0.5279 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001966/0.2386, allocations: 411.5 kB / 0.5283 GB, free: 14.89 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01861/0.2572, allocations: 23.04 MB / 0.5508 GB, free: 5.68 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001697/0.2589, allocations: 142.6 kB / 0.5509 GB, free: 5.539 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000457/0.2594, allocations: 51.98 kB / 0.551 GB, free: 5.488 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.001453/0.2609, allocations: 437.8 kB / 0.5514 GB, free: 5.051 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004458/0.2613, allocations: 94.97 kB / 0.5515 GB, free: 4.957 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004071/0.2654, allocations: 1.987 MB / 0.5534 GB, free: 2.914 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.205e-05/0.2655, allocations: 11.94 kB / 0.5535 GB, free: 2.902 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.209e-05/0.2655, allocations: 4 kB / 0.5535 GB, free: 2.898 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.318e-05/0.2655, allocations: 7.984 kB / 0.5535 GB, free: 2.891 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006733/0.2722, allocations: 3.712 MB / 0.5571 GB, free: 15.05 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.017e-05/0.2723, allocations: 4 kB / 0.5571 GB, free: 15.05 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002018/0.2743, allocations: 343.6 kB / 0.5574 GB, free: 14.71 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001405/0.2757, allocations: 484.7 kB / 0.5579 GB, free: 14.19 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001733/0.2759, allocations: 71.97 kB / 0.558 GB, free: 14.12 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01675/0.2927, allocations: 22.15 MB / 0.5796 GB, free: 5.867 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.729e-06/0.2927, allocations: 4 kB / 0.5796 GB, free: 5.863 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0063/0.299, allocations: 2.728 MB / 0.5822 GB, free: 3.047 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006021/0.2997, allocations: 195.7 kB / 0.5824 GB, free: 2.836 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004373/0.3001, allocations: 67.97 kB / 0.5825 GB, free: 2.77 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001109/0.3012, allocations: 51.94 kB / 0.5826 GB, free: 2.719 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004161/0.3017, allocations: 96.75 kB / 0.5826 GB, free: 2.625 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001301/0.3018, allocations: 31.98 kB / 0.5827 GB, free: 2.594 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0008847/0.3027, allocations: 479 kB / 0.5831 GB, free: 2.125 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3027, allocations: 0 / 0.5831 GB, free: 2.125 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002288/0.305, allocations: 0.4951 MB / 0.5836 GB, free: 1.629 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.0003665/0.3054, allocations: 192.1 kB / 0.5838 GB, free: 1.43 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.2956/0.601, allocations: 3.419 MB / 0.5871 GB, free: 96.4 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 9.859e-06/0.601, allocations: 3.25 kB / 0.5871 GB, free: 96.4 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002558/0.6036, allocations: 2.461 MB / 0.5895 GB, free: 94.76 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00143/0.605, allocations: 311.4 kB / 0.5898 GB, free: 94.76 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008169/0.6132, allocations: 5.537 MB / 0.5952 GB, free: 92.37 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009694/0.6142, allocations: 1.28 MB / 0.5965 GB, free: 91.64 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001354/0.6156, allocations: 366.6 kB / 0.5968 GB, free: 91.6 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003267/0.6159, allocations: 75.61 kB / 0.5969 GB, free: 91.59 MB / 462.1 MB Notification: Performance of SimCode: time 1.072e-06/0.616, allocations: 0.9375 kB / 0.5969 GB, free: 91.59 MB / 462.1 MB Notification: Performance of Templates: time 0.03164/0.6476, allocations: 23.19 MB / 0.6196 GB, free: 78.53 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)