Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001385/0.001385, allocations: 104.8 kB / 16.4 MB, free: 6.516 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001366/0.001366, allocations: 196.5 kB / 19.35 MB, free: 3.73 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.444/1.444, allocations: 222.9 MB / 245 MB, free: 15 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.1093/0.1093, allocations: 22.32 MB / 319.5 MB, free: 6.766 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_002",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_002",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001937/0.001937, allocations: 59.91 kB / 445.3 MB, free: 8.602 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1164/0.1183, allocations: 54.95 MB / 0.4885 GB, free: 1.602 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002): time 0.004064/0.1224, allocations: 2.568 MB / 0.491 GB, free: 15.01 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.000823/0.1233, allocations: 366.7 kB / 0.4913 GB, free: 14.65 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001462/0.1235, allocations: 15.94 kB / 0.4914 GB, free: 14.64 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 9.032e-05/0.1236, allocations: 31.64 kB / 0.4914 GB, free: 14.61 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003069/0.1239, allocations: 115 kB / 0.4915 GB, free: 14.49 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002498/0.1242, allocations: 75.84 kB / 0.4916 GB, free: 14.42 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003883/0.1246, allocations: 370.2 kB / 0.4919 GB, free: 14.05 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003114/0.1249, allocations: 169.8 kB / 0.4921 GB, free: 13.89 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002/0.1251, allocations: 139.4 kB / 0.4922 GB, free: 13.75 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002086/0.1253, allocations: 127.4 kB / 0.4923 GB, free: 13.62 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.813e-05/0.1254, allocations: 20 kB / 0.4924 GB, free: 13.61 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001293/0.1255, allocations: 47.97 kB / 0.4924 GB, free: 13.56 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.59e-05/0.1256, allocations: 47.84 kB / 0.4925 GB, free: 13.51 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001633/0.1258, allocations: 147.2 kB / 0.4926 GB, free: 13.37 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004047/0.1262, allocations: 306.6 kB / 0.4929 GB, free: 13.07 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.1262, allocations: 0 / 0.4929 GB, free: 13.07 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.1262, allocations: 0 / 0.4929 GB, free: 13.07 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.903e-06/0.1262, allocations: 0 / 0.4929 GB, free: 13.07 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: 45 * Number of variables: 45 Notification: Performance of Generate backend data structure: time 0.0009452/0.1271, allocations: 0.5802 MB / 0.4934 GB, free: 12.43 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.834e-05/0.1272, allocations: 12.03 kB / 0.4935 GB, free: 12.42 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.176e-05/0.1273, allocations: 46.73 kB / 0.4935 GB, free: 12.36 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.9e-05/0.1274, allocations: 36.75 kB / 0.4935 GB, free: 12.33 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004721/0.1279, allocations: 294.8 kB / 0.4938 GB, free: 12 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.992e-05/0.1279, allocations: 12.75 kB / 0.4938 GB, free: 11.99 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.267e-05/0.128, allocations: 16.38 kB / 0.4938 GB, free: 11.97 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003807/0.1283, allocations: 216.5 kB / 0.4941 GB, free: 11.74 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.34e-05/0.1284, allocations: 3.938 kB / 0.4941 GB, free: 11.74 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.06e-05/0.1284, allocations: 8 kB / 0.4941 GB, free: 11.73 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.015e-05/0.1284, allocations: 8 kB / 0.4941 GB, free: 11.72 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002553/0.1287, allocations: 120.9 kB / 0.4942 GB, free: 11.61 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001151/0.1298, allocations: 0.8265 MB / 0.495 GB, free: 10.72 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002576/0.1301, allocations: 98.61 kB / 0.4951 GB, free: 10.61 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.797e-05/0.1302, allocations: 48.84 kB / 0.4951 GB, free: 10.56 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.616e-05/0.1302, allocations: 0 / 0.4951 GB, free: 10.56 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.664e-05/0.1303, allocations: 30.56 kB / 0.4952 GB, free: 10.52 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.193e-06/0.1303, allocations: 4 kB / 0.4952 GB, free: 10.52 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003624/0.1306, allocations: 149.4 kB / 0.4953 GB, free: 10.37 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.268e-05/0.1307, allocations: 55.39 kB / 0.4954 GB, free: 10.3 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003461/0.131, allocations: 292.6 kB / 0.4956 GB, free: 10 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.127e-05/0.1311, allocations: 29.64 kB / 0.4957 GB, free: 9.969 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001428/0.1312, allocations: 175.7 kB / 0.4958 GB, free: 9.793 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.398e-05/0.1313, allocations: 39.7 kB / 0.4959 GB, free: 9.754 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.816e-05/0.1313, allocations: 29.7 kB / 0.4959 GB, free: 9.719 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001655/0.1315, allocations: 338.8 kB / 0.4962 GB, free: 9.379 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.395e-05/0.1316, allocations: 31.98 kB / 0.4963 GB, free: 9.348 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001096/0.1317, allocations: 66.48 kB / 0.4963 GB, free: 9.273 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001249/0.133, allocations: 256.5 kB / 0.4966 GB, free: 9.016 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.133, allocations: 0 / 0.4966 GB, free: 9.016 MB / 382.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.000319/0.1333, allocations: 172.2 kB / 0.4967 GB, free: 8.844 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.823e-05/0.1333, allocations: 4 kB / 0.4967 GB, free: 8.84 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.1334, allocations: 4 kB / 0.4967 GB, free: 8.836 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.814e-05/0.1334, allocations: 4 kB / 0.4967 GB, free: 8.832 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002258/0.1336, allocations: 35.98 kB / 0.4968 GB, free: 8.797 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.456e-06/0.1336, allocations: 7.984 kB / 0.4968 GB, free: 8.789 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001311/0.1338, allocations: 15.89 kB / 0.4968 GB, free: 8.773 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.363e-05/0.1338, allocations: 4 kB / 0.4968 GB, free: 8.77 MB / 382.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.0002219/0.134, allocations: 143 kB / 0.4969 GB, free: 8.621 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.408e-05/0.1341, allocations: 35.8 kB / 0.497 GB, free: 8.586 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003223/0.1344, allocations: 151.5 kB / 0.4971 GB, free: 8.43 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.1344, allocations: 0 / 0.4971 GB, free: 8.43 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.98e-06/0.1344, allocations: 384 / 0.4971 GB, free: 8.43 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.51e-06/0.1344, allocations: 11.98 kB / 0.4971 GB, free: 8.418 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003917/0.1348, allocations: 273.5 kB / 0.4974 GB, free: 8.102 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.1349, allocations: 0 / 0.4974 GB, free: 8.102 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002047/0.1351, allocations: 39.86 kB / 0.4974 GB, free: 8.062 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.015e-06/0.1351, allocations: 0 / 0.4974 GB, free: 8.062 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.502e-05/0.1351, allocations: 3.938 kB / 0.4974 GB, free: 8.059 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.807e-06/0.1351, allocations: 3.984 kB / 0.4974 GB, free: 8.055 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.542e-06/0.1351, allocations: 4 kB / 0.4974 GB, free: 8.051 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003891/0.1355, allocations: 278.6 kB / 0.4977 GB, free: 7.766 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.433e-05/0.1356, allocations: 104.9 kB / 0.4978 GB, free: 7.645 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.806e-05/0.1357, allocations: 7.938 kB / 0.4978 GB, free: 7.637 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001235/0.1358, allocations: 7.984 kB / 0.4978 GB, free: 7.629 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.594e-05/0.1358, allocations: 11.88 kB / 0.4978 GB, free: 7.617 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.037e-06/0.1359, allocations: 4 kB / 0.4978 GB, free: 7.613 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002184/0.1361, allocations: 215.1 kB / 0.498 GB, free: 7.406 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1361, allocations: 0 / 0.498 GB, free: 7.406 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003004/0.1364, allocations: 51.94 kB / 0.4981 GB, free: 7.355 MB / 382.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 (13): * Single equations (assignments): 13 * 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.0007583/0.1371, allocations: 0.81 MB / 0.4989 GB, free: 6.516 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002612/0.1374, allocations: 103.8 kB / 0.499 GB, free: 6.414 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.063e-06/0.1374, allocations: 0 / 0.499 GB, free: 6.414 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 8.817e-05/0.1375, allocations: 47.92 kB / 0.499 GB, free: 6.367 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004114/0.1379, allocations: 59.03 kB / 0.4991 GB, free: 6.312 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003426/0.1414, allocations: 2.527 MB / 0.5016 GB, free: 3.699 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004367/0.1418, allocations: 0.7596 MB / 0.5023 GB, free: 2.91 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001484/0.142, allocations: 34.97 kB / 0.5023 GB, free: 2.875 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001324/0.1421, allocations: 87.41 kB / 0.5024 GB, free: 2.789 MB / 382.1 MB Notification: Performance of SimCode: time 5.51e-07/0.1422, allocations: 0 / 0.5024 GB, free: 2.789 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2698/0.4119, allocations: 5.439 MB / 0.5077 GB, free: 20.53 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.167/8.579, allocations: 6.562 kB / 0.5077 GB, free: 20.52 MB / 382.1 MB " [Timeout remaining time 651] (rm -f AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002_res.csv --start-time 0 --stop-time 1500 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 3 AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_002.fmu > AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.338387846946716] Failed to read output from testmodel.py, exit status != 0: 8.649136680993252 8.672833316 8.542604972 Calling exit ...