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.001685/0.001685, allocations: 109.5 kB / 17.14 MB, free: 5.93 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.002172/0.002172, allocations: 205.1 kB / 20.11 MB, free: 2.977 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.504/1.504, allocations: 230.6 MB / 253.5 MB, free: 15.07 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.1052/0.1052, allocations: 24.04 MB / 333.6 MB, free: 1.543 MB / 254.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.002182/0.002182, allocations: 69.14 kB / 468.4 MB, free: 31.59 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09402/0.0962, allocations: 59.55 MB / 0.5156 GB, free: 12.29 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.03673/0.1329, allocations: 23.68 MB / 0.5387 GB, free: 4.727 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00114/0.1341, allocations: 414.5 kB / 0.5391 GB, free: 4.32 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002706/0.1343, allocations: 15.88 kB / 0.5391 GB, free: 4.305 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001382/0.1345, allocations: 47.56 kB / 0.5392 GB, free: 4.258 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004477/0.1349, allocations: 150.8 kB / 0.5393 GB, free: 4.109 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002353/0.1352, allocations: 79.83 kB / 0.5394 GB, free: 4.031 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004316/0.1356, allocations: 422 kB / 0.5398 GB, free: 3.617 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003302/0.1359, allocations: 215 kB / 0.54 GB, free: 3.406 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002584/0.1362, allocations: 203.3 kB / 0.5402 GB, free: 3.207 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002678/0.1364, allocations: 191.2 kB / 0.5404 GB, free: 3.02 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.02e-05/0.1365, allocations: 32 kB / 0.5404 GB, free: 2.988 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001343/0.1366, allocations: 63.97 kB / 0.5405 GB, free: 2.926 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.452e-05/0.1367, allocations: 67.7 kB / 0.5405 GB, free: 2.859 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001796/0.1369, allocations: 179.1 kB / 0.5407 GB, free: 2.684 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004661/0.1373, allocations: 402.3 kB / 0.5411 GB, free: 2.289 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.1373, allocations: 4 kB / 0.5411 GB, free: 2.285 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.502e-06/0.1373, allocations: 0 / 0.5411 GB, free: 2.285 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.478e-06/0.1374, allocations: 7.984 kB / 0.5411 GB, free: 2.277 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.001059/0.1384, allocations: 0.6346 MB / 0.5417 GB, free: 1.59 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.087e-05/0.1385, allocations: 12.61 kB / 0.5417 GB, free: 1.578 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.289e-05/0.1385, allocations: 54.73 kB / 0.5418 GB, free: 1.516 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.439e-05/0.1386, allocations: 40.7 kB / 0.5418 GB, free: 1.477 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004189/0.139, allocations: 335.5 kB / 0.5421 GB, free: 1.113 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.069e-05/0.139, allocations: 16.94 kB / 0.5421 GB, free: 1.098 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.067e-05/0.1391, allocations: 20.38 kB / 0.5422 GB, free: 1.078 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004792/0.1396, allocations: 280.8 kB / 0.5424 GB, free: 0.7891 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.141e-05/0.1396, allocations: 7.875 kB / 0.5424 GB, free: 0.7812 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.772e-05/0.1396, allocations: 8 kB / 0.5424 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.027e-06/0.1396, allocations: 12 kB / 0.5425 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003883/0.14, allocations: 193.7 kB / 0.5426 GB, free: 0.5742 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001398/0.1414, allocations: 0.8969 MB / 0.5435 GB, free: 15.61 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003638/0.1418, allocations: 150.7 kB / 0.5437 GB, free: 15.46 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000226/0.142, allocations: 100.7 kB / 0.5438 GB, free: 15.36 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.869e-05/0.142, allocations: 7.938 kB / 0.5438 GB, free: 15.35 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.81e-05/0.1421, allocations: 38.48 kB / 0.5438 GB, free: 15.3 MB / 414.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002825/0.1423, allocations: 55.86 kB / 0.5439 GB, free: 15.25 MB / 414.1 MB Notification: Performance of pre-optimization done (n=18): time 1.483e-06/0.1423, allocations: 0 / 0.5439 GB, free: 15.25 MB / 414.1 MB Notification: Performance of matching and sorting (n=18): time 0.001412/0.1438, allocations: 447.1 kB / 0.5443 GB, free: 14.78 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.955e-05/0.1438, allocations: 55.34 kB / 0.5443 GB, free: 14.71 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003179/0.1441, allocations: 308.5 kB / 0.5446 GB, free: 14.41 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.6e-05/0.1441, allocations: 25.7 kB / 0.5447 GB, free: 14.38 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001441/0.1443, allocations: 184.3 kB / 0.5448 GB, free: 14.19 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.974e-05/0.1443, allocations: 67.42 kB / 0.5449 GB, free: 14.12 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.157e-05/0.1444, allocations: 49.69 kB / 0.5449 GB, free: 14.07 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000164/0.1446, allocations: 342.8 kB / 0.5453 GB, free: 13.73 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001357/0.1447, allocations: 59.97 kB / 0.5453 GB, free: 13.67 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001609/0.1449, allocations: 97.61 kB / 0.5454 GB, free: 13.57 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004138/0.149, allocations: 0.694 MB / 0.5461 GB, free: 12.87 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.149, allocations: 0 / 0.5461 GB, free: 12.87 MB / 414.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.000892/0.1499, allocations: 310 kB / 0.5464 GB, free: 12.56 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.863e-05/0.1499, allocations: 6.031 kB / 0.5464 GB, free: 12.55 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.1499, allocations: 0 / 0.5464 GB, free: 12.55 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007969/0.1507, allocations: 108.8 kB / 0.5465 GB, free: 12.45 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002651/0.151, allocations: 55.91 kB / 0.5466 GB, free: 12.39 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004863/0.1515, allocations: 0.5757 MB / 0.5471 GB, free: 11.79 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000164/0.1517, allocations: 4 kB / 0.5471 GB, free: 11.79 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.698e-05/0.1517, allocations: 11.98 kB / 0.5471 GB, free: 11.77 MB / 414.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.0002222/0.1519, allocations: 146.6 kB / 0.5473 GB, free: 11.62 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.284e-05/0.152, allocations: 27.81 kB / 0.5473 GB, free: 11.59 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009183/0.1529, allocations: 365.3 kB / 0.5476 GB, free: 11.23 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.568e-06/0.1529, allocations: 0 / 0.5476 GB, free: 11.23 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.1529, allocations: 0 / 0.5476 GB, free: 11.23 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.077e-06/0.1529, allocations: 4 kB / 0.5476 GB, free: 11.22 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001376/0.1543, allocations: 0.727 MB / 0.5484 GB, free: 10.43 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.1543, allocations: 0 / 0.5484 GB, free: 10.43 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002496/0.1545, allocations: 47.91 kB / 0.5484 GB, free: 10.38 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005784/0.1551, allocations: 100.8 kB / 0.5485 GB, free: 10.28 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.182e-05/0.1551, allocations: 0 / 0.5485 GB, free: 10.28 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004537/0.1556, allocations: 0.5913 MB / 0.5491 GB, free: 9.664 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/0.1556, allocations: 8.094 kB / 0.5491 GB, free: 9.656 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009834/0.1566, allocations: 0.5028 MB / 0.5496 GB, free: 9.129 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.381e-05/0.1567, allocations: 112.9 kB / 0.5497 GB, free: 9 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.521e-05/0.1567, allocations: 4 kB / 0.5497 GB, free: 8.996 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000168/0.1569, allocations: 11.94 kB / 0.5497 GB, free: 8.984 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.835e-05/0.1569, allocations: 23.91 kB / 0.5497 GB, free: 8.961 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.72e-05/0.157, allocations: 7.984 kB / 0.5497 GB, free: 8.953 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002307/0.1572, allocations: 219.1 kB / 0.5499 GB, free: 8.738 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1572, allocations: 4.062 kB / 0.5499 GB, free: 8.734 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003489/0.1575, allocations: 71.89 kB / 0.55 GB, free: 8.664 MB / 414.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.001109/0.1587, allocations: 1.023 MB / 0.551 GB, free: 7.605 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005063/0.1592, allocations: 183.7 kB / 0.5512 GB, free: 7.426 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.1592, allocations: 0 / 0.5512 GB, free: 7.426 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002726/0.1594, allocations: 103.9 kB / 0.5513 GB, free: 7.324 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004347/0.1599, allocations: 69.44 kB / 0.5514 GB, free: 7.258 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004975/0.1648, allocations: 3.01 MB / 0.5543 GB, free: 4.145 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000445/0.1653, allocations: 0.7795 MB / 0.5551 GB, free: 3.34 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001606/0.1655, allocations: 42.95 kB / 0.5551 GB, free: 3.301 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002094/0.1657, allocations: 115.4 kB / 0.5552 GB, free: 3.188 MB / 414.1 MB Notification: Performance of SimCode: time 1.172e-06/0.1657, allocations: 3.938 kB / 0.5552 GB, free: 3.184 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03606/0.2017, allocations: 7.285 MB / 0.5623 GB, free: 12.02 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.98/12.18, allocations: 4.062 kB / 0.5623 GB, free: 12.02 MB / 430.1 MB " [Timeout remaining time 648] (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: 15.073395541869104] Failed to read output from testmodel.py, exit status != 0: 12.282557437894866 12.30743319 12.165686912 Calling exit ...