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.001045/0.001045, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001329/0.001329, allocations: 194.2 kB / 16.53 MB, free: 6.391 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.451/1.451, allocations: 222.9 MB / 240.2 MB, free: 4.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2288/0.2288, allocations: 22.35 MB / 312.7 MB, free: 12.46 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001595/0.001595, allocations: 71.91 kB / 380.8 MB, free: 10.47 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4015/0.4031, allocations: 54.94 MB / 435.8 MB, free: 39.68 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Generation.Heater_control_case_004): time 0.005026/0.4082, allocations: 4.404 MB / 440.2 MB, free: 36.49 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002381/0.4106, allocations: 1.276 MB / 441.4 MB, free: 35.56 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003633/0.411, allocations: 18.22 kB / 441.5 MB, free: 35.55 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003298/0.4114, allocations: 170.1 kB / 441.6 MB, free: 35.44 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006505/0.412, allocations: 430.9 kB / 442.1 MB, free: 35.18 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007082/0.4128, allocations: 309.4 kB / 442.4 MB, free: 34.99 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001481/0.4142, allocations: 2.179 MB / 444.5 MB, free: 33.92 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001535/0.4158, allocations: 1.603 MB / 446.1 MB, free: 33.23 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009001/0.4167, allocations: 0.8268 MB / 447 MB, free: 32.85 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009615/0.4177, allocations: 0.9801 MB / 447.9 MB, free: 32.41 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002608/0.4179, allocations: 230.8 kB / 448.2 MB, free: 32.41 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003121/0.4183, allocations: 229.3 kB / 448.4 MB, free: 32.41 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004337/0.4187, allocations: 0.6969 MB / 449.1 MB, free: 32.08 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000736/0.4194, allocations: 0.9212 MB / 450 MB, free: 31.52 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001608/0.4211, allocations: 2.548 MB / 452.6 MB, free: 30.61 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.4211, allocations: 6.891 kB / 452.6 MB, free: 30.61 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.4211, allocations: 0 / 452.6 MB, free: 30.61 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.067e-05/0.4211, allocations: 3.906 kB / 452.6 MB, free: 30.61 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.004276/0.4254, allocations: 2.014 MB / 454.6 MB, free: 29.55 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.325e-05/0.4255, allocations: 9.312 kB / 454.6 MB, free: 29.55 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003011/0.4258, allocations: 145.4 kB / 454.7 MB, free: 29.48 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001252/0.427, allocations: 0.8699 MB / 455.6 MB, free: 28.91 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001108/0.4272, allocations: 114.3 kB / 455.7 MB, free: 28.84 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002574/0.4274, allocations: 140.7 kB / 455.9 MB, free: 28.79 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002879/0.4303, allocations: 1.59 MB / 457.4 MB, free: 28.14 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.94e-05/0.4304, allocations: 0 / 457.4 MB, free: 28.14 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001279/0.4305, allocations: 50.31 kB / 457.5 MB, free: 28.11 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.809e-05/0.4305, allocations: 28.41 kB / 457.5 MB, free: 28.11 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002539/0.4331, allocations: 1.403 MB / 458.9 MB, free: 27.57 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01167/0.4448, allocations: 7.142 MB / 466.1 MB, free: 22.94 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004596/0.4494, allocations: 1.871 MB / 467.9 MB, free: 22.32 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001175/0.4506, allocations: 0.7349 MB / 468.7 MB, free: 22 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.622e-05/0.4507, allocations: 18.11 kB / 468.7 MB, free: 22 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.579e-05/0.4507, allocations: 45.73 kB / 468.7 MB, free: 21.95 MB / 350.1 MB Notification: Performance of pre-optimization done (n=103): time 2.845e-06/0.4507, allocations: 0 / 468.7 MB, free: 21.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=103): time 0.008985/0.4597, allocations: 3.92 MB / 472.7 MB, free: 19.43 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.297e-05/0.4598, allocations: 62.62 kB / 472.7 MB, free: 19.37 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001921/0.4618, allocations: 0.6821 MB / 473.4 MB, free: 19.05 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001763/0.462, allocations: 49.23 kB / 473.4 MB, free: 19 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005323/0.4625, allocations: 0.5123 MB / 474 MB, free: 18.6 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000771/0.4633, allocations: 416.3 kB / 474.4 MB, free: 18.28 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000951/0.4643, allocations: 239.3 kB / 474.6 MB, free: 18.16 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000241/0.4645, allocations: 410 kB / 475 MB, free: 17.81 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00208/0.4666, allocations: 0.8477 MB / 475.8 MB, free: 17.47 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002334/0.469, allocations: 0.9988 MB / 476.8 MB, free: 16.94 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0187/0.4877, allocations: 4.49 MB / 481.3 MB, free: 14.9 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.07e-05/0.4877, allocations: 1.406 kB / 481.3 MB, free: 14.9 MB / 350.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.006231/0.494, allocations: 2.463 MB / 483.8 MB, free: 12.52 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.043e-05/0.494, allocations: 8 kB / 483.8 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.019e-05/0.4941, allocations: 4 kB / 483.8 MB, free: 12.51 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002117/0.4962, allocations: 0.5473 MB / 484.4 MB, free: 11.92 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0024/0.4986, allocations: 395.5 kB / 484.7 MB, free: 11.53 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02085/0.5195, allocations: 23.05 MB / 0.4959 GB, free: 2.32 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001658/0.5212, allocations: 150.6 kB / 0.496 GB, free: 2.172 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003339/0.5215, allocations: 51.94 kB / 0.4961 GB, free: 2.121 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.00111/0.5227, allocations: 441.9 kB / 0.4965 GB, free: 1.68 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003613/0.523, allocations: 90.88 kB / 0.4966 GB, free: 1.59 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004025/0.5271, allocations: 1.987 MB / 0.4985 GB, free: 15.54 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.962e-05/0.5271, allocations: 8 kB / 0.4985 GB, free: 15.53 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.014e-05/0.5271, allocations: 4 kB / 0.4985 GB, free: 15.53 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.494e-05/0.5271, allocations: 7.969 kB / 0.4985 GB, free: 15.52 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006916/0.5341, allocations: 3.711 MB / 0.5022 GB, free: 11.68 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.954e-06/0.5341, allocations: 4 kB / 0.5022 GB, free: 11.68 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002021/0.5361, allocations: 343.9 kB / 0.5025 GB, free: 11.34 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001372/0.5375, allocations: 476.5 kB / 0.503 GB, free: 10.83 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001936/0.5377, allocations: 63.97 kB / 0.503 GB, free: 10.77 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01651/0.5542, allocations: 22.18 MB / 0.5247 GB, free: 2.48 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.5543, allocations: 4.156 kB / 0.5247 GB, free: 2.477 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005793/0.5601, allocations: 2.722 MB / 0.5273 GB, free: 15.67 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004896/0.5606, allocations: 191.8 kB / 0.5275 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003539/0.561, allocations: 63.97 kB / 0.5276 GB, free: 15.4 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000946/0.5619, allocations: 59.92 kB / 0.5276 GB, free: 15.34 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003668/0.5623, allocations: 96.75 kB / 0.5277 GB, free: 15.25 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001026/0.5624, allocations: 32 kB / 0.5278 GB, free: 15.22 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0007919/0.5632, allocations: 479 kB / 0.5282 GB, free: 14.75 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5632, allocations: 0 / 0.5282 GB, free: 14.75 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00221/0.5655, allocations: 0.4991 MB / 0.5287 GB, free: 14.25 MB / 414.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.0003555/0.5658, allocations: 184.2 kB / 0.5289 GB, free: 14.06 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006165/0.572, allocations: 3.991 MB / 0.5328 GB, free: 9.879 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.99e-06/0.572, allocations: 0 / 0.5328 GB, free: 9.879 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002911/0.5749, allocations: 2.464 MB / 0.5352 GB, free: 7.219 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001597/0.5765, allocations: 313.1 kB / 0.5355 GB, free: 6.918 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01101/0.5876, allocations: 5.578 MB / 0.5409 GB, free: 1.305 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001464/0.5891, allocations: 1.28 MB / 0.5422 GB, free: 15.99 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001727/0.5908, allocations: 367.8 kB / 0.5425 GB, free: 15.63 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004986/0.5914, allocations: 83.36 kB / 0.5426 GB, free: 15.55 MB / 430.1 MB Notification: Performance of SimCode: time 8.11e-07/0.5914, allocations: 0 / 0.5426 GB, free: 15.55 MB / 430.1 MB Notification: Performance of Templates: time 0.03995/0.6313, allocations: 22.75 MB / 0.5648 GB, free: 9.055 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)