Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003.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_003,fileNamePrefix="AES_AES_Coursework_ThermSys_Generation_Heater_control_case_003",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_Generation.Heater_control_case_003,fileNamePrefix="AES_AES_Coursework_ThermSys_Generation_Heater_control_case_003",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.001141/0.001141, 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.001268/0.001268, allocations: 193.4 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.336/1.336, allocations: 222.9 MB / 240.2 MB, free: 4.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1907/0.1907, allocations: 22.35 MB / 312.7 MB, free: 12.55 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001317/0.001317, allocations: 59.91 kB / 380.9 MB, free: 10.48 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2509/0.2522, allocations: 54.94 MB / 435.9 MB, free: 39.85 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Generation.Heater_control_case_003): time 0.004467/0.2567, allocations: 4.391 MB / 440.3 MB, free: 36.68 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002136/0.2589, allocations: 1.267 MB / 441.5 MB, free: 35.75 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005495/0.2595, allocations: 12.59 kB / 441.5 MB, free: 35.75 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004149/0.2599, allocations: 170.2 kB / 441.7 MB, free: 35.64 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008405/0.2608, allocations: 434.6 kB / 442.1 MB, free: 35.38 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007844/0.2615, allocations: 303.2 kB / 442.4 MB, free: 35.19 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001765/0.2633, allocations: 2.147 MB / 444.6 MB, free: 34.14 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001802/0.2651, allocations: 1.596 MB / 446.2 MB, free: 33.46 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001198/0.2664, allocations: 0.8185 MB / 447 MB, free: 33.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001316/0.2677, allocations: 0.987 MB / 448 MB, free: 32.62 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000399/0.2681, allocations: 237 kB / 448.2 MB, free: 32.62 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003379/0.2684, allocations: 236 kB / 448.4 MB, free: 32.62 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004511/0.2689, allocations: 0.7004 MB / 449.1 MB, free: 32.29 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008288/0.2697, allocations: 0.9175 MB / 450.1 MB, free: 31.73 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001596/0.2713, allocations: 2.577 MB / 452.6 MB, free: 30.81 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.512e-06/0.2714, allocations: 7.359 kB / 452.6 MB, free: 30.8 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.484e-06/0.2714, allocations: 3.938 kB / 452.7 MB, free: 30.8 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.777e-05/0.2714, allocations: 0 / 452.7 MB, free: 30.8 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: 300 * Number of variables: 300 Notification: Performance of Generate backend data structure: time 0.00392/0.2753, allocations: 2.02 MB / 454.7 MB, free: 29.75 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.235e-05/0.2754, allocations: 9.281 kB / 454.7 MB, free: 29.75 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002209/0.2756, allocations: 183.4 kB / 454.9 MB, free: 29.63 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002798/0.2759, allocations: 146 kB / 455 MB, free: 29.56 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001087/0.277, allocations: 0.8614 MB / 455.9 MB, free: 28.99 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001123/0.2771, allocations: 113.7 kB / 456 MB, free: 28.92 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000222/0.2773, allocations: 138 kB / 456.1 MB, free: 28.87 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002548/0.2799, allocations: 1.59 MB / 457.7 MB, free: 28.23 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.695e-05/0.2799, allocations: 4 kB / 457.7 MB, free: 28.22 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00013/0.2801, allocations: 46.25 kB / 457.8 MB, free: 28.19 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.37e-05/0.2801, allocations: 28.19 kB / 457.8 MB, free: 28.19 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002424/0.2825, allocations: 1.424 MB / 459.2 MB, free: 27.64 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009881/0.2924, allocations: 7.163 MB / 466.4 MB, free: 23 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004522/0.297, allocations: 1.888 MB / 468.3 MB, free: 22.37 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001034/0.2981, allocations: 0.7269 MB / 469 MB, free: 22.05 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.103e-05/0.2981, allocations: 19.31 kB / 469 MB, free: 22.04 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.009e-05/0.2982, allocations: 39.69 kB / 469 MB, free: 22 MB / 350.1 MB Notification: Performance of pre-optimization done (n=102): time 3.006e-06/0.2982, allocations: 4 kB / 469 MB, free: 22 MB / 350.1 MB Notification: Performance of matching and sorting (n=102): time 0.006492/0.3047, allocations: 3.935 MB / 473 MB, free: 19.47 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.688e-05/0.3047, allocations: 62.31 kB / 473 MB, free: 19.41 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008733/0.3056, allocations: 0.6906 MB / 473.7 MB, free: 19.09 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001029/0.3057, allocations: 41.23 kB / 473.8 MB, free: 19.04 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002426/0.306, allocations: 0.4963 MB / 474.3 MB, free: 18.65 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003418/0.3063, allocations: 414.2 kB / 474.7 MB, free: 18.33 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004168/0.3067, allocations: 238.2 kB / 474.9 MB, free: 18.21 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001352/0.3069, allocations: 410.3 kB / 475.3 MB, free: 17.86 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001247/0.3081, allocations: 0.8433 MB / 476.1 MB, free: 17.52 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00128/0.3094, allocations: 1.006 MB / 477.2 MB, free: 16.99 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01228/0.3217, allocations: 4.466 MB / 481.6 MB, free: 14.84 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.888e-06/0.3218, allocations: 1.344 kB / 481.6 MB, free: 14.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.003781/0.3255, allocations: 2.472 MB / 484.1 MB, free: 12.38 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.134e-05/0.3256, allocations: 10.19 kB / 484.1 MB, free: 12.37 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.209e-05/0.3256, allocations: 8 kB / 484.1 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001528/0.3271, allocations: 0.5356 MB / 484.6 MB, free: 11.78 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001595/0.3287, allocations: 387.6 kB / 485 MB, free: 11.4 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01415/0.3429, allocations: 23.05 MB / 0.4962 GB, free: 2.184 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001398/0.3443, allocations: 146.8 kB / 0.4963 GB, free: 2.039 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001428/0.3445, allocations: 47.98 kB / 0.4964 GB, free: 1.992 MB / 366.1 MB Warning: Assuming fixed start value for the following 2 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 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 (157): * Single equations (assignments): 142 * 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.0009038/0.3454, allocations: 426.8 kB / 0.4968 GB, free: 1.566 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002458/0.3457, allocations: 94.88 kB / 0.4969 GB, free: 1.473 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003682/0.3494, allocations: 1.975 MB / 0.4988 GB, free: 15.44 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.906e-06/0.3494, allocations: 12.09 kB / 0.4988 GB, free: 15.43 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.648e-06/0.3494, allocations: 4 kB / 0.4988 GB, free: 15.42 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.297e-05/0.3494, allocations: 7.969 kB / 0.4988 GB, free: 15.41 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005553/0.355, allocations: 3.554 MB / 0.5023 GB, free: 11.73 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.436e-06/0.355, allocations: 4 kB / 0.5023 GB, free: 11.73 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001955/0.357, allocations: 335.6 kB / 0.5026 GB, free: 11.4 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001343/0.3583, allocations: 480.7 kB / 0.5031 GB, free: 10.88 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002103/0.3586, allocations: 71.95 kB / 0.5031 GB, free: 10.81 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01502/0.3736, allocations: 22.16 MB / 0.5248 GB, free: 2.543 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.328e-06/0.3736, allocations: 4 kB / 0.5248 GB, free: 2.539 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005117/0.3787, allocations: 2.736 MB / 0.5274 GB, free: 15.72 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003858/0.3792, allocations: 199.7 kB / 0.5276 GB, free: 15.5 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002581/0.3794, allocations: 59.97 kB / 0.5277 GB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008051/0.3802, allocations: 51.94 kB / 0.5277 GB, free: 15.39 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002772/0.3805, allocations: 96.75 kB / 0.5278 GB, free: 15.3 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.844e-05/0.3806, allocations: 31.98 kB / 0.5279 GB, free: 15.27 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000605/0.3812, allocations: 483 kB / 0.5283 GB, free: 14.8 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.3812, allocations: 0 / 0.5283 GB, free: 14.8 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001522/0.3828, allocations: 0.4952 MB / 0.5288 GB, free: 14.3 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 42 (CH.Tfo,CH.Ec,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 (89): * Single equations (assignments): 74 * 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.00465/0.3874, allocations: 3.36 MB / 0.5321 GB, free: 10.85 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005209/0.3927, allocations: 3.976 MB / 0.536 GB, free: 6.68 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.509e-06/0.3927, allocations: 0 / 0.536 GB, free: 6.68 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002635/0.3953, allocations: 2.455 MB / 0.5384 GB, free: 4.027 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001257/0.3966, allocations: 318.9 kB / 0.5387 GB, free: 3.723 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02386/0.4205, allocations: 16.01 MB / 0.5543 GB, free: 3.207 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000956/0.4215, allocations: 1.262 MB / 0.5555 GB, free: 1.918 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001002/0.4225, allocations: 367.6 kB / 0.5559 GB, free: 1.555 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006819/0.4232, allocations: 447.3 kB / 0.5563 GB, free: 1.117 MB / 430.1 MB Notification: Performance of SimCode: time 7.51e-07/0.4232, allocations: 4 kB / 0.5563 GB, free: 1.113 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2353/0.6585, allocations: 33.86 MB / 0.5894 GB, free: 132.8 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.744/10.4, allocations: 7.109 kB / 0.5894 GB, free: 132.8 MB / 462.1 MB (rm -f AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003.pipe ; mkfifo AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003.pipe >> ../files/AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003_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_003.fmu > AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003.pipe 2>&1)