Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001806/0.001806, allocations: 113 kB / 18.94 MB, free: 2.934 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001669/0.001669, allocations: 208.2 kB / 22.25 MB, free: 5.082 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.54/1.54, allocations: 230.6 MB / 256 MB, free: 8.031 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.109/0.109, allocations: 24.12 MB / 336.6 MB, free: 11.47 MB / 270.1 MB " [Timeout remaining time 180] Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.Controlled_heater_case_002,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_002",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.Controlled_heater_case_002,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_002",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: AES requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002978/0.002978, allocations: 63.91 kB / 473.3 MB, free: 6.422 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3834/0.3863, allocations: 59.61 MB / 0.5204 GB, free: 10.15 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_002): time 0.003955/0.3903, allocations: 3.369 MB / 0.5237 GB, free: 7.738 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001695/0.392, allocations: 0.9852 MB / 0.5247 GB, free: 7.027 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002074/0.3922, allocations: 13.62 kB / 0.5247 GB, free: 7.02 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002663/0.3925, allocations: 102.3 kB / 0.5248 GB, free: 6.957 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004312/0.3929, allocations: 270.8 kB / 0.525 GB, free: 6.785 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005176/0.3934, allocations: 184.1 kB / 0.5252 GB, free: 6.68 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001181/0.3946, allocations: 1.251 MB / 0.5264 GB, free: 6.059 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008772/0.3955, allocations: 0.661 MB / 0.5271 GB, free: 5.758 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006325/0.3961, allocations: 493.2 kB / 0.5276 GB, free: 5.535 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007311/0.3968, allocations: 0.5785 MB / 0.5281 GB, free: 5.273 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001822/0.397, allocations: 132.2 kB / 0.5283 GB, free: 5.273 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001997/0.3972, allocations: 133.5 kB / 0.5284 GB, free: 5.273 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000324/0.3975, allocations: 407.7 kB / 0.5288 GB, free: 5.078 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004695/0.398, allocations: 0.5315 MB / 0.5293 GB, free: 4.754 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001547/0.3996, allocations: 1.464 MB / 0.5307 GB, free: 4.23 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.763e-06/0.3996, allocations: 5.094 kB / 0.5307 GB, free: 4.227 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.3996, allocations: 0 / 0.5307 GB, free: 4.227 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.938e-05/0.3996, allocations: 0 / 0.5307 GB, free: 4.227 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 182 * Number of variables: 182 Notification: Performance of Generate backend data structure: time 0.002813/0.4024, allocations: 1.24 MB / 0.5319 GB, free: 3.531 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.331e-05/0.4024, allocations: 11.02 kB / 0.5319 GB, free: 3.531 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001761/0.4026, allocations: 122.6 kB / 0.5321 GB, free: 3.445 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001915/0.4028, allocations: 90.02 kB / 0.5321 GB, free: 3.402 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001023/0.4038, allocations: 0.5075 MB / 0.5326 GB, free: 3.051 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.503e-05/0.4039, allocations: 78.39 kB / 0.5327 GB, free: 3 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001606/0.4041, allocations: 89.55 kB / 0.5328 GB, free: 2.965 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001572/0.4057, allocations: 0.9289 MB / 0.5337 GB, free: 2.59 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.373e-05/0.4057, allocations: 4.797 kB / 0.5337 GB, free: 2.586 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.747e-05/0.4058, allocations: 26.97 kB / 0.5337 GB, free: 2.566 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.068e-05/0.4058, allocations: 16.94 kB / 0.5338 GB, free: 2.566 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001506/0.4073, allocations: 0.809 MB / 0.5345 GB, free: 2.254 MB / 382.1 MB Notification: The following initial equation is redundant and consistent due to simplifications in RemoveSimpleEquations and therefore removed from the initialization problem: der(pipeline.fluidStream.w) = 0.0 -> 0.0 = 0.0 Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006539/0.4138, allocations: 3.916 MB / 0.5384 GB, free: 15.73 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002955/0.4168, allocations: 1.021 MB / 0.5394 GB, free: 15.38 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006869/0.4175, allocations: 409.9 kB / 0.5398 GB, free: 15.2 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.913e-05/0.4175, allocations: 10.2 kB / 0.5398 GB, free: 15.19 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.063e-05/0.4176, allocations: 39.12 kB / 0.5398 GB, free: 15.15 MB / 398.1 MB Notification: Performance of pre-optimization done (n=58): time 2.254e-06/0.4176, allocations: 4 kB / 0.5398 GB, free: 15.14 MB / 398.1 MB Notification: Performance of matching and sorting (n=58): time 0.004231/0.4218, allocations: 1.609 MB / 0.5414 GB, free: 14.32 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.415e-05/0.4219, allocations: 58.03 kB / 0.5414 GB, free: 14.25 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006439/0.4225, allocations: 415.1 kB / 0.5418 GB, free: 14 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.122e-05/0.4226, allocations: 40.39 kB / 0.5419 GB, free: 13.96 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002544/0.4228, allocations: 329.8 kB / 0.5422 GB, free: 13.66 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003012/0.4231, allocations: 242.8 kB / 0.5424 GB, free: 13.45 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00024/0.4234, allocations: 131 kB / 0.5425 GB, free: 13.38 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001929/0.4236, allocations: 368.5 kB / 0.5429 GB, free: 13.02 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007198/0.4243, allocations: 455 kB / 0.5433 GB, free: 12.78 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007341/0.425, allocations: 499.3 kB / 0.5438 GB, free: 12.5 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007417/0.4324, allocations: 2.364 MB / 0.5461 GB, free: 11.27 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.883e-06/0.4324, allocations: 4 kB / 0.5461 GB, free: 11.27 MB / 398.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.002768/0.4352, allocations: 1.336 MB / 0.5474 GB, free: 10.51 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.643e-05/0.4352, allocations: 5.688 kB / 0.5474 GB, free: 10.51 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.936e-06/0.4352, allocations: 3.031 kB / 0.5474 GB, free: 10.51 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001154/0.4364, allocations: 343.7 kB / 0.5478 GB, free: 10.29 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009123/0.4373, allocations: 188.7 kB / 0.5479 GB, free: 10.25 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01316/0.4505, allocations: 14.13 MB / 0.5617 GB, free: 12.22 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000939/0.4514, allocations: 76.64 kB / 0.5618 GB, free: 12.16 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.316e-05/0.4515, allocations: 35.83 kB / 0.5618 GB, free: 12.14 MB / 414.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: 7 * 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 (79): * Single equations (assignments): 69 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 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%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006846/0.4522, allocations: 281.2 kB / 0.5621 GB, free: 11.93 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001389/0.4523, allocations: 52.67 kB / 0.5622 GB, free: 11.9 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002563/0.4549, allocations: 1.138 MB / 0.5633 GB, free: 11.18 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.045e-05/0.4549, allocations: 5.531 kB / 0.5633 GB, free: 11.18 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.564e-06/0.4549, allocations: 3.75 kB / 0.5633 GB, free: 11.18 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.137e-06/0.4549, allocations: 0 / 0.5633 GB, free: 11.18 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004109/0.459, allocations: 2.109 MB / 0.5653 GB, free: 9.746 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.992e-06/0.459, allocations: 1.375 kB / 0.5653 GB, free: 9.746 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009894/0.46, allocations: 166.5 kB / 0.5655 GB, free: 9.711 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009022/0.4609, allocations: 310.9 kB / 0.5658 GB, free: 9.508 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.445e-05/0.461, allocations: 35.14 kB / 0.5658 GB, free: 9.488 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01171/0.4727, allocations: 13.69 MB / 0.5792 GB, free: 11.81 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.93e-06/0.4727, allocations: 5.594 kB / 0.5792 GB, free: 11.8 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004716/0.4774, allocations: 1.596 MB / 0.5808 GB, free: 10.53 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003653/0.4778, allocations: 63.53 kB / 0.5808 GB, free: 10.47 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001936/0.478, allocations: 40.11 kB / 0.5809 GB, free: 10.43 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007211/0.4787, allocations: 27.97 kB / 0.5809 GB, free: 10.4 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002772/0.479, allocations: 64.33 kB / 0.5809 GB, free: 10.34 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.169e-05/0.4791, allocations: 16 kB / 0.581 GB, free: 10.32 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0006044/0.4797, allocations: 299.1 kB / 0.5812 GB, free: 10.03 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4797, allocations: 0 / 0.5812 GB, free: 10.03 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001711/0.4814, allocations: 299.5 kB / 0.5815 GB, free: 9.738 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 22 (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]) * 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 (49): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 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%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003344/0.4847, allocations: 2.177 MB / 0.5837 GB, free: 7.492 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003106/0.4878, allocations: 2.015 MB / 0.5856 GB, free: 5.348 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.12e-06/0.4878, allocations: 4 kB / 0.5856 GB, free: 5.344 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00184/0.4897, allocations: 1.545 MB / 0.5871 GB, free: 3.668 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009337/0.4906, allocations: 165.4 kB / 0.5873 GB, free: 3.508 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01499/0.5056, allocations: 8.885 MB / 0.596 GB, free: 10.43 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007933/0.5064, allocations: 1.016 MB / 0.597 GB, free: 9.383 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0005259/0.5069, allocations: 168.6 kB / 0.5971 GB, free: 9.219 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000429/0.5073, allocations: 259.3 kB / 0.5974 GB, free: 8.965 MB / 446.1 MB Notification: Performance of SimCode: time 1.002e-06/0.5073, allocations: 0 / 0.5974 GB, free: 8.965 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1028/0.6101, allocations: 20.42 MB / 0.6173 GB, free: 4.805 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.78/13.39, allocations: 3.25 kB / 0.6173 GB, free: 4.805 MB / 462.1 MB " [Timeout remaining time 646] (rm -f AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002_res.csv --start-time 0 --stop-time 2000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 4 AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_002.fmu > AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 16.386267850997683] Failed to read output from testmodel.py, exit status != 0: 13.518446154994308 13.544381423 13.139631852 Calling exit ...