Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.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.00132/0.00132, allocations: 103.2 kB / 16.45 MB, free: 6.5 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.001426/0.001426, allocations: 210.4 kB / 19.43 MB, free: 3.656 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.512/1.512, allocations: 230.6 MB / 252.8 MB, free: 8.965 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.113/0.113, allocations: 24.12 MB / 333 MB, free: 12.62 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.HeatExchanger_1vol_case_001,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_001",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_001",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.003105/0.003105, allocations: 67.89 kB / 467.9 MB, free: 9.066 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.344/0.3471, allocations: 59.57 MB / 0.5151 GB, free: 9.625 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Interfaces/flowOnePort_pwh.mo:4:3-4:45:writable] Warning: An inner declaration for outer component system could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Interfaces/flowOnePort_pwh.mo:4:3-4:45:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer \"system\" component but an inner \"system\" component is not defined. Drag AES.ProcessComponents.Thermal.System_settings.System_liquid into your model to specify the working fluid properties. Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001): time 0.03597/0.3831, allocations: 23.02 MB / 0.5375 GB, free: 1.445 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007011/0.3838, allocations: 221.3 kB / 0.5378 GB, free: 1.281 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001427/0.3839, allocations: 16.91 kB / 0.5378 GB, free: 1.273 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 8.033e-05/0.384, allocations: 26.81 kB / 0.5378 GB, free: 1.258 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002175/0.3842, allocations: 101.4 kB / 0.5379 GB, free: 1.188 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001429/0.3844, allocations: 43.12 kB / 0.5379 GB, free: 1.164 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002869/0.3847, allocations: 292.3 kB / 0.5382 GB, free: 1.016 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002273/0.3849, allocations: 133.8 kB / 0.5383 GB, free: 0.9531 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001699/0.385, allocations: 138.6 kB / 0.5385 GB, free: 0.8984 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000129/0.3852, allocations: 95.91 kB / 0.5386 GB, free: 0.8516 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.099e-05/0.3852, allocations: 17.27 kB / 0.5386 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.608e-05/0.3852, allocations: 18.78 kB / 0.5386 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.239e-05/0.3853, allocations: 38.8 kB / 0.5386 GB, free: 0.8164 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.816e-05/0.3854, allocations: 114.7 kB / 0.5388 GB, free: 0.75 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002282/0.3856, allocations: 232.4 kB / 0.539 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.077e-06/0.3856, allocations: 1.375 kB / 0.539 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.3856, allocations: 3.938 kB / 0.539 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.351e-06/0.3856, allocations: 0 / 0.539 GB, free: 0.6484 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: 39 * Number of variables: 39 Notification: Performance of Generate backend data structure: time 0.0006081/0.3862, allocations: 0.5231 MB / 0.5395 GB, free: 172 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.774e-05/0.3863, allocations: 10.22 kB / 0.5395 GB, free: 172 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.032e-05/0.3863, allocations: 48.28 kB / 0.5395 GB, free: 124 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.093e-05/0.3863, allocations: 29.17 kB / 0.5396 GB, free: 108 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003239/0.3867, allocations: 276.3 kB / 0.5398 GB, free: 15.86 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.062e-05/0.3867, allocations: 11.58 kB / 0.5398 GB, free: 15.85 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.909e-05/0.3867, allocations: 14 kB / 0.5399 GB, free: 15.85 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003498/0.3871, allocations: 198.4 kB / 0.54 GB, free: 15.72 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.107e-05/0.3871, allocations: 5.312 kB / 0.5401 GB, free: 15.72 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.78e-05/0.3871, allocations: 5.375 kB / 0.5401 GB, free: 15.71 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.752e-06/0.3871, allocations: 4.125 kB / 0.5401 GB, free: 15.71 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003099/0.3874, allocations: 117.8 kB / 0.5402 GB, free: 15.68 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000983/0.3884, allocations: 0.8512 MB / 0.541 GB, free: 14.94 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002163/0.3886, allocations: 71.05 kB / 0.5411 GB, free: 14.9 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001419/0.3887, allocations: 55.94 kB / 0.5411 GB, free: 14.88 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.016e-05/0.3888, allocations: 9.547 kB / 0.5411 GB, free: 14.87 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.924e-05/0.3888, allocations: 32.41 kB / 0.5412 GB, free: 14.83 MB / 398.1 MB Notification: Performance of pre-optimization done (n=14): time 1.202e-06/0.3888, allocations: 0 / 0.5412 GB, free: 14.83 MB / 398.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004991/0.3893, allocations: 185 kB / 0.5413 GB, free: 14.74 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.223e-05/0.3893, allocations: 54.52 kB / 0.5414 GB, free: 14.68 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002698/0.3896, allocations: 225.8 kB / 0.5416 GB, free: 14.54 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.062e-05/0.3896, allocations: 26.83 kB / 0.5416 GB, free: 14.5 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001178/0.3897, allocations: 146.4 kB / 0.5418 GB, free: 14.37 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.533e-05/0.3898, allocations: 48.56 kB / 0.5418 GB, free: 14.33 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.349e-05/0.3899, allocations: 38.73 kB / 0.5419 GB, free: 14.3 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001629/0.39, allocations: 334 kB / 0.5422 GB, free: 13.98 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001313/0.3901, allocations: 38.28 kB / 0.5422 GB, free: 13.96 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001547/0.3903, allocations: 67.05 kB / 0.5423 GB, free: 13.92 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000882/0.3912, allocations: 228.4 kB / 0.5425 GB, free: 13.83 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.3912, allocations: 4 kB / 0.5425 GB, free: 13.82 MB / 398.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003772/0.3916, allocations: 164.1 kB / 0.5427 GB, free: 13.74 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.723e-05/0.3916, allocations: 5.906 kB / 0.5427 GB, free: 13.74 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.363e-06/0.3916, allocations: 0.7031 kB / 0.5427 GB, free: 13.74 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.498e-05/0.3916, allocations: 5.438 kB / 0.5427 GB, free: 13.74 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002172/0.3918, allocations: 32.88 kB / 0.5427 GB, free: 13.74 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.765e-06/0.3918, allocations: 2.281 kB / 0.5427 GB, free: 13.74 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001263/0.392, allocations: 25.92 kB / 0.5427 GB, free: 13.72 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.329e-05/0.392, allocations: 5.797 kB / 0.5427 GB, free: 13.72 MB / 398.1 MB Warning: Assuming fixed start value for the following 2 variables: HE.Tho:VARIABLE(min = 0.0 start = 339.5666268514094 unit = \"K\" fixed = true nominal = 300.0 ) type: Real HE.Tco:VARIABLE(min = 0.0 start = 299.958408982322 unit = \"K\" fixed = true nominal = 300.0 ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00021/0.3922, allocations: 141.2 kB / 0.5429 GB, free: 13.58 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.115e-05/0.3922, allocations: 22.19 kB / 0.5429 GB, free: 13.57 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.449e-05/0.3923, allocations: 25.58 kB / 0.5429 GB, free: 13.55 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.028e-06/0.3923, allocations: 7.031 kB / 0.5429 GB, free: 13.55 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.3923, allocations: 0 / 0.5429 GB, free: 13.55 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.3923, allocations: 0.7031 kB / 0.5429 GB, free: 13.55 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000342/0.3927, allocations: 272 kB / 0.5432 GB, free: 13.3 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.3927, allocations: 0 / 0.5432 GB, free: 13.3 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002127/0.3929, allocations: 33.84 kB / 0.5432 GB, free: 13.3 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.3929, allocations: 0 / 0.5432 GB, free: 13.3 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.364e-05/0.3929, allocations: 2.734 kB / 0.5432 GB, free: 13.3 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.3929, allocations: 0 / 0.5432 GB, free: 13.3 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.3929, allocations: 1.219 kB / 0.5432 GB, free: 13.3 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005564/0.3934, allocations: 301.5 kB / 0.5435 GB, free: 13.1 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.774e-05/0.3935, allocations: 99.53 kB / 0.5436 GB, free: 12.99 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.999e-05/0.3936, allocations: 2.047 kB / 0.5436 GB, free: 12.99 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001251/0.3937, allocations: 2.641 kB / 0.5436 GB, free: 12.99 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.143e-05/0.3937, allocations: 14.23 kB / 0.5436 GB, free: 12.98 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.037e-06/0.3937, allocations: 3.547 kB / 0.5436 GB, free: 12.98 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001634/0.3939, allocations: 172.2 kB / 0.5438 GB, free: 12.87 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3939, allocations: 0 / 0.5438 GB, free: 12.87 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002817/0.3942, allocations: 47.95 kB / 0.5438 GB, free: 12.82 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (HE.Tho,HE.Tco) * 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 (14): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008687/0.3951, allocations: 0.834 MB / 0.5446 GB, free: 11.98 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003364/0.3954, allocations: 105 kB / 0.5447 GB, free: 11.89 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.3954, allocations: 0 / 0.5447 GB, free: 11.89 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001473/0.3955, allocations: 63.06 kB / 0.5448 GB, free: 11.84 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003678/0.3959, allocations: 47.8 kB / 0.5448 GB, free: 11.8 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003239/0.3992, allocations: 2.29 MB / 0.5471 GB, free: 9.555 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004124/0.3996, allocations: 0.7408 MB / 0.5478 GB, free: 8.812 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001399/0.3997, allocations: 28.5 kB / 0.5478 GB, free: 8.793 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001234/0.3998, allocations: 68.69 kB / 0.5479 GB, free: 8.73 MB / 398.1 MB Notification: Performance of SimCode: time 6.41e-07/0.3998, allocations: 3.938 kB / 0.5479 GB, free: 8.727 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02966/0.4295, allocations: 4.668 MB / 0.5525 GB, free: 5.859 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.024/8.454, allocations: 4 kB / 0.5525 GB, free: 5.855 MB / 398.1 MB " [Timeout remaining time 651] (rm -f AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001_res.csv --start-time 0 --stop-time 5000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 50 AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_001.fmu > AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.235788107849658] Failed to read output from testmodel.py, exit status != 0: 8.526137731038034 8.540373401 8.151557811 Calling exit ...