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.001722/0.001722, allocations: 100.3 kB / 19.72 MB, free: 1.785 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.002024/0.002024, allocations: 206.4 kB / 23.01 MB, free: 4.625 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.458/1.458, allocations: 230.6 MB / 256.8 MB, free: 7.785 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.1092/0.1092, allocations: 24.05 MB / 337.2 MB, free: 11.33 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.003336/0.003336, allocations: 71.89 kB / 473.8 MB, free: 6.379 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3455/0.3488, allocations: 59.58 MB / 0.5209 GB, free: 10.08 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.07279/0.4216, allocations: 23.07 MB / 0.5434 GB, free: 1.883 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009798/0.4226, allocations: 221 kB / 0.5437 GB, free: 1.719 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001632/0.4228, allocations: 16.72 kB / 0.5437 GB, free: 1.711 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 9.357e-05/0.4229, allocations: 30.7 kB / 0.5437 GB, free: 1.691 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002644/0.4231, allocations: 106.1 kB / 0.5438 GB, free: 1.617 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001592/0.4233, allocations: 41.75 kB / 0.5438 GB, free: 1.594 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003368/0.4236, allocations: 293.8 kB / 0.5441 GB, free: 1.445 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002777/0.4239, allocations: 133.5 kB / 0.5442 GB, free: 1.383 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002225/0.4241, allocations: 129.9 kB / 0.5444 GB, free: 1.32 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000147/0.4243, allocations: 90 kB / 0.5445 GB, free: 1.246 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.77e-05/0.4243, allocations: 16 kB / 0.5445 GB, free: 1.23 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.827e-05/0.4243, allocations: 12 kB / 0.5445 GB, free: 1.219 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.699e-05/0.4244, allocations: 50.52 kB / 0.5445 GB, free: 1.176 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.68e-05/0.4244, allocations: 89.47 kB / 0.5446 GB, free: 1.094 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002453/0.4247, allocations: 229.7 kB / 0.5448 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.99e-06/0.4247, allocations: 0 / 0.5448 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.4247, allocations: 0 / 0.5448 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.194e-05/0.4247, allocations: 0 / 0.5448 GB, free: 0.9336 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.0007204/0.4254, allocations: 449.1 kB / 0.5453 GB, free: 492 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.352e-05/0.4255, allocations: 13.62 kB / 0.5453 GB, free: 480 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.946e-05/0.4255, allocations: 54.36 kB / 0.5453 GB, free: 420 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.253e-05/0.4256, allocations: 24.8 kB / 0.5454 GB, free: 396 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003276/0.4259, allocations: 215.2 kB / 0.5456 GB, free: 172 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.203e-05/0.4259, allocations: 12.7 kB / 0.5456 GB, free: 160 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.033e-05/0.426, allocations: 16.98 kB / 0.5456 GB, free: 144 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004222/0.4264, allocations: 195 kB / 0.5458 GB, free: 15.96 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.469e-05/0.4264, allocations: 3.938 kB / 0.5458 GB, free: 15.95 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.387e-05/0.4264, allocations: 16 kB / 0.5458 GB, free: 15.94 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.107e-05/0.4265, allocations: 4 kB / 0.5458 GB, free: 15.93 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003219/0.4268, allocations: 115.2 kB / 0.5459 GB, free: 15.84 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001057/0.4278, allocations: 0.7854 MB / 0.5467 GB, free: 15.05 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002266/0.4281, allocations: 87.03 kB / 0.5468 GB, free: 14.96 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001475/0.4282, allocations: 55.38 kB / 0.5468 GB, free: 14.91 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.688e-05/0.4282, allocations: 4.75 kB / 0.5468 GB, free: 14.91 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.216e-05/0.4283, allocations: 38.5 kB / 0.5469 GB, free: 14.86 MB / 398.1 MB Notification: Performance of pre-optimization done (n=14): time 1.232e-06/0.4283, allocations: 0 / 0.5469 GB, free: 14.86 MB / 398.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005698/0.4288, allocations: 183.7 kB / 0.547 GB, free: 14.7 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.661e-05/0.4289, allocations: 51.41 kB / 0.5471 GB, free: 14.63 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003103/0.4292, allocations: 228.3 kB / 0.5473 GB, free: 14.43 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.761e-05/0.4292, allocations: 33.7 kB / 0.5473 GB, free: 14.39 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00015/0.4294, allocations: 144.3 kB / 0.5475 GB, free: 14.25 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.375e-05/0.4294, allocations: 52.19 kB / 0.5475 GB, free: 14.2 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.741e-05/0.4295, allocations: 27.83 kB / 0.5475 GB, free: 14.17 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002054/0.4297, allocations: 337.7 kB / 0.5479 GB, free: 13.84 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001303/0.4298, allocations: 37.34 kB / 0.5479 GB, free: 13.8 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001957/0.43, allocations: 63.36 kB / 0.548 GB, free: 13.74 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009282/0.431, allocations: 232.9 kB / 0.5482 GB, free: 13.54 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.821e-06/0.431, allocations: 4 kB / 0.5482 GB, free: 13.54 MB / 398.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003688/0.4313, allocations: 173.8 kB / 0.5483 GB, free: 13.37 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.756e-05/0.4313, allocations: 4.562 kB / 0.5484 GB, free: 13.37 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.122e-06/0.4313, allocations: 0 / 0.5484 GB, free: 13.37 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.837e-05/0.4314, allocations: 4 kB / 0.5484 GB, free: 13.36 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002222/0.4316, allocations: 32.97 kB / 0.5484 GB, free: 13.34 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.531e-05/0.4316, allocations: 4.688 kB / 0.5484 GB, free: 13.33 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001194/0.4317, allocations: 13.16 kB / 0.5484 GB, free: 13.32 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.653e-05/0.4317, allocations: 12.06 kB / 0.5484 GB, free: 13.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: 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.000204/0.4319, allocations: 135.9 kB / 0.5485 GB, free: 13.17 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.768e-05/0.432, allocations: 20.47 kB / 0.5486 GB, free: 13.15 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.908e-05/0.4321, allocations: 28.73 kB / 0.5486 GB, free: 13.12 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.616e-06/0.4321, allocations: 0 / 0.5486 GB, free: 13.12 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.4321, allocations: 0 / 0.5486 GB, free: 13.12 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.428e-06/0.4321, allocations: 5.203 kB / 0.5486 GB, free: 13.12 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003102/0.4324, allocations: 223.8 kB / 0.5488 GB, free: 12.88 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.245e-06/0.4324, allocations: 1.031 kB / 0.5488 GB, free: 12.88 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002083/0.4326, allocations: 32.48 kB / 0.5488 GB, free: 12.85 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.4326, allocations: 0 / 0.5488 GB, free: 12.85 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.916e-05/0.4326, allocations: 8 kB / 0.5489 GB, free: 12.84 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.304e-06/0.4326, allocations: 0.7969 kB / 0.5489 GB, free: 12.84 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.31e-07/0.4326, allocations: 0 / 0.5489 GB, free: 12.84 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005838/0.4332, allocations: 298 kB / 0.5491 GB, free: 12.55 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.497e-05/0.4332, allocations: 21.73 kB / 0.5492 GB, free: 12.53 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.824e-05/0.4333, allocations: 8.938 kB / 0.5492 GB, free: 12.52 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001216/0.4334, allocations: 0.8906 kB / 0.5492 GB, free: 12.52 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.186e-05/0.4335, allocations: 14.38 kB / 0.5492 GB, free: 12.52 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.367e-06/0.4335, allocations: 7.938 kB / 0.5492 GB, free: 12.51 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001681/0.4336, allocations: 163.9 kB / 0.5493 GB, free: 12.36 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4336, allocations: 3.938 kB / 0.5493 GB, free: 12.36 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002787/0.4339, allocations: 43.94 kB / 0.5494 GB, free: 12.32 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.0008921/0.4348, allocations: 0.8343 MB / 0.5502 GB, free: 11.48 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003322/0.4352, allocations: 105.1 kB / 0.5503 GB, free: 11.39 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.4352, allocations: 0 / 0.5503 GB, free: 11.39 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001367/0.4353, allocations: 54.73 kB / 0.5504 GB, free: 11.34 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003619/0.4357, allocations: 52.75 kB / 0.5504 GB, free: 11.3 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003211/0.4389, allocations: 2.298 MB / 0.5527 GB, free: 9.047 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001276/0.439, allocations: 126.8 kB / 0.5528 GB, free: 8.93 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001441/0.4391, allocations: 32.55 kB / 0.5528 GB, free: 8.902 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001216/0.4393, allocations: 72.81 kB / 0.5529 GB, free: 8.836 MB / 398.1 MB Notification: Performance of SimCode: time 5.41e-07/0.4393, allocations: 0 / 0.5529 GB, free: 8.836 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03505/0.4743, allocations: 5.419 MB / 0.5582 GB, free: 5.078 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.34/11.82, allocations: 7.312 kB / 0.5582 GB, free: 5.074 MB / 398.1 MB " [Timeout remaining time 648] (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: 14.63103311881423] Failed to read output from testmodel.py, exit status != 0: 11.929590354673564 11.944279571 11.516566866 Calling exit ...