Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.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.001929/0.001929, allocations: 114.3 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.002368/0.002368, allocations: 215.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.498/1.498, allocations: 230.6 MB / 256 MB, free: 8.004 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.1079/0.1079, allocations: 24.13 MB / 336.6 MB, free: 11.43 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_003,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_003",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_003",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.002033/0.002033, allocations: 67.89 kB / 473.3 MB, free: 6.398 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3237/0.3257, allocations: 59.61 MB / 0.5204 GB, free: 10.14 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Liquid/HE_LiquidLiquid_1vol.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/Liquid/HE_LiquidLiquid_1vol.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_003): time 0.03542/0.3611, allocations: 23.49 MB / 0.5434 GB, free: 1.488 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001376/0.3625, allocations: 427.8 kB / 0.5438 GB, free: 1.18 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002461/0.3628, allocations: 12.97 kB / 0.5438 GB, free: 1.176 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001216/0.3629, allocations: 45.42 kB / 0.5438 GB, free: 1.148 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004137/0.3633, allocations: 149.9 kB / 0.544 GB, free: 1.043 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002082/0.3635, allocations: 86.14 kB / 0.5441 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003945/0.3639, allocations: 426.8 kB / 0.5445 GB, free: 0.7773 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003095/0.3642, allocations: 213 kB / 0.5447 GB, free: 0.6836 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002371/0.3644, allocations: 213.2 kB / 0.5449 GB, free: 0.5195 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002302/0.3647, allocations: 181.8 kB / 0.545 GB, free: 380 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.843e-05/0.3647, allocations: 28 kB / 0.5451 GB, free: 352 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001216/0.3648, allocations: 60.91 kB / 0.5451 GB, free: 300 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.107e-05/0.3649, allocations: 68.17 kB / 0.5452 GB, free: 244 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001201/0.365, allocations: 184.2 kB / 0.5454 GB, free: 72 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005271/0.3655, allocations: 407.3 kB / 0.5458 GB, free: 15.8 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.645e-06/0.3655, allocations: 4 kB / 0.5458 GB, free: 15.79 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.704e-06/0.3655, allocations: 4 kB / 0.5458 GB, free: 15.79 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.727e-06/0.3655, allocations: 0.7969 kB / 0.5458 GB, free: 15.79 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 57 * Number of variables: 57 Notification: Performance of Generate backend data structure: time 0.001087/0.3666, allocations: 0.5585 MB / 0.5463 GB, free: 15.23 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.005e-05/0.3667, allocations: 12.92 kB / 0.5463 GB, free: 15.22 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.39e-05/0.3667, allocations: 61.03 kB / 0.5464 GB, free: 15.16 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.77e-05/0.3668, allocations: 36.7 kB / 0.5464 GB, free: 15.12 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000416/0.3672, allocations: 256 kB / 0.5467 GB, free: 14.88 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.6e-05/0.3673, allocations: 20.81 kB / 0.5467 GB, free: 14.86 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.687e-05/0.3673, allocations: 24.38 kB / 0.5467 GB, free: 14.83 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004636/0.3678, allocations: 270.7 kB / 0.547 GB, free: 14.61 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.708e-05/0.3678, allocations: 12.69 kB / 0.547 GB, free: 14.59 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.566e-05/0.3678, allocations: 8 kB / 0.547 GB, free: 14.59 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.967e-06/0.3678, allocations: 8 kB / 0.547 GB, free: 14.58 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004006/0.3682, allocations: 203.9 kB / 0.5472 GB, free: 14.41 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001449/0.3697, allocations: 0.8637 MB / 0.548 GB, free: 13.62 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003597/0.37, allocations: 153.3 kB / 0.5482 GB, free: 13.47 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002098/0.3702, allocations: 92.95 kB / 0.5483 GB, free: 13.39 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.721e-05/0.3703, allocations: 8.641 kB / 0.5483 GB, free: 13.38 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.15e-05/0.3703, allocations: 43.02 kB / 0.5483 GB, free: 13.33 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003046/0.3706, allocations: 50.73 kB / 0.5484 GB, free: 13.29 MB / 398.1 MB Notification: Performance of pre-optimization done (n=18): time 1.482e-06/0.3706, allocations: 0 / 0.5484 GB, free: 13.29 MB / 398.1 MB Notification: Performance of matching and sorting (n=18): time 0.001365/0.372, allocations: 360.7 kB / 0.5487 GB, free: 12.98 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.366e-05/0.372, allocations: 63.34 kB / 0.5488 GB, free: 12.91 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003478/0.3724, allocations: 304.1 kB / 0.549 GB, free: 12.63 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.352e-05/0.3724, allocations: 29.7 kB / 0.5491 GB, free: 12.59 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001457/0.3725, allocations: 184.7 kB / 0.5493 GB, free: 12.42 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.364e-05/0.3726, allocations: 77 kB / 0.5493 GB, free: 12.35 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.76e-05/0.3727, allocations: 48.12 kB / 0.5494 GB, free: 12.31 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001646/0.3729, allocations: 338 kB / 0.5497 GB, free: 11.98 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001323/0.373, allocations: 64.16 kB / 0.5498 GB, free: 11.92 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001458/0.3731, allocations: 92.12 kB / 0.5498 GB, free: 11.84 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00409/0.3772, allocations: 0.6919 MB / 0.5505 GB, free: 11.33 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.3772, allocations: 3.938 kB / 0.5505 GB, free: 11.33 MB / 398.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0008487/0.3781, allocations: 317.4 kB / 0.5508 GB, free: 11.04 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.556e-05/0.3781, allocations: 4 kB / 0.5508 GB, free: 11.04 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.081e-06/0.3781, allocations: 0.75 kB / 0.5508 GB, free: 11.04 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008066/0.3789, allocations: 106.8 kB / 0.5509 GB, free: 10.96 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002688/0.3792, allocations: 49.17 kB / 0.551 GB, free: 10.92 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004946/0.3797, allocations: 0.5774 MB / 0.5515 GB, free: 10.32 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001705/0.3798, allocations: 4 kB / 0.5515 GB, free: 10.32 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.315e-05/0.3799, allocations: 10.44 kB / 0.5516 GB, free: 10.31 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: 2 * 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 (21): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0002327/0.3801, allocations: 144.6 kB / 0.5517 GB, free: 10.16 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.033e-05/0.3802, allocations: 27.81 kB / 0.5517 GB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009395/0.3811, allocations: 358.8 kB / 0.5521 GB, free: 9.828 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.017e-06/0.3811, allocations: 0 / 0.5521 GB, free: 9.828 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.3811, allocations: 0.75 kB / 0.5521 GB, free: 9.828 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.518e-06/0.3811, allocations: 5.016 kB / 0.5521 GB, free: 9.824 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001335/0.3825, allocations: 0.704 MB / 0.5528 GB, free: 9.164 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.3825, allocations: 0 / 0.5528 GB, free: 9.164 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002576/0.3827, allocations: 49.98 kB / 0.5528 GB, free: 9.121 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005614/0.3833, allocations: 92.31 kB / 0.5529 GB, free: 9.051 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.319e-05/0.3833, allocations: 9.266 kB / 0.5529 GB, free: 9.043 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004514/0.3837, allocations: 0.5885 MB / 0.5535 GB, free: 8.438 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.209e-06/0.3838, allocations: 4.031 kB / 0.5535 GB, free: 8.434 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000998/0.3848, allocations: 0.5147 MB / 0.554 GB, free: 7.934 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.844e-05/0.3848, allocations: 33.66 kB / 0.554 GB, free: 7.902 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.943e-05/0.3849, allocations: 8.594 kB / 0.554 GB, free: 7.895 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000178/0.385, allocations: 8.75 kB / 0.554 GB, free: 7.887 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.402e-05/0.3851, allocations: 20.86 kB / 0.5541 GB, free: 7.875 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.97e-05/0.3851, allocations: 13.52 kB / 0.5541 GB, free: 7.863 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002321/0.3853, allocations: 218.4 kB / 0.5543 GB, free: 7.676 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3853, allocations: 0 / 0.5543 GB, free: 7.676 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003464/0.3857, allocations: 71.89 kB / 0.5543 GB, free: 7.605 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (21): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001095/0.3868, allocations: 1.024 MB / 0.5553 GB, free: 6.578 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004952/0.3873, allocations: 194 kB / 0.5555 GB, free: 6.41 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.3873, allocations: 4 kB / 0.5555 GB, free: 6.406 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002665/0.3875, allocations: 104.3 kB / 0.5556 GB, free: 6.316 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004276/0.388, allocations: 64.62 kB / 0.5557 GB, free: 6.266 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004522/0.3925, allocations: 2.994 MB / 0.5586 GB, free: 3.387 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004103/0.3929, allocations: 0.7815 MB / 0.5594 GB, free: 2.617 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001742/0.3931, allocations: 48.31 kB / 0.5594 GB, free: 2.582 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001817/0.3933, allocations: 116.2 kB / 0.5595 GB, free: 2.48 MB / 398.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3933, allocations: 0 / 0.5595 GB, free: 2.48 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03721/0.4305, allocations: 7.482 MB / 0.5668 GB, free: 11.63 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.04/13.47, allocations: 8.422 kB / 0.5668 GB, free: 11.62 MB / 414.1 MB " [Timeout remaining time 646] (rm -f AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003_res.csv --start-time 0 --stop-time 1000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 2 AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_003.fmu > AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 16.325866497994866] Failed to read output from testmodel.py, exit status != 0: 13.5949581629975 13.625308571 13.25426716 Calling exit ...