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.00145/0.00145, allocations: 102.1 kB / 16.35 MB, free: 5.824 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.001564/0.001564, allocations: 193.9 kB / 17.29 MB, free: 5.48 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.449/1.449, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08822/0.08822, allocations: 22.33 MB / 313.5 MB, free: 8.895 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001288/0.001288, allocations: 63.83 kB / 382.2 MB, free: 41.1 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.12/0.1213, allocations: 54.97 MB / 437.2 MB, free: 12.25 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Generation.Heater_control_case_003): time 0.00543/0.1267, allocations: 4.388 MB / 441.6 MB, free: 7.828 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002376/0.1292, allocations: 1.251 MB / 442.8 MB, free: 6.57 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003321/0.1295, allocations: 19.88 kB / 442.9 MB, free: 6.551 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003444/0.1299, allocations: 162.6 kB / 443 MB, free: 6.391 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006159/0.1305, allocations: 429.4 kB / 443.4 MB, free: 5.969 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007297/0.1313, allocations: 311.5 kB / 443.7 MB, free: 5.664 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001889/0.1332, allocations: 2.158 MB / 445.9 MB, free: 3.5 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001851/0.135, allocations: 1.594 MB / 447.5 MB, free: 1.863 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009054/0.136, allocations: 0.8184 MB / 448.3 MB, free: 1.043 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001206/0.1372, allocations: 0.9855 MB / 449.3 MB, free: 56 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000304/0.1375, allocations: 236 kB / 449.5 MB, free: 15.82 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003198/0.1378, allocations: 239.9 kB / 449.8 MB, free: 15.59 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005975/0.1384, allocations: 0.6936 MB / 450.5 MB, free: 14.89 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009497/0.1394, allocations: 0.9339 MB / 451.4 MB, free: 13.95 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002136/0.1415, allocations: 2.587 MB / 454 MB, free: 11.36 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.69e-06/0.1415, allocations: 0 / 454 MB, free: 11.36 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1416, allocations: 0 / 454 MB, free: 11.36 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.443e-05/0.1416, allocations: 0 / 454 MB, free: 11.36 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: 300 * Number of variables: 300 Notification: Performance of Generate backend data structure: time 0.004304/0.1459, allocations: 2.021 MB / 456 MB, free: 9.285 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.062e-05/0.1459, allocations: 12.03 kB / 456 MB, free: 9.273 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002731/0.1462, allocations: 147.2 kB / 456.2 MB, free: 9.129 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001437/0.1477, allocations: 0.8603 MB / 457 MB, free: 8.227 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001062/0.1478, allocations: 124.6 kB / 457.1 MB, free: 8.098 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002328/0.148, allocations: 132.2 kB / 457.3 MB, free: 7.969 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002439/0.1505, allocations: 1.589 MB / 458.9 MB, free: 6.352 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.766e-05/0.1505, allocations: 0 / 458.9 MB, free: 6.352 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001276/0.1506, allocations: 44 kB / 458.9 MB, free: 6.309 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.362e-05/0.1507, allocations: 28 kB / 458.9 MB, free: 6.281 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002228/0.1529, allocations: 1.423 MB / 460.3 MB, free: 4.852 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01027/0.1632, allocations: 7.117 MB / 467.5 MB, free: 13.23 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004796/0.168, allocations: 1.898 MB / 469.4 MB, free: 11.33 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001142/0.1692, allocations: 0.7222 MB / 470.1 MB, free: 10.6 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.51e-05/0.1693, allocations: 16.98 kB / 470.1 MB, free: 10.59 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.905e-05/0.1694, allocations: 43.56 kB / 470.1 MB, free: 10.54 MB / 350.1 MB Notification: Performance of pre-optimization done (n=102): time 2.756e-06/0.1694, allocations: 0 / 470.1 MB, free: 10.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=102): time 0.006736/0.1761, allocations: 3.936 MB / 474.1 MB, free: 6.27 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.233e-05/0.1762, allocations: 60.41 kB / 474.1 MB, free: 6.199 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009142/0.1771, allocations: 0.6915 MB / 474.8 MB, free: 5.496 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001055/0.1772, allocations: 45.7 kB / 474.9 MB, free: 5.445 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003445/0.1776, allocations: 0.5032 MB / 475.4 MB, free: 4.934 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003837/0.178, allocations: 406.2 kB / 475.8 MB, free: 4.531 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004251/0.1784, allocations: 243.5 kB / 476 MB, free: 4.285 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001714/0.1786, allocations: 410.7 kB / 476.4 MB, free: 3.875 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001234/0.1798, allocations: 0.8429 MB / 477.3 MB, free: 3.027 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001336/0.1812, allocations: 1.004 MB / 478.3 MB, free: 1.961 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01256/0.1937, allocations: 4.455 MB / 482.7 MB, free: 13.43 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.867e-06/0.1938, allocations: 4 kB / 482.7 MB, free: 13.43 MB / 366.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.004457/0.1982, allocations: 2.464 MB / 485.2 MB, free: 10.91 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.935e-05/0.1983, allocations: 8 kB / 485.2 MB, free: 10.9 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.371e-05/0.1983, allocations: 4 kB / 485.2 MB, free: 10.89 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001726/0.2, allocations: 0.5317 MB / 485.7 MB, free: 10.32 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001764/0.2018, allocations: 399.5 kB / 486.1 MB, free: 9.926 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01692/0.2188, allocations: 23.04 MB / 0.4972 GB, free: 0.7148 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001777/0.2206, allocations: 146.7 kB / 0.4974 GB, free: 0.5703 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001985/0.2208, allocations: 44 kB / 0.4974 GB, free: 0.5273 MB / 382.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.001165/0.222, allocations: 430.8 kB / 0.4978 GB, free: 100 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00033/0.2223, allocations: 86.97 kB / 0.4979 GB, free: 12 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003611/0.2259, allocations: 1.975 MB / 0.4998 GB, free: 13.98 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.156e-05/0.226, allocations: 12 kB / 0.4998 GB, free: 13.97 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.968e-06/0.226, allocations: 7.938 kB / 0.4999 GB, free: 13.96 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.291e-05/0.226, allocations: 7.969 kB / 0.4999 GB, free: 13.95 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005706/0.2317, allocations: 3.547 MB / 0.5033 GB, free: 10.28 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.131e-06/0.2318, allocations: 0 / 0.5033 GB, free: 10.28 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001914/0.2337, allocations: 339.6 kB / 0.5036 GB, free: 9.945 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001301/0.235, allocations: 476.6 kB / 0.5041 GB, free: 9.434 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001491/0.2352, allocations: 67.97 kB / 0.5042 GB, free: 9.367 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2196/0.4548, allocations: 22.15 MB / 0.5258 GB, free: 65.92 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.582e-06/0.4549, allocations: 8.734 kB / 0.5258 GB, free: 65.92 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004304/0.4592, allocations: 2.745 MB / 0.5285 GB, free: 65.56 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003113/0.4595, allocations: 195 kB / 0.5287 GB, free: 65.46 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000192/0.4597, allocations: 60.45 kB / 0.5287 GB, free: 65.46 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007347/0.4605, allocations: 51.08 kB / 0.5288 GB, free: 65.46 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002923/0.4608, allocations: 101.3 kB / 0.5289 GB, free: 65.46 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.649e-05/0.4609, allocations: 33.67 kB / 0.5289 GB, free: 65.46 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005443/0.4614, allocations: 480 kB / 0.5294 GB, free: 65.36 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4614, allocations: 0 / 0.5294 GB, free: 65.36 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001499/0.4629, allocations: 0.4994 MB / 0.5299 GB, free: 65.36 MB / 398.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.0002542/0.4632, allocations: 180.6 kB / 0.53 GB, free: 65.27 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003959/0.4672, allocations: 3.425 MB / 0.5334 GB, free: 63.61 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.109e-06/0.4672, allocations: 0 / 0.5334 GB, free: 63.61 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002338/0.4695, allocations: 2.455 MB / 0.5358 GB, free: 61.96 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001274/0.4708, allocations: 318.6 kB / 0.5361 GB, free: 61.95 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008734/0.4796, allocations: 5.495 MB / 0.5414 GB, free: 59.49 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001046/0.4806, allocations: 1.27 MB / 0.5427 GB, free: 58.76 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001268/0.4819, allocations: 356.1 kB / 0.543 GB, free: 58.73 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003367/0.4823, allocations: 74.02 kB / 0.5431 GB, free: 58.72 MB / 398.1 MB Notification: Performance of SimCode: time 1.011e-06/0.4823, allocations: 4 kB / 0.5431 GB, free: 58.72 MB / 398.1 MB Notification: Performance of Templates: time 0.02974/0.512, allocations: 22.72 MB / 0.5653 GB, free: 43.86 MB / 398.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 -s cvode -lv LOG_STATS > AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003.pipe 2>&1)