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: "" <> buildModelFMU(AES.Coursework.ThermSys_Generation.Heater_control_case_004,fileNamePrefix="AES_AES_Coursework_ThermSys_Generation_Heater_control_case_004",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_Generation.Heater_control_case_004,fileNamePrefix="AES_AES_Coursework_ThermSys_Generation_Heater_control_case_004",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001688/0.001688, 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.002137/0.002137, allocations: 194.7 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.347/1.347, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1941/0.1941, allocations: 22.35 MB / 312.7 MB, free: 12.54 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001325/0.001325, allocations: 67.89 kB / 380.9 MB, free: 10.51 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2408/0.2421, allocations: 54.94 MB / 435.9 MB, free: 39.68 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Generation.Heater_control_case_004): time 0.004344/0.2465, allocations: 4.404 MB / 440.3 MB, free: 36.5 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001872/0.2484, allocations: 1.278 MB / 441.6 MB, free: 35.57 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003576/0.2488, allocations: 18.06 kB / 441.6 MB, free: 35.56 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003097/0.2491, allocations: 168.2 kB / 441.7 MB, free: 35.45 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006326/0.2498, allocations: 439.7 kB / 442.2 MB, free: 35.18 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006306/0.2504, allocations: 303.3 kB / 442.5 MB, free: 35 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001333/0.2518, allocations: 2.179 MB / 444.6 MB, free: 33.93 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001437/0.2532, allocations: 1.593 MB / 446.2 MB, free: 33.25 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009087/0.2541, allocations: 0.8343 MB / 447.1 MB, free: 32.86 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001041/0.2552, allocations: 0.9826 MB / 448.1 MB, free: 32.42 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000283/0.2555, allocations: 230.8 kB / 448.3 MB, free: 32.42 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003257/0.2558, allocations: 230.3 kB / 448.5 MB, free: 32.42 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004001/0.2562, allocations: 0.6904 MB / 449.2 MB, free: 32.09 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00074/0.257, allocations: 0.9235 MB / 450.1 MB, free: 31.53 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001508/0.2585, allocations: 2.551 MB / 452.7 MB, free: 30.62 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.2585, allocations: 0 / 452.7 MB, free: 30.62 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.2585, allocations: 3.5 kB / 452.7 MB, free: 30.62 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.152e-05/0.2586, allocations: 0 / 452.7 MB, free: 30.62 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.004027/0.2626, allocations: 2.013 MB / 454.7 MB, free: 29.56 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.099e-05/0.2626, allocations: 10.56 kB / 454.7 MB, free: 29.56 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002231/0.2629, allocations: 186.6 kB / 454.9 MB, free: 29.44 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002857/0.2632, allocations: 148.5 kB / 455 MB, free: 29.37 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001181/0.2644, allocations: 0.8718 MB / 455.9 MB, free: 28.8 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001023/0.2645, allocations: 118.7 kB / 456 MB, free: 28.72 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002376/0.2647, allocations: 137.4 kB / 456.1 MB, free: 28.67 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002786/0.2675, allocations: 1.587 MB / 457.7 MB, free: 28.04 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.144e-05/0.2676, allocations: 5.281 kB / 457.7 MB, free: 28.03 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001326/0.2677, allocations: 45.16 kB / 457.8 MB, free: 28 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.408e-05/0.2677, allocations: 28.72 kB / 457.8 MB, free: 28 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002513/0.2703, allocations: 1.407 MB / 459.2 MB, free: 27.46 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01094/0.2812, allocations: 7.131 MB / 466.4 MB, free: 22.84 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004658/0.2859, allocations: 1.875 MB / 468.2 MB, free: 22.21 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001175/0.2871, allocations: 0.7388 MB / 469 MB, free: 21.89 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.284e-05/0.2872, allocations: 14.61 kB / 469 MB, free: 21.89 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.356e-05/0.2872, allocations: 48.39 kB / 469 MB, free: 21.84 MB / 350.1 MB Notification: Performance of pre-optimization done (n=103): time 2.945e-06/0.2872, allocations: 0 / 469 MB, free: 21.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=103): time 0.00677/0.294, allocations: 3.92 MB / 472.9 MB, free: 19.32 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.439e-05/0.2941, allocations: 71.27 kB / 473 MB, free: 19.25 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009142/0.295, allocations: 0.6785 MB / 473.7 MB, free: 18.94 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001017/0.2951, allocations: 44.83 kB / 473.7 MB, free: 18.89 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002507/0.2954, allocations: 0.5054 MB / 474.2 MB, free: 18.49 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003362/0.2957, allocations: 418.1 kB / 474.7 MB, free: 18.17 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004117/0.2961, allocations: 240.6 kB / 474.9 MB, free: 18.05 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001249/0.2963, allocations: 414.6 kB / 475.3 MB, free: 17.7 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001321/0.2976, allocations: 0.8481 MB / 476.1 MB, free: 17.36 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001424/0.299, allocations: 1.002 MB / 477.1 MB, free: 16.82 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01351/0.3126, allocations: 4.486 MB / 481.6 MB, free: 14.76 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.432e-05/0.3126, allocations: 1.125 kB / 481.6 MB, free: 14.76 MB / 350.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004064/0.3167, allocations: 2.465 MB / 484.1 MB, free: 12.41 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.587e-05/0.3167, allocations: 8 kB / 484.1 MB, free: 12.4 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.231e-05/0.3168, allocations: 4 kB / 484.1 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001558/0.3183, allocations: 0.5395 MB / 484.6 MB, free: 11.81 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00174/0.3201, allocations: 407.5 kB / 485 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01518/0.3353, allocations: 23.05 MB / 0.4962 GB, free: 2.195 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001553/0.3369, allocations: 154.7 kB / 0.4963 GB, free: 2.043 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002945/0.3372, allocations: 48 kB / 0.4964 GB, free: 1.996 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.0009657/0.3382, allocations: 434.7 kB / 0.4968 GB, free: 1.562 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002798/0.3384, allocations: 94.88 kB / 0.4969 GB, free: 1.469 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003641/0.3421, allocations: 1.983 MB / 0.4988 GB, free: 15.42 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.073e-05/0.3421, allocations: 12 kB / 0.4988 GB, free: 15.41 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.022e-05/0.3421, allocations: 7.984 kB / 0.4988 GB, free: 15.4 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.181e-05/0.3422, allocations: 3.984 kB / 0.4988 GB, free: 15.4 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006105/0.3483, allocations: 3.711 MB / 0.5025 GB, free: 11.56 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.051e-06/0.3483, allocations: 4 kB / 0.5025 GB, free: 11.55 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00207/0.3504, allocations: 343.6 kB / 0.5028 GB, free: 11.22 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001402/0.3518, allocations: 480.6 kB / 0.5033 GB, free: 10.7 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002137/0.352, allocations: 67.95 kB / 0.5033 GB, free: 10.64 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01549/0.3675, allocations: 22.16 MB / 0.525 GB, free: 2.371 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.462e-06/0.3676, allocations: 7.938 kB / 0.525 GB, free: 2.363 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005188/0.3728, allocations: 2.73 MB / 0.5276 GB, free: 15.55 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004422/0.3732, allocations: 195.7 kB / 0.5278 GB, free: 15.34 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002287/0.3735, allocations: 55.98 kB / 0.5279 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007761/0.3743, allocations: 55.92 kB / 0.5279 GB, free: 15.23 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003007/0.3746, allocations: 104.7 kB / 0.528 GB, free: 15.13 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001014/0.3747, allocations: 35.98 kB / 0.5281 GB, free: 15.09 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0006111/0.3753, allocations: 471 kB / 0.5285 GB, free: 14.64 MB / 414.1 MB Notification: Performance of sort global known variables: time 5.61e-07/0.3753, allocations: 0 / 0.5285 GB, free: 14.64 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001646/0.377, allocations: 0.4913 MB / 0.529 GB, free: 14.14 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.004931/0.3819, allocations: 3.356 MB / 0.5323 GB, free: 10.69 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005546/0.3875, allocations: 3.996 MB / 0.5362 GB, free: 6.5 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.773e-06/0.3875, allocations: 4.125 kB / 0.5362 GB, free: 6.496 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002739/0.3903, allocations: 2.459 MB / 0.5386 GB, free: 3.844 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001491/0.3918, allocations: 323.8 kB / 0.5389 GB, free: 3.531 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02621/0.418, allocations: 16.01 MB / 0.5545 GB, free: 3.012 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001067/0.4191, allocations: 1.276 MB / 0.5558 GB, free: 1.703 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.00124/0.4204, allocations: 367.8 kB / 0.5561 GB, free: 1.34 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007635/0.4211, allocations: 471.3 kB / 0.5566 GB, free: 0.8789 MB / 430.1 MB Notification: Performance of SimCode: time 7.71e-07/0.4211, allocations: 0 / 0.5566 GB, free: 0.8789 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2435/0.6646, allocations: 34.07 MB / 0.5898 GB, free: 132.7 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.81/10.48, allocations: 6.859 kB / 0.5898 GB, free: 132.7 MB / 462.1 MB (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 & python3 -m fmpy simulate --output-file AES_AES.Coursework.ThermSys_Generation.Heater_control_case_004_res.csv --start-time 0 --stop-time 10000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 20 AES_AES_Coursework_ThermSys_Generation_Heater_control_case_004.fmu > AES_AES.Coursework.ThermSys_Generation.Heater_control_case_004.pipe 2>&1)