Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal.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_component_models.Controlled_heater_case_003_ideal,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_003_ideal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_003_ideal",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.001476/0.001476, 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.002706/0.002706, allocations: 195.5 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.36/1.36, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1973/0.1973, allocations: 22.35 MB / 312.7 MB, free: 12.57 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001358/0.001358, allocations: 63.89 kB / 380.9 MB, free: 10.48 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2719/0.2733, allocations: 54.95 MB / 435.9 MB, free: 39.86 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal): time 0.004138/0.2775, allocations: 4.391 MB / 440.3 MB, free: 36.68 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001733/0.2792, allocations: 1.266 MB / 441.5 MB, free: 35.76 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002606/0.2795, allocations: 16.03 kB / 441.6 MB, free: 35.75 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000268/0.2798, allocations: 166.5 kB / 441.7 MB, free: 35.65 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005101/0.2803, allocations: 432.4 kB / 442.1 MB, free: 35.38 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005777/0.2809, allocations: 307.4 kB / 442.4 MB, free: 35.2 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001284/0.2822, allocations: 2.153 MB / 444.6 MB, free: 34.14 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001609/0.2838, allocations: 1.599 MB / 446.2 MB, free: 33.46 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001106/0.2849, allocations: 0.8146 MB / 447 MB, free: 33.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001086/0.286, allocations: 0.9865 MB / 448 MB, free: 32.63 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002613/0.2863, allocations: 234.5 kB / 448.2 MB, free: 32.63 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003081/0.2866, allocations: 240.2 kB / 448.5 MB, free: 32.62 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000376/0.287, allocations: 0.6994 MB / 449.2 MB, free: 32.29 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006419/0.2877, allocations: 0.9227 MB / 450.1 MB, free: 31.73 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001356/0.289, allocations: 2.573 MB / 452.6 MB, free: 30.81 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.289, allocations: 0 / 452.6 MB, free: 30.81 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.289, allocations: 0 / 452.6 MB, free: 30.81 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.247e-05/0.2891, allocations: 4 kB / 452.7 MB, free: 30.81 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.003652/0.2927, allocations: 2.023 MB / 454.7 MB, free: 29.75 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.573e-05/0.2928, allocations: 8.281 kB / 454.7 MB, free: 29.75 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001954/0.293, allocations: 183.5 kB / 454.9 MB, free: 29.64 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002573/0.2932, allocations: 146.2 kB / 455 MB, free: 29.57 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00104/0.2943, allocations: 0.8657 MB / 455.9 MB, free: 28.99 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.703e-05/0.2944, allocations: 118.3 kB / 456 MB, free: 28.92 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002298/0.2946, allocations: 136.7 kB / 456.1 MB, free: 28.87 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00237/0.297, allocations: 1.59 MB / 457.7 MB, free: 28.23 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.847e-05/0.297, allocations: 0.6562 kB / 457.7 MB, free: 28.23 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001275/0.2972, allocations: 45 kB / 457.8 MB, free: 28.19 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.061e-05/0.2972, allocations: 29.41 kB / 457.8 MB, free: 28.19 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002198/0.2994, allocations: 1.42 MB / 459.2 MB, free: 27.64 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008966/0.3084, allocations: 7.162 MB / 466.4 MB, free: 23.01 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004515/0.3129, allocations: 1.894 MB / 468.3 MB, free: 22.38 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001039/0.314, allocations: 0.7216 MB / 469 MB, free: 22.06 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.867e-05/0.3141, allocations: 15.98 kB / 469 MB, free: 22.05 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.052e-05/0.3141, allocations: 48.2 kB / 469 MB, free: 22 MB / 350.1 MB Notification: Performance of pre-optimization done (n=102): time 2.805e-06/0.3141, allocations: 0 / 469 MB, free: 22 MB / 350.1 MB Notification: Performance of matching and sorting (n=102): time 0.006458/0.3206, allocations: 3.929 MB / 473 MB, free: 19.48 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.134e-05/0.3206, allocations: 63.06 kB / 473 MB, free: 19.42 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009157/0.3216, allocations: 0.6887 MB / 473.7 MB, free: 19.1 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001152/0.3217, allocations: 49.17 kB / 473.8 MB, free: 19.05 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002671/0.322, allocations: 0.5026 MB / 474.3 MB, free: 18.65 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003676/0.3223, allocations: 406.8 kB / 474.7 MB, free: 18.34 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004386/0.3228, allocations: 237.8 kB / 474.9 MB, free: 18.22 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.00015/0.3229, allocations: 409.5 kB / 475.3 MB, free: 17.87 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001287/0.3242, allocations: 0.8475 MB / 476.2 MB, free: 17.53 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001298/0.3255, allocations: 1.002 MB / 477.2 MB, free: 17 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01271/0.3382, allocations: 4.47 MB / 481.6 MB, free: 14.92 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.306e-05/0.3383, allocations: 0 / 481.6 MB, free: 14.92 MB / 350.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.003791/0.3421, allocations: 2.468 MB / 484.1 MB, free: 12.39 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.638e-05/0.3421, allocations: 8 kB / 484.1 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.394e-05/0.3422, allocations: 4 kB / 484.1 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001591/0.3438, allocations: 0.5356 MB / 484.6 MB, free: 11.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001719/0.3455, allocations: 403.4 kB / 485 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0143/0.3598, allocations: 23.05 MB / 0.4962 GB, free: 2.191 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001433/0.3613, allocations: 142.7 kB / 0.4963 GB, free: 2.051 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001545/0.3615, allocations: 48.09 kB / 0.4964 GB, free: 2.004 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.0008486/0.3623, allocations: 430.1 kB / 0.4968 GB, free: 1.574 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002493/0.3626, allocations: 90.88 kB / 0.4969 GB, free: 1.484 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003726/0.3663, allocations: 1.979 MB / 0.4988 GB, free: 15.45 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.334e-05/0.3663, allocations: 12 kB / 0.4988 GB, free: 15.43 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.718e-06/0.3664, allocations: 4 kB / 0.4988 GB, free: 15.43 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.397e-05/0.3664, allocations: 7.969 kB / 0.4988 GB, free: 15.42 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005812/0.3722, allocations: 3.558 MB / 0.5023 GB, free: 11.73 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.331e-06/0.3722, allocations: 0 / 0.5023 GB, free: 11.73 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001941/0.3742, allocations: 335.9 kB / 0.5026 GB, free: 11.41 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001356/0.3756, allocations: 476.5 kB / 0.5031 GB, free: 10.89 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002155/0.3758, allocations: 63.97 kB / 0.5031 GB, free: 10.83 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01536/0.3911, allocations: 22.17 MB / 0.5248 GB, free: 2.551 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.348e-06/0.3912, allocations: 3.938 kB / 0.5248 GB, free: 2.547 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004988/0.3962, allocations: 2.736 MB / 0.5274 GB, free: 15.72 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003606/0.3966, allocations: 195.7 kB / 0.5276 GB, free: 15.51 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002138/0.3968, allocations: 63.98 kB / 0.5277 GB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000741/0.3975, allocations: 59.92 kB / 0.5278 GB, free: 15.39 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002875/0.3978, allocations: 96.75 kB / 0.5278 GB, free: 15.3 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.525e-05/0.3979, allocations: 27.98 kB / 0.5279 GB, free: 15.27 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0006326/0.3986, allocations: 487 kB / 0.5283 GB, free: 14.8 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3986, allocations: 0 / 0.5283 GB, free: 14.8 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001613/0.4002, allocations: 0.4991 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.004858/0.4051, allocations: 3.349 MB / 0.5321 GB, free: 10.85 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005554/0.4106, allocations: 3.979 MB / 0.536 GB, free: 6.68 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.813e-06/0.4107, allocations: 0 / 0.536 GB, free: 6.68 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002853/0.4135, allocations: 2.46 MB / 0.5384 GB, free: 4.023 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001425/0.415, allocations: 307.3 kB / 0.5387 GB, free: 3.727 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02532/0.4403, allocations: 16.01 MB / 0.5543 GB, free: 3.219 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001138/0.4415, allocations: 1.262 MB / 0.5555 GB, free: 1.93 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001186/0.4427, allocations: 355.6 kB / 0.5559 GB, free: 1.578 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007801/0.4435, allocations: 459.3 kB / 0.5563 GB, free: 1.129 MB / 430.1 MB Notification: Performance of SimCode: time 1.103e-06/0.4435, allocations: 3.938 kB / 0.5563 GB, free: 1.125 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3079/0.7514, allocations: 33.9 MB / 0.5894 GB, free: 132.8 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.37/11.12, allocations: 8.719 kB / 0.5894 GB, free: 132.8 MB / 462.1 MB (rm -f AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal_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_component_models_Controlled_heater_case_003_ideal.fmu > AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal.pipe 2>&1)