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: translateModel(AES.Coursework.ThermSys_Generation.Heater_control_case_003,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003") translateModel(AES.Coursework.ThermSys_Generation.Heater_control_case_003,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01075/0.01075, allocations: 99.95 kB / 15.73 MB, free: 6.473 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.002119/0.00212, allocations: 194.8 kB / 16.67 MB, free: 6.379 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.489/1.489, allocations: 222.9 MB / 240.4 MB, free: 4.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2661/0.2661, allocations: 22.36 MB / 312.9 MB, free: 12.51 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001269/0.001269, allocations: 61.47 kB / 437.1 MB, free: 33.98 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.143/0.1443, allocations: 54.96 MB / 492 MB, free: 1.359 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Generation.Heater_control_case_003): time 0.005353/0.1497, allocations: 4.396 MB / 496.4 MB, free: 12.93 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002505/0.1523, allocations: 1.259 MB / 497.7 MB, free: 11.67 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002942/0.1526, allocations: 15.88 kB / 497.7 MB, free: 11.65 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003747/0.153, allocations: 166.6 kB / 497.9 MB, free: 11.49 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006925/0.1537, allocations: 437.5 kB / 498.3 MB, free: 11.06 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007985/0.1545, allocations: 299.6 kB / 498.6 MB, free: 10.77 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001981/0.1565, allocations: 2.158 MB / 0.489 GB, free: 8.602 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001823/0.1583, allocations: 1.578 MB / 0.4905 GB, free: 6.98 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001039/0.1594, allocations: 0.8378 MB / 0.4914 GB, free: 6.141 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001297/0.1607, allocations: 0.9854 MB / 0.4923 GB, free: 5.152 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003049/0.161, allocations: 236 kB / 0.4925 GB, free: 4.922 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003604/0.1614, allocations: 236 kB / 0.4928 GB, free: 4.691 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005209/0.1619, allocations: 0.6976 MB / 0.4934 GB, free: 3.992 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009176/0.1628, allocations: 0.9262 MB / 0.4944 GB, free: 3.062 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002267/0.1651, allocations: 2.587 MB / 0.4969 GB, free: 480 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.1651, allocations: 0 / 0.4969 GB, free: 480 kB / 366.1 MB Notification: Performance of FrontEnd: time 2.725e-06/0.1651, allocations: 3.938 kB / 0.4969 GB, free: 476 kB / 366.1 MB Notification: Performance of Transformations before backend: time 4.042e-05/0.1652, allocations: 0 / 0.4969 GB, free: 476 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: 300 * Number of variables: 300 Notification: Performance of Generate backend data structure: time 0.004705/0.1699, allocations: 2.016 MB / 0.4989 GB, free: 14.39 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.502e-05/0.17, allocations: 12.03 kB / 0.4989 GB, free: 14.38 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002921/0.1702, allocations: 147.2 kB / 0.499 GB, free: 14.23 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001433/0.1717, allocations: 0.8564 MB / 0.4998 GB, free: 13.34 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000114/0.1718, allocations: 124.6 kB / 0.5 GB, free: 13.21 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002489/0.1721, allocations: 136.2 kB / 0.5001 GB, free: 13.07 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00262/0.1747, allocations: 1.593 MB / 0.5016 GB, free: 11.45 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.07e-05/0.1747, allocations: 0 / 0.5016 GB, free: 11.45 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000138/0.1749, allocations: 44 kB / 0.5017 GB, free: 11.41 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.586e-05/0.1749, allocations: 28 kB / 0.5017 GB, free: 11.38 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002217/0.1771, allocations: 1.419 MB / 0.5031 GB, free: 9.957 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01028/0.1874, allocations: 7.124 MB / 0.5101 GB, free: 2.324 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004782/0.1923, allocations: 1.89 MB / 0.5119 GB, free: 440 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00112/0.1934, allocations: 0.7301 MB / 0.5126 GB, free: 15.69 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.22e-05/0.1935, allocations: 20.91 kB / 0.5126 GB, free: 15.68 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.525e-05/0.1935, allocations: 43.56 kB / 0.5127 GB, free: 15.62 MB / 398.1 MB Notification: Performance of pre-optimization done (n=102): time 3.566e-06/0.1935, allocations: 0 / 0.5127 GB, free: 15.62 MB / 398.1 MB Notification: Performance of matching and sorting (n=102): time 0.007226/0.2008, allocations: 3.924 MB / 0.5165 GB, free: 11.37 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.359e-05/0.2009, allocations: 68.34 kB / 0.5166 GB, free: 11.29 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001133/0.202, allocations: 0.6877 MB / 0.5172 GB, free: 10.59 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 9.462e-05/0.2021, allocations: 41.7 kB / 0.5173 GB, free: 10.54 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003738/0.2025, allocations: 0.4993 MB / 0.5178 GB, free: 10.04 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00048/0.203, allocations: 418.1 kB / 0.5182 GB, free: 9.621 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004116/0.2034, allocations: 239.5 kB / 0.5184 GB, free: 9.383 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001989/0.2036, allocations: 414.7 kB / 0.5188 GB, free: 8.969 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001309/0.2049, allocations: 0.8429 MB / 0.5196 GB, free: 8.121 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001408/0.2063, allocations: 1.005 MB / 0.5206 GB, free: 7.055 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01281/0.2191, allocations: 4.443 MB / 0.5249 GB, free: 2.535 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.201e-05/0.2192, allocations: 4 kB / 0.5249 GB, free: 2.531 MB / 398.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.004595/0.2238, allocations: 2.457 MB / 0.5273 GB, free: 20 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.448e-05/0.2239, allocations: 11.98 kB / 0.5274 GB, free: 8 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.112e-05/0.2239, allocations: 11.98 kB / 0.5274 GB, free: 15.99 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001745/0.2257, allocations: 0.5317 MB / 0.5279 GB, free: 15.42 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001739/0.2274, allocations: 395.5 kB / 0.5283 GB, free: 15.03 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01721/0.2446, allocations: 23.05 MB / 0.5508 GB, free: 5.82 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001601/0.2463, allocations: 150.9 kB / 0.5509 GB, free: 5.672 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000111/0.2464, allocations: 40 kB / 0.5509 GB, free: 5.633 MB / 430.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.001014/0.2474, allocations: 426.6 kB / 0.5514 GB, free: 5.207 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000201/0.2476, allocations: 94.81 kB / 0.5514 GB, free: 5.113 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003628/0.2513, allocations: 1.979 MB / 0.5534 GB, free: 3.078 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.788e-06/0.2513, allocations: 12 kB / 0.5534 GB, free: 3.066 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.105e-05/0.2513, allocations: 4 kB / 0.5534 GB, free: 3.062 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.233e-05/0.2513, allocations: 15.91 kB / 0.5534 GB, free: 3.047 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005633/0.257, allocations: 3.547 MB / 0.5569 GB, free: 15.38 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.476e-06/0.257, allocations: 4 kB / 0.5569 GB, free: 15.37 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001887/0.2589, allocations: 335.9 kB / 0.5572 GB, free: 15.04 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001335/0.2603, allocations: 472.5 kB / 0.5576 GB, free: 14.54 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001443/0.2604, allocations: 67.97 kB / 0.5577 GB, free: 14.47 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01599/0.2764, allocations: 22.17 MB / 0.5794 GB, free: 6.195 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.342e-06/0.2765, allocations: 7.938 kB / 0.5794 GB, free: 6.188 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005797/0.2823, allocations: 2.734 MB / 0.582 GB, free: 3.367 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005343/0.2828, allocations: 195.7 kB / 0.5822 GB, free: 3.156 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001899/0.283, allocations: 59.97 kB / 0.5823 GB, free: 3.098 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007482/0.2838, allocations: 51.94 kB / 0.5823 GB, free: 3.047 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003802/0.2842, allocations: 104.7 kB / 0.5824 GB, free: 2.945 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.218e-05/0.2843, allocations: 27.98 kB / 0.5825 GB, free: 2.918 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0007105/0.285, allocations: 483 kB / 0.5829 GB, free: 2.449 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.285, allocations: 0 / 0.5829 GB, free: 2.449 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00204/0.287, allocations: 0.4991 MB / 0.5834 GB, free: 1.949 MB / 462.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.0003347/0.2874, allocations: 176.3 kB / 0.5836 GB, free: 1.766 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.307/0.5944, allocations: 3.427 MB / 0.5869 GB, free: 96.67 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.062e-05/0.5944, allocations: 0.9375 kB / 0.5869 GB, free: 96.67 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002809/0.5972, allocations: 2.456 MB / 0.5893 GB, free: 95.03 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001505/0.5988, allocations: 313 kB / 0.5896 GB, free: 95.02 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008327/0.6071, allocations: 5.513 MB / 0.595 GB, free: 92.65 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001044/0.6082, allocations: 1.258 MB / 0.5962 GB, free: 91.93 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001159/0.6093, allocations: 360.3 kB / 0.5966 GB, free: 91.89 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003171/0.6097, allocations: 72.7 kB / 0.5966 GB, free: 91.89 MB / 462.1 MB Notification: Performance of SimCode: time 1.492e-06/0.6097, allocations: 0 / 0.5966 GB, free: 91.89 MB / 462.1 MB Notification: Performance of Templates: time 0.0376/0.6473, allocations: 23.17 MB / 0.6193 GB, free: 78.95 MB / 462.1 MB make -j1 -f AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003.makefile (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 & ./AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003.pipe 2>&1)