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.0009465/0.0009464, allocations: 99.55 kB / 15.05 MB, free: 1.105 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.0009034/0.0009034, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.433/1.433, allocations: 223.2 MB / 239.9 MB, free: 5.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2403/0.2403, allocations: 22.33 MB / 313.3 MB, free: 13.14 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004675/0.0004676, allocations: 8 kB / 381.8 MB, free: 10.57 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3892/0.3897, allocations: 55.98 MB / 437.8 MB, free: 39.41 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Generation.Heater_control_case_004): time 0.003227/0.3929, allocations: 3.633 MB / 441.4 MB, free: 36.77 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002059/0.395, allocations: 1.309 MB / 442.7 MB, free: 35.83 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003154/0.3954, allocations: 16.25 kB / 442.8 MB, free: 35.82 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002693/0.3956, allocations: 139.4 kB / 442.9 MB, free: 35.74 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004629/0.3961, allocations: 286.5 kB / 443.2 MB, free: 35.53 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006134/0.3967, allocations: 197.8 kB / 443.4 MB, free: 35.43 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001078/0.3978, allocations: 1.131 MB / 444.5 MB, free: 34.84 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001227/0.3991, allocations: 1.115 MB / 445.6 MB, free: 34.49 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006434/0.3997, allocations: 0.5895 MB / 446.2 MB, free: 34.24 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007527/0.4005, allocations: 0.6518 MB / 446.9 MB, free: 34 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000152/0.4006, allocations: 93.31 kB / 446.9 MB, free: 34 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001703/0.4008, allocations: 90.03 kB / 447 MB, free: 34 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003735/0.4012, allocations: 495.6 kB / 447.5 MB, free: 33.82 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002523/0.4014, allocations: 305.3 kB / 447.8 MB, free: 33.65 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001365/0.4028, allocations: 2.03 MB / 449.8 MB, free: 33.27 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.675e-06/0.4028, allocations: 0 / 449.8 MB, free: 33.27 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.4028, allocations: 0 / 449.8 MB, free: 33.27 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.29e-05/0.4029, allocations: 0 / 449.8 MB, free: 33.27 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.003706/0.4066, allocations: 1.784 MB / 451.6 MB, free: 32.38 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.807e-05/0.4066, allocations: 10.5 kB / 451.6 MB, free: 32.38 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003173/0.4069, allocations: 151.3 kB / 451.8 MB, free: 32.3 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001353/0.4083, allocations: 0.8401 MB / 452.6 MB, free: 31.76 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001/0.4084, allocations: 116 kB / 452.7 MB, free: 31.68 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002316/0.4087, allocations: 141.8 kB / 452.9 MB, free: 31.63 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002467/0.4111, allocations: 1.569 MB / 454.5 MB, free: 30.99 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.748e-05/0.4112, allocations: 11.41 kB / 454.5 MB, free: 30.98 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001453/0.4113, allocations: 46.7 kB / 454.5 MB, free: 30.95 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.258e-05/0.4114, allocations: 28.22 kB / 454.5 MB, free: 30.95 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002227/0.4136, allocations: 1.399 MB / 455.9 MB, free: 30.41 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01068/0.4243, allocations: 7.179 MB / 463.1 MB, free: 25.78 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004888/0.4292, allocations: 1.866 MB / 465 MB, free: 25.16 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.289e-05/0.4293, allocations: 14.66 kB / 465 MB, free: 25.16 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.382e-05/0.4294, allocations: 49.3 kB / 465 MB, free: 25.11 MB / 350.1 MB Notification: Performance of pre-optimization done (n=103): time 2.996e-06/0.4294, allocations: 0.5625 kB / 465 MB, free: 25.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=103): time 0.007386/0.4368, allocations: 3.99 MB / 469 MB, free: 22.57 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.94e-05/0.4368, allocations: 67.41 kB / 469.1 MB, free: 22.5 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00109/0.4379, allocations: 0.6695 MB / 469.8 MB, free: 22.19 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001194/0.4381, allocations: 40.67 kB / 469.8 MB, free: 22.15 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003367/0.4384, allocations: 0.5154 MB / 470.3 MB, free: 21.74 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000427/0.4388, allocations: 414.7 kB / 470.7 MB, free: 21.42 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.458e-05/0.4389, allocations: 25.5 kB / 470.8 MB, free: 21.4 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001715/0.4391, allocations: 423.9 kB / 471.2 MB, free: 21.04 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001425/0.4406, allocations: 0.8324 MB / 472 MB, free: 20.7 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001413/0.442, allocations: 0.9948 MB / 473 MB, free: 20.16 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001595/0.4436, allocations: 0.955 MB / 473.9 MB, free: 19.73 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.21e-05/0.4436, allocations: 2.406 kB / 474 MB, free: 19.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004943/0.4486, allocations: 2.478 MB / 476.4 MB, free: 18.63 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.902e-05/0.4486, allocations: 11.84 kB / 476.4 MB, free: 18.63 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.268e-05/0.4486, allocations: 4.188 kB / 476.4 MB, free: 18.63 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001932/0.4506, allocations: 0.5483 MB / 477 MB, free: 18.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002106/0.4527, allocations: 406.3 kB / 477.4 MB, free: 18.35 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01662/0.4693, allocations: 21.6 MB / 499 MB, free: 12.9 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001901/0.4713, allocations: 160.3 kB / 499.1 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004235/0.4717, allocations: 48.48 kB / 499.2 MB, free: 12.78 MB / 366.1 MB Warning: Assuming fixed start value for the following 3 variables: CH.Ec:VARIABLE(flow=false fixed = true ) type: Real CH.xpi:VARIABLE(start = 0.0 fixed = true protected = 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 (160): * Single equations (assignments): 145 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 15 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 15 {(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%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001504/0.4733, allocations: 432.4 kB / 499.6 MB, free: 12.38 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004309/0.4737, allocations: 90.95 kB / 499.7 MB, free: 12.29 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004639/0.4783, allocations: 1.986 MB / 0.4899 GB, free: 10.25 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-05/0.4784, allocations: 19.95 kB / 0.4899 GB, free: 10.23 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.461e-05/0.4784, allocations: 4 kB / 0.49 GB, free: 10.22 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.388e-05/0.4784, allocations: 3.984 kB / 0.49 GB, free: 10.22 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007439/0.4859, allocations: 3.7 MB / 0.4936 GB, free: 6.391 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.297e-06/0.4859, allocations: 8.031 kB / 0.4936 GB, free: 6.383 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002017/0.4879, allocations: 335.6 kB / 0.4939 GB, free: 6.055 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001419/0.4894, allocations: 480.5 kB / 0.4944 GB, free: 5.539 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003298/0.4897, allocations: 67.92 kB / 0.4944 GB, free: 5.473 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01758/0.5073, allocations: 20.75 MB / 0.5147 GB, free: 14.72 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.41e-06/0.5074, allocations: 3.984 kB / 0.5147 GB, free: 14.72 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005773/0.5131, allocations: 2.818 MB / 0.5174 GB, free: 11.77 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004953/0.5137, allocations: 191.8 kB / 0.5176 GB, free: 11.56 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003675/0.514, allocations: 63.97 kB / 0.5177 GB, free: 11.5 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001005/0.5151, allocations: 71.77 kB / 0.5177 GB, free: 11.43 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003521/0.5154, allocations: 96.81 kB / 0.5178 GB, free: 11.33 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001108/0.5156, allocations: 31.98 kB / 0.5179 GB, free: 11.3 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0007618/0.5163, allocations: 467 kB / 0.5183 GB, free: 10.84 MB / 398.1 MB Notification: Performance of sort global known variables: time 2e-07/0.5163, allocations: 0 / 0.5183 GB, free: 10.84 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002237/0.5186, allocations: 0.5029 MB / 0.5188 GB, free: 10.34 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 (linear and non-linear blocks): 0 * Torn equation systems: 15 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 15 {(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%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003266/0.5189, allocations: 188.2 kB / 0.519 GB, free: 10.14 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004964/0.5239, allocations: 3.421 MB / 0.5223 GB, free: 6.531 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.093e-06/0.5239, allocations: 0 / 0.5223 GB, free: 6.531 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002994/0.5269, allocations: 2.472 MB / 0.5247 GB, free: 3.867 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001415/0.5284, allocations: 289.8 kB / 0.525 GB, free: 3.59 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01109/0.5395, allocations: 6.533 MB / 0.5314 GB, free: 13.02 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001436/0.5409, allocations: 1.298 MB / 0.5327 GB, free: 11.68 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001673/0.5426, allocations: 367.8 kB / 0.533 GB, free: 11.32 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004755/0.5431, allocations: 75.44 kB / 0.5331 GB, free: 11.25 MB / 414.1 MB Notification: Performance of SimCode: time 1.453e-06/0.5431, allocations: 0 / 0.5331 GB, free: 11.25 MB / 414.1 MB Notification: Performance of Templates: time 0.03959/0.5827, allocations: 20.92 MB / 0.5535 GB, free: 6.559 MB / 430.1 MB make -j1 -f AES_AES.Coursework.ThermSys_Generation.Heater_control_case_004.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: