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.001373/0.001373, allocations: 108.3 kB / 19.73 MB, free: 1.898 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.001639/0.001639, allocations: 208.7 kB / 23.01 MB, free: 4.992 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.483/1.483, allocations: 230.6 MB / 256.8 MB, free: 7.801 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.1086/0.1086, allocations: 24.04 MB / 337.2 MB, free: 11.44 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.002127/0.002127, allocations: 71.83 kB / 473.8 MB, free: 6.402 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3659/0.368, allocations: 59.57 MB / 0.5209 GB, free: 10.02 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_002): time 0.004335/0.3724, allocations: 3.057 MB / 0.5239 GB, free: 7.945 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001973/0.3743, allocations: 0.9408 MB / 0.5248 GB, free: 7.281 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002646/0.3746, allocations: 13 kB / 0.5248 GB, free: 7.273 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000278/0.3749, allocations: 107.3 kB / 0.5249 GB, free: 7.207 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004984/0.3754, allocations: 267.4 kB / 0.5252 GB, free: 7.039 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006795/0.376, allocations: 191.9 kB / 0.5254 GB, free: 6.926 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001276/0.3773, allocations: 1.242 MB / 0.5266 GB, free: 6.312 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00115/0.3785, allocations: 0.6557 MB / 0.5272 GB, free: 6.016 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009405/0.3794, allocations: 493.4 kB / 0.5277 GB, free: 5.793 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001073/0.3805, allocations: 0.5291 MB / 0.5282 GB, free: 5.582 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003122/0.3808, allocations: 139.8 kB / 0.5283 GB, free: 5.574 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003775/0.3812, allocations: 133.8 kB / 0.5285 GB, free: 5.574 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005505/0.3817, allocations: 403.6 kB / 0.5289 GB, free: 5.383 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007938/0.3825, allocations: 464.6 kB / 0.5293 GB, free: 5.137 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002446/0.385, allocations: 1.47 MB / 0.5307 GB, free: 4.617 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.394e-06/0.385, allocations: 0 / 0.5307 GB, free: 4.617 MB / 382.1 MB Notification: Performance of FrontEnd: time 4.368e-06/0.385, allocations: 0 / 0.5307 GB, free: 4.617 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.202e-05/0.385, allocations: 0 / 0.5307 GB, free: 4.617 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.003411/0.3884, allocations: 1.236 MB / 0.5319 GB, free: 3.93 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.616e-05/0.3885, allocations: 10.08 kB / 0.532 GB, free: 3.93 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001958/0.3887, allocations: 123.5 kB / 0.5321 GB, free: 3.844 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002497/0.3889, allocations: 89.45 kB / 0.5322 GB, free: 3.801 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001182/0.3901, allocations: 0.5049 MB / 0.5326 GB, free: 3.453 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001276/0.3902, allocations: 82.2 kB / 0.5327 GB, free: 3.398 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002218/0.3905, allocations: 88.33 kB / 0.5328 GB, free: 3.363 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001902/0.3924, allocations: 0.9516 MB / 0.5337 GB, free: 2.961 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.386e-05/0.3924, allocations: 1.156 kB / 0.5337 GB, free: 2.961 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.73e-05/0.3925, allocations: 29.69 kB / 0.5338 GB, free: 2.938 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.746e-05/0.3925, allocations: 17.75 kB / 0.5338 GB, free: 2.938 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001367/0.3938, allocations: 0.8076 MB / 0.5346 GB, free: 2.625 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.005961/0.3998, allocations: 2.783 MB / 0.5373 GB, free: 1.277 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002675/0.4025, allocations: 1.02 MB / 0.5383 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006049/0.4031, allocations: 410.7 kB / 0.5387 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.142e-05/0.4031, allocations: 5.969 kB / 0.5387 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.433e-05/0.4032, allocations: 40.19 kB / 0.5387 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of pre-optimization done (n=58): time 2.725e-06/0.4032, allocations: 0 / 0.5387 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of matching and sorting (n=58): time 0.003928/0.4071, allocations: 1.612 MB / 0.5403 GB, free: 32 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.139e-05/0.4072, allocations: 58.25 kB / 0.5404 GB, free: 15.97 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006669/0.4078, allocations: 422.5 kB / 0.5408 GB, free: 15.72 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.048e-05/0.4079, allocations: 36.45 kB / 0.5408 GB, free: 15.68 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002643/0.4082, allocations: 329.8 kB / 0.5411 GB, free: 15.39 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002875/0.4084, allocations: 242.8 kB / 0.5413 GB, free: 15.18 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002366/0.4087, allocations: 127 kB / 0.5415 GB, free: 15.1 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002/0.4089, allocations: 369.9 kB / 0.5418 GB, free: 14.75 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007102/0.4096, allocations: 451.1 kB / 0.5422 GB, free: 14.51 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007707/0.4104, allocations: 0.4965 MB / 0.5427 GB, free: 14.22 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007402/0.4178, allocations: 2.361 MB / 0.545 GB, free: 13 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.464e-06/0.4178, allocations: 1.375 kB / 0.545 GB, free: 13 MB / 398.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.002816/0.4206, allocations: 1.341 MB / 0.5463 GB, free: 12.24 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.376e-05/0.4206, allocations: 10.66 kB / 0.5464 GB, free: 12.23 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.156e-05/0.4206, allocations: 1.188 kB / 0.5464 GB, free: 12.23 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001131/0.4218, allocations: 338.6 kB / 0.5467 GB, free: 12.02 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008974/0.4227, allocations: 191.5 kB / 0.5469 GB, free: 11.98 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01298/0.4356, allocations: 14.08 MB / 0.5606 GB, free: 14.02 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009362/0.4366, allocations: 62.88 kB / 0.5607 GB, free: 13.98 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.948e-05/0.4367, allocations: 28.95 kB / 0.5607 GB, free: 13.97 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.0006608/0.4373, allocations: 284.4 kB / 0.561 GB, free: 13.75 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001882/0.4375, allocations: 52.14 kB / 0.561 GB, free: 13.72 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002397/0.4399, allocations: 1.143 MB / 0.5621 GB, free: 13 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.405e-06/0.4399, allocations: 10.84 kB / 0.5621 GB, free: 13 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.251e-06/0.4399, allocations: 2.188 kB / 0.5621 GB, free: 13 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.314e-06/0.4399, allocations: 0.9375 kB / 0.5621 GB, free: 13 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003684/0.4436, allocations: 1.956 MB / 0.5641 GB, free: 11.71 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.052e-06/0.4436, allocations: 1.375 kB / 0.5641 GB, free: 11.71 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00103/0.4447, allocations: 169.6 kB / 0.5642 GB, free: 11.68 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009324/0.4456, allocations: 304.5 kB / 0.5645 GB, free: 11.48 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001152/0.4457, allocations: 35.92 kB / 0.5645 GB, free: 11.46 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01181/0.4575, allocations: 13.64 MB / 0.5779 GB, free: 13.86 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.19e-06/0.4575, allocations: 6.688 kB / 0.5779 GB, free: 13.85 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003126/0.4606, allocations: 1.6 MB / 0.5794 GB, free: 12.54 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002372/0.4609, allocations: 67.53 kB / 0.5795 GB, free: 12.48 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001225/0.461, allocations: 40.17 kB / 0.5795 GB, free: 12.44 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004391/0.4614, allocations: 23.97 kB / 0.5796 GB, free: 12.41 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000182/0.4616, allocations: 60.39 kB / 0.5796 GB, free: 12.36 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.241e-05/0.4617, allocations: 16 kB / 0.5796 GB, free: 12.34 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0004015/0.4621, allocations: 295.1 kB / 0.5799 GB, free: 12.05 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4621, allocations: 0 / 0.5799 GB, free: 12.05 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001173/0.4633, allocations: 303.5 kB / 0.5802 GB, free: 11.75 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.003221/0.4665, allocations: 2.194 MB / 0.5823 GB, free: 9.492 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002944/0.4694, allocations: 2.004 MB / 0.5843 GB, free: 7.359 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/0.4694, allocations: 0 / 0.5843 GB, free: 7.359 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001854/0.4713, allocations: 1.545 MB / 0.5858 GB, free: 5.684 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009855/0.4723, allocations: 169.4 kB / 0.586 GB, free: 5.52 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0148/0.4871, allocations: 8.859 MB / 0.5946 GB, free: 12.46 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005411/0.4876, allocations: 418 kB / 0.595 GB, free: 12.03 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0005621/0.4882, allocations: 172.6 kB / 0.5952 GB, free: 11.86 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004328/0.4886, allocations: 259.3 kB / 0.5954 GB, free: 11.61 MB / 446.1 MB Notification: Performance of SimCode: time 1.233e-06/0.4886, allocations: 0 / 0.5954 GB, free: 11.61 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08034/0.5689, allocations: 21.52 MB / 0.6164 GB, free: 6.426 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.29/12.86, allocations: 4 kB / 0.6164 GB, free: 6.422 MB / 462.1 MB " [Timeout remaining time 647] (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: 15.685745872091502] Failed to read output from testmodel.py, exit status != 0: 12.979290785267949 13.009054728 12.618484035 Calling exit ...