Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim.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_lim,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_003_lim",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_003_lim",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.00149/0.001491, allocations: 108 kB / 15.61 MB, free: 152 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.001807/0.001807, allocations: 195 kB / 16.53 MB, free: 6.664 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.359/1.359, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1985/0.1985, allocations: 22.35 MB / 312.7 MB, free: 12.47 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002131/0.002131, allocations: 64.08 kB / 380.9 MB, free: 10.43 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.279/0.2812, allocations: 54.94 MB / 435.9 MB, free: 39.92 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim): time 0.004335/0.2856, allocations: 4.42 MB / 440.3 MB, free: 36.71 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002357/0.288, allocations: 1.283 MB / 441.6 MB, free: 35.79 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003391/0.2883, allocations: 16.28 kB / 441.6 MB, free: 35.78 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002928/0.2887, allocations: 166.2 kB / 441.8 MB, free: 35.67 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005716/0.2892, allocations: 433.3 kB / 442.2 MB, free: 35.41 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006264/0.2899, allocations: 312.7 kB / 442.5 MB, free: 35.22 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001529/0.2914, allocations: 2.178 MB / 444.7 MB, free: 34.14 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001606/0.293, allocations: 1.59 MB / 446.3 MB, free: 33.47 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001011/0.2941, allocations: 0.8302 MB / 447.1 MB, free: 33.09 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001055/0.2951, allocations: 0.9754 MB / 448.1 MB, free: 32.65 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002905/0.2954, allocations: 240 kB / 448.3 MB, free: 32.64 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003264/0.2958, allocations: 229.2 kB / 448.5 MB, free: 32.64 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004245/0.2962, allocations: 0.6887 MB / 449.2 MB, free: 32.32 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008301/0.297, allocations: 0.9237 MB / 450.1 MB, free: 31.75 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001499/0.2985, allocations: 2.551 MB / 452.7 MB, free: 30.84 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.141e-06/0.2985, allocations: 3.375 kB / 452.7 MB, free: 30.84 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.2986, allocations: 0 / 452.7 MB, free: 30.84 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.146e-05/0.2986, allocations: 0 / 452.7 MB, free: 30.84 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.004199/0.3028, allocations: 2.005 MB / 454.7 MB, free: 29.79 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.105e-05/0.3029, allocations: 13.95 kB / 454.7 MB, free: 29.79 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000239/0.3031, allocations: 188.2 kB / 454.9 MB, free: 29.67 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000343/0.3035, allocations: 147.3 kB / 455 MB, free: 29.6 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001546/0.305, allocations: 0.8665 MB / 455.9 MB, free: 29.03 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001403/0.3052, allocations: 123 kB / 456 MB, free: 28.95 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002823/0.3055, allocations: 142.5 kB / 456.2 MB, free: 28.89 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002864/0.3083, allocations: 1.588 MB / 457.7 MB, free: 28.26 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.259e-05/0.3084, allocations: 0 / 457.7 MB, free: 28.26 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001401/0.3085, allocations: 46.25 kB / 457.8 MB, free: 28.22 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.66e-05/0.3086, allocations: 32.06 kB / 457.8 MB, free: 28.22 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002435/0.311, allocations: 1.407 MB / 459.2 MB, free: 27.68 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01011/0.3211, allocations: 7.136 MB / 466.4 MB, free: 23.05 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004606/0.3258, allocations: 1.872 MB / 468.2 MB, free: 22.43 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001109/0.3269, allocations: 0.7412 MB / 469 MB, free: 22.11 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.392e-05/0.327, allocations: 15.14 kB / 469 MB, free: 22.11 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.669e-05/0.327, allocations: 45.22 kB / 469 MB, free: 22.06 MB / 350.1 MB Notification: Performance of pre-optimization done (n=103): time 3.156e-06/0.327, allocations: 3.938 kB / 469 MB, free: 22.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=103): time 0.006872/0.3339, allocations: 3.919 MB / 473 MB, free: 19.54 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.352e-05/0.334, allocations: 70.34 kB / 473 MB, free: 19.47 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00119/0.3352, allocations: 0.6796 MB / 473.7 MB, free: 19.16 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001642/0.3354, allocations: 40.58 kB / 473.7 MB, free: 19.11 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003651/0.3357, allocations: 0.5085 MB / 474.3 MB, free: 18.71 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004986/0.3363, allocations: 415.2 kB / 474.7 MB, free: 18.39 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000525/0.3368, allocations: 244.1 kB / 474.9 MB, free: 18.27 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002215/0.337, allocations: 414.9 kB / 475.3 MB, free: 17.92 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001491/0.3385, allocations: 0.8476 MB / 476.2 MB, free: 17.57 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001405/0.3399, allocations: 1.003 MB / 477.2 MB, free: 17.04 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01366/0.3536, allocations: 4.479 MB / 481.6 MB, free: 14.83 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-05/0.3536, allocations: 2.094 kB / 481.6 MB, free: 14.83 MB / 350.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004073/0.3577, allocations: 2.469 MB / 484.1 MB, free: 12.37 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.882e-05/0.3578, allocations: 5.25 kB / 484.1 MB, free: 12.37 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.539e-05/0.3578, allocations: 8 kB / 484.1 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001634/0.3595, allocations: 0.5317 MB / 484.6 MB, free: 11.78 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001763/0.3612, allocations: 407.5 kB / 485 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01733/0.3786, allocations: 23.05 MB / 0.4962 GB, free: 2.164 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001853/0.3805, allocations: 146.7 kB / 0.4963 GB, free: 2.02 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001224/0.3806, allocations: 51.98 kB / 0.4964 GB, free: 1.969 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.00103/0.3817, allocations: 441.7 kB / 0.4968 GB, free: 1.527 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002304/0.3819, allocations: 98.86 kB / 0.4969 GB, free: 1.43 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003709/0.3856, allocations: 1.979 MB / 0.4988 GB, free: 15.39 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-05/0.3857, allocations: 12 kB / 0.4988 GB, free: 15.38 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.019e-05/0.3857, allocations: 8 kB / 0.4988 GB, free: 15.37 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.239e-05/0.3857, allocations: 3.984 kB / 0.4989 GB, free: 15.36 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006069/0.3918, allocations: 3.704 MB / 0.5025 GB, free: 11.53 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.965e-06/0.3918, allocations: 4.25 kB / 0.5025 GB, free: 11.53 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001961/0.3938, allocations: 347.6 kB / 0.5028 GB, free: 11.19 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001275/0.3951, allocations: 488.4 kB / 0.5033 GB, free: 10.66 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001398/0.3952, allocations: 59.97 kB / 0.5033 GB, free: 10.61 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01494/0.4102, allocations: 22.17 MB / 0.525 GB, free: 2.328 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.5e-06/0.4102, allocations: 7.938 kB / 0.525 GB, free: 2.32 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004667/0.4149, allocations: 2.722 MB / 0.5276 GB, free: 15.52 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003695/0.4153, allocations: 191.7 kB / 0.5278 GB, free: 15.31 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002069/0.4155, allocations: 63.97 kB / 0.5279 GB, free: 15.25 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000732/0.4162, allocations: 51.94 kB / 0.5279 GB, free: 15.2 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002852/0.4165, allocations: 100.8 kB / 0.528 GB, free: 15.1 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.61e-05/0.4166, allocations: 35.98 kB / 0.5281 GB, free: 15.06 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005864/0.4172, allocations: 471 kB / 0.5285 GB, free: 14.61 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4172, allocations: 0 / 0.5285 GB, free: 14.61 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001521/0.4188, allocations: 0.4952 MB / 0.529 GB, free: 14.11 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.004726/0.4235, allocations: 3.359 MB / 0.5323 GB, free: 10.65 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006008/0.4295, allocations: 3.996 MB / 0.5362 GB, free: 6.461 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.53e-06/0.4295, allocations: 0 / 0.5362 GB, free: 6.461 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003043/0.4326, allocations: 2.455 MB / 0.5386 GB, free: 3.812 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001592/0.4342, allocations: 323.7 kB / 0.5389 GB, free: 3.496 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02617/0.4604, allocations: 16.01 MB / 0.5545 GB, free: 2.98 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001096/0.4615, allocations: 1.268 MB / 0.5558 GB, free: 1.68 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001215/0.4628, allocations: 371.8 kB / 0.5561 GB, free: 1.312 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000768/0.4635, allocations: 467.3 kB / 0.5566 GB, free: 0.8555 MB / 430.1 MB Notification: Performance of SimCode: time 7.91e-07/0.4636, allocations: 7.938 kB / 0.5566 GB, free: 0.8477 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3159/0.7794, allocations: 34.08 MB / 0.5898 GB, free: 133 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.2/10.98, allocations: 12.91 kB / 0.5899 GB, free: 133 MB / 462.1 MB (rm -f AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim_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_lim.fmu > AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim.pipe 2>&1)