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.001217/0.001216, allocations: 117.7 kB / 16.37 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.001198/0.001198, allocations: 189.7 kB / 17.3 MB, free: 5.613 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.468/1.468, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08744/0.08744, allocations: 22.32 MB / 313.5 MB, free: 8.906 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002029/0.002029, allocations: 63.78 kB / 382.2 MB, free: 41.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1228/0.1248, allocations: 54.97 MB / 437.2 MB, free: 12.27 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Generation.Heater_control_case_004): time 0.006239/0.1311, allocations: 4.414 MB / 441.6 MB, free: 7.824 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002543/0.1337, allocations: 1.267 MB / 442.9 MB, free: 6.551 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003466/0.134, allocations: 19.88 kB / 442.9 MB, free: 6.531 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003578/0.1345, allocations: 158.6 kB / 443.1 MB, free: 6.375 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007329/0.1352, allocations: 441.4 kB / 443.5 MB, free: 5.941 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008697/0.1361, allocations: 307.6 kB / 443.8 MB, free: 5.641 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002146/0.1383, allocations: 2.177 MB / 446 MB, free: 3.457 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001826/0.1401, allocations: 1.594 MB / 447.6 MB, free: 1.82 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009575/0.1411, allocations: 0.8417 MB / 448.4 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001188/0.1423, allocations: 0.9698 MB / 449.4 MB, free: 4 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002806/0.1426, allocations: 232 kB / 449.6 MB, free: 15.77 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003151/0.1429, allocations: 232 kB / 449.8 MB, free: 15.55 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000563/0.1435, allocations: 0.6898 MB / 450.5 MB, free: 14.86 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009763/0.1444, allocations: 0.93 MB / 451.5 MB, free: 13.92 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002213/0.1467, allocations: 2.567 MB / 454 MB, free: 11.35 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.189e-06/0.1467, allocations: 0 / 454 MB, free: 11.35 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.1467, allocations: 0 / 454 MB, free: 11.35 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.721e-05/0.1467, allocations: 0 / 454 MB, free: 11.35 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.004572/0.1513, allocations: 2.008 MB / 456 MB, free: 9.285 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.849e-05/0.1514, allocations: 12.03 kB / 456 MB, free: 9.273 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002977/0.1517, allocations: 155.2 kB / 456.2 MB, free: 9.121 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001511/0.1532, allocations: 0.872 MB / 457.1 MB, free: 8.207 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001079/0.1533, allocations: 116.6 kB / 457.2 MB, free: 8.086 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002416/0.1535, allocations: 136.2 kB / 457.3 MB, free: 7.953 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002561/0.1561, allocations: 1.589 MB / 458.9 MB, free: 6.336 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.942e-05/0.1562, allocations: 0 / 458.9 MB, free: 6.336 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001319/0.1563, allocations: 44 kB / 458.9 MB, free: 6.293 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.862e-05/0.1563, allocations: 28 kB / 459 MB, free: 6.266 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002341/0.1587, allocations: 1.411 MB / 460.4 MB, free: 4.848 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01063/0.1693, allocations: 7.093 MB / 467.5 MB, free: 13.25 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004744/0.1741, allocations: 1.874 MB / 469.3 MB, free: 11.37 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001123/0.1753, allocations: 0.7425 MB / 470.1 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8e-05/0.1753, allocations: 20.92 kB / 470.1 MB, free: 10.61 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.103e-05/0.1754, allocations: 43.56 kB / 470.2 MB, free: 10.55 MB / 350.1 MB Notification: Performance of pre-optimization done (n=103): time 2.605e-06/0.1754, allocations: 0 / 470.2 MB, free: 10.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=103): time 0.007017/0.1824, allocations: 3.932 MB / 474.1 MB, free: 6.293 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.934e-05/0.1825, allocations: 60.41 kB / 474.1 MB, free: 6.223 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009373/0.1834, allocations: 0.68 MB / 474.8 MB, free: 5.531 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000105/0.1835, allocations: 41.7 kB / 474.9 MB, free: 5.484 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003375/0.1839, allocations: 0.5071 MB / 475.4 MB, free: 4.969 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003748/0.1843, allocations: 422 kB / 475.8 MB, free: 4.551 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004154/0.1847, allocations: 239.5 kB / 476 MB, free: 4.309 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001715/0.1849, allocations: 418.7 kB / 476.4 MB, free: 3.891 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00125/0.1861, allocations: 0.8429 MB / 477.3 MB, free: 3.043 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001311/0.1875, allocations: 1.001 MB / 478.3 MB, free: 1.98 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01345/0.2009, allocations: 4.466 MB / 482.7 MB, free: 13.44 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.1e-05/0.201, allocations: 0 / 482.7 MB, free: 13.44 MB / 366.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004678/0.2057, allocations: 2.464 MB / 485.2 MB, free: 10.92 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.783e-05/0.2057, allocations: 8 kB / 485.2 MB, free: 10.91 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.581e-05/0.2057, allocations: 4 kB / 485.2 MB, free: 10.91 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001741/0.2075, allocations: 0.5395 MB / 485.8 MB, free: 10.32 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001844/0.2093, allocations: 403.4 kB / 486.1 MB, free: 9.926 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01841/0.2278, allocations: 23.04 MB / 0.4973 GB, free: 0.7148 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001386/0.2292, allocations: 146.8 kB / 0.4974 GB, free: 0.5703 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001223/0.2293, allocations: 52 kB / 0.4974 GB, free: 0.5195 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.0007976/0.2301, allocations: 426.1 kB / 0.4979 GB, free: 96 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002003/0.2303, allocations: 90.88 kB / 0.4979 GB, free: 4 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003562/0.2339, allocations: 1.987 MB / 0.4999 GB, free: 13.96 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.085e-05/0.2339, allocations: 12 kB / 0.4999 GB, free: 13.95 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.335e-06/0.2339, allocations: 4 kB / 0.4999 GB, free: 13.95 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.1e-05/0.2339, allocations: 11.97 kB / 0.4999 GB, free: 13.93 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006262/0.2402, allocations: 3.709 MB / 0.5035 GB, free: 10.09 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.841e-06/0.2403, allocations: 3.938 kB / 0.5035 GB, free: 10.09 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001991/0.2423, allocations: 347.9 kB / 0.5039 GB, free: 9.75 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00133/0.2436, allocations: 480.5 kB / 0.5043 GB, free: 9.234 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001505/0.2438, allocations: 63.97 kB / 0.5044 GB, free: 9.172 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2181/0.4619, allocations: 22.15 MB / 0.526 GB, free: 66.22 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.222e-06/0.4619, allocations: 5.375 kB / 0.526 GB, free: 66.22 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004375/0.4663, allocations: 2.732 MB / 0.5287 GB, free: 65.86 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000289/0.4666, allocations: 194.3 kB / 0.5289 GB, free: 65.77 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001884/0.4668, allocations: 59.72 kB / 0.5289 GB, free: 65.77 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007194/0.4675, allocations: 55.73 kB / 0.529 GB, free: 65.77 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003156/0.4679, allocations: 100.6 kB / 0.5291 GB, free: 65.76 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.765e-05/0.468, allocations: 31.08 kB / 0.5291 GB, free: 65.76 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006336/0.4686, allocations: 474.1 kB / 0.5296 GB, free: 65.66 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.4686, allocations: 0 / 0.5296 GB, free: 65.66 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001585/0.4702, allocations: 0.5069 MB / 0.5301 GB, free: 65.66 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.0002623/0.4705, allocations: 177.5 kB / 0.5302 GB, free: 65.57 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003882/0.4744, allocations: 3.422 MB / 0.5336 GB, free: 63.9 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.388e-06/0.4744, allocations: 6.219 kB / 0.5336 GB, free: 63.9 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002401/0.4768, allocations: 2.457 MB / 0.536 GB, free: 62.27 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00116/0.478, allocations: 320.8 kB / 0.5363 GB, free: 62.25 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009414/0.4874, allocations: 5.548 MB / 0.5417 GB, free: 59.77 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001189/0.4886, allocations: 1.272 MB / 0.5429 GB, free: 59.04 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001368/0.49, allocations: 369.5 kB / 0.5433 GB, free: 59 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003451/0.4903, allocations: 76.36 kB / 0.5434 GB, free: 58.99 MB / 398.1 MB Notification: Performance of SimCode: time 1.934e-06/0.4903, allocations: 0 / 0.5434 GB, free: 58.99 MB / 398.1 MB Notification: Performance of Templates: time 0.02977/0.5201, allocations: 22.76 MB / 0.5656 GB, free: 44.01 MB / 398.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 -s cvode -lv LOG_STATS > AES_AES.Coursework.ThermSys_Generation.Heater_control_case_004.pipe 2>&1)