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.001219/0.001219, allocations: 108.7 kB / 16.41 MB, free: 6.496 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.001177/0.001177, allocations: 189.6 kB / 17.34 MB, free: 5.762 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.308/1.308, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09217/0.09217, allocations: 22.32 MB / 313.5 MB, free: 8.891 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001322/0.001322, allocations: 71.88 kB / 437.7 MB, free: 11.77 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09447/0.0958, allocations: 54.95 MB / 492.7 MB, free: 4.773 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Generation.Heater_control_case_004): time 0.005275/0.1011, allocations: 4.412 MB / 497.1 MB, free: 340 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002326/0.1035, allocations: 1.271 MB / 498.3 MB, free: 15.05 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005435/0.104, allocations: 15.88 kB / 498.4 MB, free: 15.04 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000419/0.1045, allocations: 166.6 kB / 498.5 MB, free: 14.88 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009582/0.1055, allocations: 441.4 kB / 499 MB, free: 14.44 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008843/0.1064, allocations: 315.6 kB / 499.3 MB, free: 14.13 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002268/0.1086, allocations: 2.173 MB / 0.4897 GB, free: 11.95 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001903/0.1105, allocations: 1.594 MB / 0.4912 GB, free: 10.32 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001273/0.1118, allocations: 0.8534 MB / 0.4921 GB, free: 9.461 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001624/0.1135, allocations: 0.9737 MB / 0.493 GB, free: 8.484 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005578/0.114, allocations: 232 kB / 0.4932 GB, free: 8.258 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006431/0.1147, allocations: 236 kB / 0.4935 GB, free: 8.027 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007791/0.1155, allocations: 0.6859 MB / 0.4941 GB, free: 7.34 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001423/0.1169, allocations: 0.9144 MB / 0.495 GB, free: 6.422 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002407/0.1193, allocations: 2.563 MB / 0.4975 GB, free: 3.852 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.1194, allocations: 3.938 kB / 0.4975 GB, free: 3.848 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.1194, allocations: 0 / 0.4975 GB, free: 3.848 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.038e-05/0.1194, allocations: 0 / 0.4975 GB, free: 3.848 MB / 382.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.005341/0.1248, allocations: 2.008 MB / 0.4995 GB, free: 1.785 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.918e-05/0.1248, allocations: 8.031 kB / 0.4995 GB, free: 1.777 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004375/0.1253, allocations: 151.2 kB / 0.4997 GB, free: 1.629 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001503/0.1268, allocations: 0.8757 MB / 0.5005 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001128/0.1269, allocations: 112.6 kB / 0.5006 GB, free: 0.5938 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003039/0.1272, allocations: 136.3 kB / 0.5007 GB, free: 472 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2062/0.3334, allocations: 1.587 MB / 0.5023 GB, free: 21.18 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.103e-05/0.3335, allocations: 0.625 kB / 0.5023 GB, free: 21.18 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001379/0.3336, allocations: 49.22 kB / 0.5023 GB, free: 21.18 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.662e-05/0.3337, allocations: 29.8 kB / 0.5024 GB, free: 21.18 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002332/0.336, allocations: 1.409 MB / 0.5037 GB, free: 21.17 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009553/0.3456, allocations: 7.086 MB / 0.5107 GB, free: 18.51 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00471/0.3503, allocations: 1.878 MB / 0.5125 GB, free: 18.48 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001144/0.3515, allocations: 0.7377 MB / 0.5132 GB, free: 18.46 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.76e-05/0.3516, allocations: 14.8 kB / 0.5132 GB, free: 18.46 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.873e-05/0.3516, allocations: 45.48 kB / 0.5133 GB, free: 18.43 MB / 382.1 MB Notification: Performance of pre-optimization done (n=103): time 2.735e-06/0.3516, allocations: 0 / 0.5133 GB, free: 18.43 MB / 382.1 MB Notification: Performance of matching and sorting (n=103): time 0.006649/0.3583, allocations: 3.931 MB / 0.5171 GB, free: 16.38 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.964e-05/0.3584, allocations: 63.02 kB / 0.5172 GB, free: 16.32 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001095/0.3595, allocations: 0.6744 MB / 0.5178 GB, free: 16.01 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001456/0.3596, allocations: 49.42 kB / 0.5179 GB, free: 15.96 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003503/0.36, allocations: 0.5104 MB / 0.5184 GB, free: 15.55 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004206/0.3604, allocations: 414.8 kB / 0.5188 GB, free: 15.24 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005252/0.3609, allocations: 240.1 kB / 0.519 GB, free: 15.13 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000156/0.3611, allocations: 414.8 kB / 0.5194 GB, free: 14.78 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001342/0.3625, allocations: 0.8398 MB / 0.5202 GB, free: 14.44 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001486/0.3639, allocations: 1.004 MB / 0.5212 GB, free: 13.91 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01368/0.3776, allocations: 4.463 MB / 0.5256 GB, free: 12.17 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-05/0.3777, allocations: 4.875 kB / 0.5256 GB, free: 12.17 MB / 382.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.005177/0.3829, allocations: 2.471 MB / 0.528 GB, free: 10.82 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.232e-05/0.383, allocations: 11.27 kB / 0.528 GB, free: 10.81 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.73e-05/0.383, allocations: 8.719 kB / 0.528 GB, free: 10.81 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001733/0.3847, allocations: 0.536 MB / 0.5285 GB, free: 10.47 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002016/0.3868, allocations: 402.7 kB / 0.5289 GB, free: 10.38 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01539/0.4022, allocations: 23.05 MB / 0.5514 GB, free: 3.195 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001511/0.4037, allocations: 141.8 kB / 0.5516 GB, free: 3.098 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003316/0.4041, allocations: 50.55 kB / 0.5516 GB, free: 3.082 MB / 398.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.001068/0.4052, allocations: 426.6 kB / 0.552 GB, free: 2.77 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003276/0.4055, allocations: 92.39 kB / 0.5521 GB, free: 2.723 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003769/0.4093, allocations: 1.985 MB / 0.554 GB, free: 1.184 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.437e-05/0.4093, allocations: 11.98 kB / 0.554 GB, free: 1.172 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.742e-05/0.4093, allocations: 6.188 kB / 0.5541 GB, free: 1.168 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.296e-05/0.4093, allocations: 3.984 kB / 0.5541 GB, free: 1.164 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00657/0.4159, allocations: 3.717 MB / 0.5577 GB, free: 13.35 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-05/0.416, allocations: 4 kB / 0.5577 GB, free: 13.34 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002035/0.418, allocations: 339.6 kB / 0.558 GB, free: 13.01 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001385/0.4194, allocations: 480.8 kB / 0.5585 GB, free: 12.5 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001848/0.4196, allocations: 79.73 kB / 0.5585 GB, free: 12.42 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01596/0.4356, allocations: 22.15 MB / 0.5802 GB, free: 4.172 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.111e-06/0.4356, allocations: 3.938 kB / 0.5802 GB, free: 4.168 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005605/0.4413, allocations: 2.725 MB / 0.5828 GB, free: 1.359 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000342/0.4416, allocations: 195.7 kB / 0.583 GB, free: 1.148 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002744/0.4419, allocations: 67.97 kB / 0.5831 GB, free: 1.082 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008664/0.4428, allocations: 51.94 kB / 0.5831 GB, free: 1.031 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000308/0.4431, allocations: 96.75 kB / 0.5832 GB, free: 0.9336 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.908e-05/0.4432, allocations: 27.98 kB / 0.5833 GB, free: 0.9062 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0006689/0.4439, allocations: 483 kB / 0.5837 GB, free: 444 kB / 430.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4439, allocations: 0 / 0.5837 GB, free: 444 kB / 430.1 MB Notification: Performance of remove unused functions: time 0.001797/0.4457, allocations: 0.4992 MB / 0.5842 GB, free: 15.93 MB / 446.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.0003111/0.446, allocations: 176.3 kB / 0.5844 GB, free: 15.75 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004698/0.4507, allocations: 3.429 MB / 0.5877 GB, free: 12.13 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.789e-06/0.4508, allocations: 0 / 0.5877 GB, free: 12.13 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002847/0.4536, allocations: 2.456 MB / 0.5901 GB, free: 9.484 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001467/0.4551, allocations: 326.6 kB / 0.5904 GB, free: 9.172 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009658/0.4648, allocations: 5.65 MB / 0.596 GB, free: 3.52 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001148/0.4659, allocations: 1.275 MB / 0.5972 GB, free: 2.215 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006281/0.4666, allocations: 87.42 kB / 0.5973 GB, free: 2.133 MB / 446.1 MB Notification: Performance of SimCode: time 9.62e-07/0.4666, allocations: 0 / 0.5973 GB, free: 2.133 MB / 446.1 MB Notification: Performance of Templates: time 0.08158/0.5482, allocations: 81.81 MB / 0.6772 GB, free: 232 kB / 0.5137 GB 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)