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.00171/0.00171, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001763/0.001763, allocations: 197.8 kB / 16.14 MB, free: 6.645 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.297/1.297, allocations: 222.9 MB / 239.8 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.197/0.197, allocations: 22.36 MB / 312.3 MB, free: 12.68 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001971/0.001971, allocations: 63.91 kB / 380.1 MB, free: 11.09 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2931/0.2951, allocations: 54.94 MB / 435.1 MB, free: 39.48 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Generation.Heater_control_case_004): time 0.004464/0.2997, allocations: 4.589 MB / 439.6 MB, free: 36.16 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00218/0.3019, allocations: 1.287 MB / 440.9 MB, free: 35.23 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003526/0.3022, allocations: 15.91 kB / 440.9 MB, free: 35.22 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003322/0.3026, allocations: 132.1 kB / 441.1 MB, free: 35.15 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006345/0.3032, allocations: 420.5 kB / 441.5 MB, free: 34.9 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006657/0.3039, allocations: 278.8 kB / 441.8 MB, free: 34.71 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001645/0.3056, allocations: 2.662 MB / 444.4 MB, free: 33.75 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001213/0.3068, allocations: 1.347 MB / 445.8 MB, free: 33.25 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007462/0.3076, allocations: 0.6835 MB / 446.5 MB, free: 32.99 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001063/0.3086, allocations: 0.9893 MB / 447.4 MB, free: 32.61 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002167/0.3089, allocations: 114 kB / 447.6 MB, free: 32.61 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002769/0.3091, allocations: 114.7 kB / 447.7 MB, free: 32.61 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004045/0.3096, allocations: 0.5735 MB / 448.2 MB, free: 32.4 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006375/0.3102, allocations: 0.8041 MB / 449 MB, free: 31.95 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001425/0.3116, allocations: 2.469 MB / 451.5 MB, free: 31.11 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.3116, allocations: 2.656 kB / 451.5 MB, free: 31.11 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.3117, allocations: 0 / 451.5 MB, free: 31.11 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.837e-05/0.3117, allocations: 0 / 451.5 MB, free: 31.11 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.004083/0.3158, allocations: 2.011 MB / 453.5 MB, free: 30.06 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.155e-05/0.3158, allocations: 13.56 kB / 453.5 MB, free: 30.05 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002677/0.3161, allocations: 150 kB / 453.7 MB, free: 29.98 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001138/0.3173, allocations: 0.8631 MB / 454.5 MB, free: 29.41 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001095/0.3174, allocations: 119.2 kB / 454.7 MB, free: 29.34 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002602/0.3176, allocations: 143.4 kB / 454.8 MB, free: 29.28 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002729/0.3204, allocations: 1.584 MB / 456.4 MB, free: 28.65 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.89e-05/0.3204, allocations: 0.7969 kB / 456.4 MB, free: 28.65 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001298/0.3206, allocations: 50.22 kB / 456.4 MB, free: 28.61 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.739e-05/0.3206, allocations: 32.75 kB / 456.5 MB, free: 28.61 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002217/0.3228, allocations: 1.405 MB / 457.9 MB, free: 28.07 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01022/0.333, allocations: 7.121 MB / 465 MB, free: 23.45 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004966/0.338, allocations: 1.872 MB / 466.9 MB, free: 22.83 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001144/0.3392, allocations: 0.7419 MB / 467.6 MB, free: 22.5 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.312e-05/0.3393, allocations: 18.42 kB / 467.6 MB, free: 22.5 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.632e-05/0.3393, allocations: 44.92 kB / 467.7 MB, free: 22.45 MB / 350.1 MB Notification: Performance of pre-optimization done (n=103): time 3.226e-06/0.3394, allocations: 0 / 467.7 MB, free: 22.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=103): time 0.006497/0.3459, allocations: 3.912 MB / 471.6 MB, free: 19.95 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.1e-05/0.3459, allocations: 70.5 kB / 471.7 MB, free: 19.88 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001067/0.347, allocations: 0.6836 MB / 472.3 MB, free: 19.56 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.984e-05/0.3471, allocations: 45.3 kB / 472.4 MB, free: 19.51 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003406/0.3474, allocations: 0.5041 MB / 472.9 MB, free: 19.11 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003842/0.3478, allocations: 414.4 kB / 473.3 MB, free: 18.79 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004516/0.3483, allocations: 244.4 kB / 473.5 MB, free: 18.68 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001647/0.3484, allocations: 414.2 kB / 473.9 MB, free: 18.32 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001311/0.3498, allocations: 0.8403 MB / 474.8 MB, free: 17.98 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001405/0.3512, allocations: 1.003 MB / 475.8 MB, free: 17.45 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01343/0.3646, allocations: 4.482 MB / 480.3 MB, free: 15.3 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.166e-05/0.3647, allocations: 2.469 kB / 480.3 MB, free: 15.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004258/0.3689, allocations: 2.465 MB / 482.7 MB, free: 13.23 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.309e-05/0.369, allocations: 8 kB / 482.7 MB, free: 13.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.523e-05/0.369, allocations: 4 kB / 482.7 MB, free: 13.22 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001587/0.3706, allocations: 0.5317 MB / 483.3 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001705/0.3723, allocations: 407.5 kB / 483.7 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01423/0.3866, allocations: 21.42 MB / 0.4933 GB, free: 4.758 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001738/0.3883, allocations: 166.7 kB / 0.4934 GB, free: 4.594 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004208/0.3888, allocations: 47.98 kB / 0.4935 GB, free: 4.547 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.001241/0.39, allocations: 433.3 kB / 0.4939 GB, free: 4.113 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003752/0.3904, allocations: 87.06 kB / 0.494 GB, free: 4.027 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004151/0.3946, allocations: 1.994 MB / 0.4959 GB, free: 1.973 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.236e-05/0.3946, allocations: 12 kB / 0.4959 GB, free: 1.961 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.952e-05/0.3946, allocations: 7.938 kB / 0.4959 GB, free: 1.953 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.186e-05/0.3946, allocations: 3.984 kB / 0.4959 GB, free: 1.949 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007002/0.4017, allocations: 3.704 MB / 0.4995 GB, free: 14.11 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.356e-06/0.4017, allocations: 7.938 kB / 0.4995 GB, free: 14.11 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001987/0.4037, allocations: 343.6 kB / 0.4999 GB, free: 13.77 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001365/0.4051, allocations: 476.7 kB / 0.5003 GB, free: 13.26 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001915/0.4053, allocations: 71.95 kB / 0.5004 GB, free: 13.19 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01537/0.4206, allocations: 20.57 MB / 0.5205 GB, free: 6.605 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/0.4207, allocations: 4 kB / 0.5205 GB, free: 6.602 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005448/0.4261, allocations: 2.719 MB / 0.5231 GB, free: 3.797 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000416/0.4266, allocations: 191.8 kB / 0.5233 GB, free: 3.59 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002956/0.4269, allocations: 67.97 kB / 0.5234 GB, free: 3.523 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008897/0.4278, allocations: 75.7 kB / 0.5235 GB, free: 3.449 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002892/0.4281, allocations: 100.8 kB / 0.5236 GB, free: 3.352 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.188e-05/0.4282, allocations: 31.98 kB / 0.5236 GB, free: 3.32 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006309/0.4288, allocations: 475 kB / 0.524 GB, free: 2.859 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.4288, allocations: 0 / 0.524 GB, free: 2.859 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001776/0.4306, allocations: 0.5029 MB / 0.5245 GB, free: 2.355 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.0002923/0.4309, allocations: 180.3 kB / 0.5247 GB, free: 2.172 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004479/0.4354, allocations: 3.414 MB / 0.528 GB, free: 14.56 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.4354, allocations: 7.938 kB / 0.5281 GB, free: 14.55 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002665/0.4381, allocations: 2.452 MB / 0.5304 GB, free: 11.91 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001267/0.4394, allocations: 307.8 kB / 0.5307 GB, free: 11.61 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009662/0.449, allocations: 6.084 MB / 0.5367 GB, free: 5.488 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001078/0.4501, allocations: 1.27 MB / 0.5379 GB, free: 4.191 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001254/0.4514, allocations: 367.8 kB / 0.5383 GB, free: 3.828 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003929/0.4518, allocations: 83.42 kB / 0.5384 GB, free: 3.746 MB / 414.1 MB Notification: Performance of SimCode: time 9.62e-07/0.4518, allocations: 4 kB / 0.5384 GB, free: 3.742 MB / 414.1 MB Notification: Performance of Templates: time 0.03666/0.4885, allocations: 21.91 MB / 0.5597 GB, free: 14.08 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)