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.001308/0.001308, allocations: 109.1 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.001414/0.001414, allocations: 204 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.584/1.584, allocations: 230.6 MB / 253.5 MB, free: 15.1 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.1182/0.1182, allocations: 24.03 MB / 333.6 MB, free: 1.582 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_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.002225/0.002225, allocations: 69.7 kB / 468.4 MB, free: 31.59 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.105, allocations: 59.55 MB / 0.5156 GB, free: 12.32 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.03679/0.1418, allocations: 23.23 MB / 0.5383 GB, free: 5.211 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006611/0.1424, allocations: 215.2 kB / 0.5385 GB, free: 5 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001958/0.1426, allocations: 23.88 kB / 0.5385 GB, free: 4.977 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001033/0.1427, allocations: 27.7 kB / 0.5385 GB, free: 4.949 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002651/0.143, allocations: 103.2 kB / 0.5386 GB, free: 4.848 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001549/0.1431, allocations: 47.94 kB / 0.5387 GB, free: 4.801 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003553/0.1435, allocations: 290.5 kB / 0.5389 GB, free: 4.516 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000251/0.1437, allocations: 125.3 kB / 0.5391 GB, free: 4.395 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002651/0.144, allocations: 147.4 kB / 0.5392 GB, free: 4.25 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001607/0.1442, allocations: 91.58 kB / 0.5393 GB, free: 4.16 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.474e-05/0.1442, allocations: 15.94 kB / 0.5393 GB, free: 4.145 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.052e-05/0.1442, allocations: 16 kB / 0.5393 GB, free: 4.129 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 4.623e-05/0.1443, allocations: 43.78 kB / 0.5394 GB, free: 4.086 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001302/0.1444, allocations: 115.3 kB / 0.5395 GB, free: 3.973 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002954/0.1447, allocations: 223 kB / 0.5397 GB, free: 3.754 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.1447, allocations: 4 kB / 0.5397 GB, free: 3.75 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1447, allocations: 0 / 0.5397 GB, free: 3.75 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.354e-06/0.1447, allocations: 0 / 0.5397 GB, free: 3.75 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: 39 * Number of variables: 39 Notification: Performance of Generate backend data structure: time 0.0007835/0.1455, allocations: 0.5219 MB / 0.5402 GB, free: 3.172 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.852e-05/0.1456, allocations: 12.61 kB / 0.5402 GB, free: 3.16 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.991e-05/0.1456, allocations: 50.73 kB / 0.5403 GB, free: 3.102 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.827e-05/0.1457, allocations: 28.8 kB / 0.5403 GB, free: 3.074 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003492/0.146, allocations: 279.4 kB / 0.5405 GB, free: 2.762 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.939e-05/0.146, allocations: 12.7 kB / 0.5406 GB, free: 2.75 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.242e-05/0.1461, allocations: 16.38 kB / 0.5406 GB, free: 2.734 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003803/0.1465, allocations: 192.7 kB / 0.5408 GB, free: 2.527 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.262e-05/0.1465, allocations: 7.938 kB / 0.5408 GB, free: 2.52 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.671e-05/0.1465, allocations: 4 kB / 0.5408 GB, free: 2.516 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.305e-06/0.1465, allocations: 4 kB / 0.5408 GB, free: 2.512 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003356/0.1468, allocations: 119.9 kB / 0.5409 GB, free: 2.395 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001039/0.1479, allocations: 0.8484 MB / 0.5417 GB, free: 1.48 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000204/0.1481, allocations: 78.48 kB / 0.5418 GB, free: 1.395 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001444/0.1482, allocations: 56.83 kB / 0.5418 GB, free: 1.336 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.626e-05/0.1482, allocations: 4 kB / 0.5419 GB, free: 1.332 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.592e-05/0.1483, allocations: 30.56 kB / 0.5419 GB, free: 1.293 MB / 398.1 MB Notification: Performance of pre-optimization done (n=14): time 1.152e-06/0.1483, allocations: 0 / 0.5419 GB, free: 1.293 MB / 398.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005139/0.1488, allocations: 173.8 kB / 0.542 GB, free: 1.117 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.684e-05/0.1488, allocations: 63.41 kB / 0.5421 GB, free: 1.043 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002293/0.149, allocations: 225 kB / 0.5423 GB, free: 0.8125 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.625e-05/0.1491, allocations: 29.7 kB / 0.5423 GB, free: 0.7773 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001029/0.1492, allocations: 144.3 kB / 0.5425 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.586e-05/0.1492, allocations: 55.53 kB / 0.5425 GB, free: 0.5742 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.333e-05/0.1493, allocations: 33.64 kB / 0.5426 GB, free: 0.5352 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001565/0.1494, allocations: 338.7 kB / 0.5429 GB, free: 200 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001264/0.1496, allocations: 35.98 kB / 0.5429 GB, free: 164 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001395/0.1497, allocations: 66.55 kB / 0.543 GB, free: 88 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008813/0.1506, allocations: 224.9 kB / 0.5432 GB, free: 15.86 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.1506, allocations: 0 / 0.5432 GB, free: 15.86 MB / 414.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003732/0.151, allocations: 165.4 kB / 0.5434 GB, free: 15.69 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.297e-05/0.151, allocations: 8.062 kB / 0.5434 GB, free: 15.68 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.459e-06/0.151, allocations: 0 / 0.5434 GB, free: 15.68 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.422e-05/0.151, allocations: 7.938 kB / 0.5434 GB, free: 15.67 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002116/0.1512, allocations: 35.98 kB / 0.5434 GB, free: 15.64 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.727e-06/0.1512, allocations: 7.969 kB / 0.5434 GB, free: 15.63 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001186/0.1513, allocations: 11.89 kB / 0.5434 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.675e-05/0.1514, allocations: 8 kB / 0.5434 GB, free: 15.61 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: 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.0001841/0.1515, allocations: 143 kB / 0.5436 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.691e-05/0.1516, allocations: 19.86 kB / 0.5436 GB, free: 15.44 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.176e-05/0.1516, allocations: 29.84 kB / 0.5436 GB, free: 15.41 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.1516, allocations: 0 / 0.5436 GB, free: 15.41 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.968e-06/0.1517, allocations: 0 / 0.5436 GB, free: 15.41 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/0.1517, allocations: 3.984 kB / 0.5436 GB, free: 15.41 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000374/0.152, allocations: 265.5 kB / 0.5439 GB, free: 15.1 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.152, allocations: 0 / 0.5439 GB, free: 15.1 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002106/0.1522, allocations: 35.97 kB / 0.5439 GB, free: 15.06 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.487e-06/0.1522, allocations: 0 / 0.5439 GB, free: 15.06 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.567e-05/0.1523, allocations: 8 kB / 0.5439 GB, free: 15.05 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.1523, allocations: 0 / 0.5439 GB, free: 15.05 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-06/0.1523, allocations: 3.938 kB / 0.5439 GB, free: 15.05 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000554/0.1528, allocations: 307.8 kB / 0.5442 GB, free: 14.73 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.213e-05/0.1529, allocations: 92.95 kB / 0.5443 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.815e-05/0.1529, allocations: 0 / 0.5443 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001334/0.1531, allocations: 11.98 kB / 0.5443 GB, free: 14.61 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.828e-05/0.1531, allocations: 11.98 kB / 0.5443 GB, free: 14.6 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.768e-06/0.1531, allocations: 4 kB / 0.5443 GB, free: 14.6 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001633/0.1533, allocations: 164.5 kB / 0.5445 GB, free: 14.44 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1533, allocations: 3.938 kB / 0.5445 GB, free: 14.44 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002898/0.1536, allocations: 47.89 kB / 0.5445 GB, free: 14.39 MB / 414.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.0008365/0.1544, allocations: 0.8317 MB / 0.5454 GB, free: 13.54 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0003345/0.1548, allocations: 107.9 kB / 0.5455 GB, free: 13.43 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.1548, allocations: 4.188 kB / 0.5455 GB, free: 13.43 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001449/0.1549, allocations: 55.91 kB / 0.5455 GB, free: 13.37 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003558/0.1553, allocations: 44.36 kB / 0.5456 GB, free: 13.32 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003188/0.1584, allocations: 2.298 MB / 0.5478 GB, free: 10.93 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003857/0.1588, allocations: 0.744 MB / 0.5485 GB, free: 10.16 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001253/0.159, allocations: 30.28 kB / 0.5486 GB, free: 10.14 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001113/0.1591, allocations: 67.41 kB / 0.5486 GB, free: 10.07 MB / 414.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1591, allocations: 0 / 0.5486 GB, free: 10.07 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02733/0.1864, allocations: 4.65 MB / 0.5532 GB, free: 5.504 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.054/8.24, allocations: 6.719 kB / 0.5532 GB, free: 5.5 MB / 414.1 MB " [Timeout remaining time 652] (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.15885077510029] Failed to read output from testmodel.py, exit status != 0: 8.31065136892721 8.331868205 8.182861552 Calling exit ...