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.0008915/0.0008916, allocations: 91.69 kB / 15.36 MB, free: 0.7383 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.007573/0.007573, allocations: 171.9 kB / 16.26 MB, free: 6.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.471/1.471, allocations: 223.3 MB / 240.3 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2408/0.2408, allocations: 22.34 MB / 313.8 MB, free: 13.09 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003307/0.0003309, allocations: 12 kB / 382.6 MB, free: 10.12 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3713/0.3717, allocations: 55.98 MB / 438.6 MB, free: 39.12 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Generation.Heater_control_case_004): time 0.003616/0.3753, allocations: 4.178 MB / 442.7 MB, free: 36.02 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002157/0.3775, allocations: 1.281 MB / 444 MB, free: 35.09 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003389/0.3779, allocations: 16.88 kB / 444 MB, free: 35.08 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002861/0.3782, allocations: 125.8 kB / 444.2 MB, free: 35.01 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000701/0.3789, allocations: 420.6 kB / 444.6 MB, free: 34.76 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000717/0.3796, allocations: 278.5 kB / 444.8 MB, free: 34.58 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002173/0.3818, allocations: 2.662 MB / 447.5 MB, free: 33.61 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001432/0.3832, allocations: 1.281 MB / 448.8 MB, free: 33.14 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007816/0.384, allocations: 0.6332 MB / 449.4 MB, free: 32.91 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001098/0.3851, allocations: 0.9036 MB / 450.3 MB, free: 32.58 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001658/0.3853, allocations: 93.39 kB / 450.4 MB, free: 32.57 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002083/0.3855, allocations: 88.47 kB / 450.5 MB, free: 32.57 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004103/0.3859, allocations: 0.5393 MB / 451 MB, free: 32.39 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000728/0.3867, allocations: 0.7725 MB / 451.8 MB, free: 31.95 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001647/0.3883, allocations: 2.405 MB / 454.2 MB, free: 31.36 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.3883, allocations: 0 / 454.2 MB, free: 31.36 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.545e-06/0.3883, allocations: 0 / 454.2 MB, free: 31.36 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.419e-05/0.3884, allocations: 4 kB / 454.2 MB, free: 31.35 MB / 350.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.003787/0.3922, allocations: 1.772 MB / 456 MB, free: 30.46 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.824e-05/0.3922, allocations: 17.97 kB / 456 MB, free: 30.46 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003275/0.3926, allocations: 150.1 kB / 456.2 MB, free: 30.38 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001402/0.394, allocations: 0.8677 MB / 457 MB, free: 29.81 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001186/0.3941, allocations: 113.8 kB / 457.1 MB, free: 29.74 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003015/0.3944, allocations: 135.7 kB / 457.3 MB, free: 29.69 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003125/0.3975, allocations: 1.592 MB / 458.9 MB, free: 29.05 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.855e-05/0.3976, allocations: 1.062 kB / 458.9 MB, free: 29.05 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000136/0.3977, allocations: 44.97 kB / 458.9 MB, free: 29.02 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.818e-05/0.3978, allocations: 28.94 kB / 458.9 MB, free: 29.02 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002522/0.4003, allocations: 1.41 MB / 460.3 MB, free: 28.47 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01116/0.4115, allocations: 7.175 MB / 467.5 MB, free: 23.85 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004897/0.4164, allocations: 1.877 MB / 469.4 MB, free: 23.22 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001162/0.4176, allocations: 0.7348 MB / 470.1 MB, free: 22.9 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.678e-05/0.4176, allocations: 14.02 kB / 470.1 MB, free: 22.9 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.004e-05/0.4177, allocations: 49.5 kB / 470.2 MB, free: 22.85 MB / 350.1 MB Notification: Performance of pre-optimization done (n=103): time 2.665e-06/0.4177, allocations: 0 / 470.2 MB, free: 22.85 MB / 350.1 MB Notification: Performance of matching and sorting (n=103): time 0.007324/0.425, allocations: 3.988 MB / 474.2 MB, free: 20.32 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.917e-05/0.4251, allocations: 62.41 kB / 474.2 MB, free: 20.26 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00113/0.4262, allocations: 0.679 MB / 474.9 MB, free: 19.95 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001268/0.4264, allocations: 41.42 kB / 475 MB, free: 19.91 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003278/0.4267, allocations: 0.5157 MB / 475.5 MB, free: 19.5 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003826/0.4271, allocations: 415.3 kB / 475.9 MB, free: 19.18 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000193/0.4273, allocations: 120.4 kB / 476 MB, free: 19.11 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001744/0.4275, allocations: 414.4 kB / 476.4 MB, free: 18.76 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001446/0.4289, allocations: 0.845 MB / 477.3 MB, free: 18.41 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001474/0.4304, allocations: 0.9992 MB / 478.3 MB, free: 17.89 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01394/0.4444, allocations: 4.658 MB / 482.9 MB, free: 15.57 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.53e-05/0.4444, allocations: 9.688 kB / 482.9 MB, free: 15.56 MB / 350.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004212/0.4486, allocations: 2.492 MB / 485.4 MB, free: 13.05 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.246e-05/0.4487, allocations: 4 kB / 485.4 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.236e-05/0.4487, allocations: 8 kB / 485.4 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001592/0.4503, allocations: 0.5473 MB / 486 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001737/0.452, allocations: 407.5 kB / 486.4 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01409/0.4661, allocations: 21.46 MB / 0.4959 GB, free: 4.523 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001973/0.4681, allocations: 154.8 kB / 0.4961 GB, free: 4.371 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003934/0.4686, allocations: 51.98 kB / 0.4961 GB, free: 4.32 MB / 366.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.001401/0.47, allocations: 434.7 kB / 0.4965 GB, free: 3.887 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004165/0.4704, allocations: 86.97 kB / 0.4966 GB, free: 3.801 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004192/0.4746, allocations: 1.983 MB / 0.4986 GB, free: 1.758 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.258e-05/0.4746, allocations: 12 kB / 0.4986 GB, free: 1.746 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.95e-05/0.4747, allocations: 7.938 kB / 0.4986 GB, free: 1.738 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.259e-05/0.4747, allocations: 3.984 kB / 0.4986 GB, free: 1.734 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007192/0.4819, allocations: 3.712 MB / 0.5022 GB, free: 13.89 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.111e-06/0.4819, allocations: 3.938 kB / 0.5022 GB, free: 13.88 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002024/0.4839, allocations: 347.6 kB / 0.5025 GB, free: 13.54 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001392/0.4853, allocations: 480.6 kB / 0.503 GB, free: 13.03 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001857/0.4855, allocations: 63.97 kB / 0.5031 GB, free: 12.96 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01516/0.5007, allocations: 20.6 MB / 0.5232 GB, free: 6.363 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/0.5008, allocations: 0 / 0.5232 GB, free: 6.363 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005348/0.5061, allocations: 2.722 MB / 0.5258 GB, free: 3.555 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004652/0.5066, allocations: 191.8 kB / 0.526 GB, free: 3.348 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002976/0.5069, allocations: 63.97 kB / 0.5261 GB, free: 3.285 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009702/0.5079, allocations: 79.75 kB / 0.5262 GB, free: 3.207 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003217/0.5082, allocations: 100.7 kB / 0.5263 GB, free: 3.109 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.582e-05/0.5083, allocations: 27.98 kB / 0.5263 GB, free: 3.082 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0007867/0.5091, allocations: 475 kB / 0.5267 GB, free: 2.621 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5091, allocations: 8 kB / 0.5267 GB, free: 2.613 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001973/0.5111, allocations: 0.4952 MB / 0.5272 GB, free: 2.117 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.000318/0.5114, allocations: 182.6 kB / 0.5274 GB, free: 1.934 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.005098/0.5166, allocations: 3.432 MB / 0.5308 GB, free: 14.3 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.532e-06/0.5166, allocations: 1.312 kB / 0.5308 GB, free: 14.3 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003073/0.5197, allocations: 2.463 MB / 0.5332 GB, free: 11.64 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001642/0.5213, allocations: 311.4 kB / 0.5335 GB, free: 11.34 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01136/0.5327, allocations: 6.644 MB / 0.5399 GB, free: 4.656 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001461/0.5342, allocations: 1.276 MB / 0.5412 GB, free: 3.352 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001883/0.5361, allocations: 375.8 kB / 0.5415 GB, free: 2.98 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005298/0.5366, allocations: 71.44 kB / 0.5416 GB, free: 2.91 MB / 414.1 MB Notification: Performance of SimCode: time 1.713e-06/0.5367, allocations: 0 / 0.5416 GB, free: 2.91 MB / 414.1 MB Notification: Performance of Templates: time 0.03853/0.5752, allocations: 21.53 MB / 0.5626 GB, free: 13.62 MB / 446.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)