Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.HeatPump_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.001361/0.001361, 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.001435/0.001435, 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.494/1.494, allocations: 230.6 MB / 253.5 MB, free: 15.09 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.1123/0.1123, allocations: 24.03 MB / 333.6 MB, free: 1.566 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.HeatPump_case_001,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_HeatPump_case_001",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.HeatPump_case_001,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_HeatPump_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.002114/0.002114, allocations: 77.58 kB / 468.4 MB, free: 31.5 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1089/0.111, allocations: 59.54 MB / 0.5156 GB, free: 12.32 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.HeatPump_case_001): time 0.003287/0.1143, allocations: 1.701 MB / 0.5172 GB, free: 10.6 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002468/0.1145, allocations: 55.8 kB / 0.5173 GB, free: 10.55 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.167e-05/0.1146, allocations: 4 kB / 0.5173 GB, free: 10.54 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 5.471e-05/0.1147, allocations: 11.86 kB / 0.5173 GB, free: 10.53 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001696/0.1148, allocations: 23.8 kB / 0.5173 GB, free: 10.51 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 7.791e-05/0.1149, allocations: 19.97 kB / 0.5173 GB, free: 10.49 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001391/0.115, allocations: 71.72 kB / 0.5174 GB, free: 10.42 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001768/0.1152, allocations: 32.16 kB / 0.5174 GB, free: 10.38 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.428e-05/0.1153, allocations: 35.84 kB / 0.5175 GB, free: 10.35 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000112/0.1154, allocations: 27.86 kB / 0.5175 GB, free: 10.32 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.551e-05/0.1154, allocations: 8 kB / 0.5175 GB, free: 10.31 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.884e-05/0.1154, allocations: 8 kB / 0.5175 GB, free: 10.3 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.058e-05/0.1155, allocations: 19.92 kB / 0.5175 GB, free: 10.29 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.948e-05/0.1155, allocations: 43.8 kB / 0.5176 GB, free: 10.24 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001589/0.1157, allocations: 83.64 kB / 0.5177 GB, free: 10.16 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.606e-06/0.1157, allocations: 0 / 0.5177 GB, free: 10.16 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.285e-06/0.1157, allocations: 0 / 0.5177 GB, free: 10.16 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.151e-06/0.1157, allocations: 0 / 0.5177 GB, free: 10.16 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: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.0005716/0.1163, allocations: 379.4 kB / 0.518 GB, free: 9.738 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.492e-05/0.1163, allocations: 12.62 kB / 0.518 GB, free: 9.727 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.179e-05/0.1164, allocations: 38.75 kB / 0.5181 GB, free: 9.68 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.319e-05/0.1164, allocations: 8.891 kB / 0.5181 GB, free: 9.672 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001531/0.1166, allocations: 168.3 kB / 0.5182 GB, free: 9.469 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.776e-05/0.1166, allocations: 12.56 kB / 0.5183 GB, free: 9.457 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.744e-05/0.1166, allocations: 20.25 kB / 0.5183 GB, free: 9.438 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001901/0.1168, allocations: 85.8 kB / 0.5184 GB, free: 9.348 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.947e-06/0.1168, allocations: 0 / 0.5184 GB, free: 9.348 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.363e-05/0.1168, allocations: 3.984 kB / 0.5184 GB, free: 9.344 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.742e-05/0.1168, allocations: 4 kB / 0.5184 GB, free: 9.34 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001119/0.1169, allocations: 53.84 kB / 0.5184 GB, free: 9.289 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000833/0.1178, allocations: 453.7 kB / 0.5188 GB, free: 8.777 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000141/0.1179, allocations: 54.56 kB / 0.5189 GB, free: 8.715 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.704e-05/0.118, allocations: 24.89 kB / 0.5189 GB, free: 8.688 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.652e-05/0.118, allocations: 4 kB / 0.5189 GB, free: 8.684 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.496e-05/0.118, allocations: 34.56 kB / 0.519 GB, free: 8.641 MB / 382.1 MB Notification: Performance of pre-optimization done (n=6): time 1.282e-06/0.118, allocations: 0 / 0.519 GB, free: 8.641 MB / 382.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002522/0.1183, allocations: 69.69 kB / 0.519 GB, free: 8.566 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.651e-05/0.1183, allocations: 59.34 kB / 0.5191 GB, free: 8.496 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001291/0.1185, allocations: 113.8 kB / 0.5192 GB, free: 8.375 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.023e-05/0.1185, allocations: 25.7 kB / 0.5192 GB, free: 8.344 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.528e-05/0.1186, allocations: 108.2 kB / 0.5193 GB, free: 8.234 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.196e-05/0.1186, allocations: 19.8 kB / 0.5193 GB, free: 8.215 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.984e-05/0.1186, allocations: 29.7 kB / 0.5194 GB, free: 8.18 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001799/0.1188, allocations: 310.8 kB / 0.5197 GB, free: 7.867 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.609e-05/0.1189, allocations: 19.94 kB / 0.5197 GB, free: 7.848 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.649e-05/0.1189, allocations: 38.56 kB / 0.5197 GB, free: 7.801 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.8e-05/0.119, allocations: 54.5 kB / 0.5198 GB, free: 7.738 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.119, allocations: 0 / 0.5198 GB, free: 7.738 MB / 382.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001417/0.1191, allocations: 81.58 kB / 0.5198 GB, free: 7.652 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.621e-05/0.1192, allocations: 12.06 kB / 0.5199 GB, free: 7.641 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.9e-06/0.1192, allocations: 0 / 0.5199 GB, free: 7.641 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.473e-05/0.1192, allocations: 0 / 0.5199 GB, free: 7.641 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001193/0.1193, allocations: 23.92 kB / 0.5199 GB, free: 7.617 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.062e-06/0.1193, allocations: 0 / 0.5199 GB, free: 7.617 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.277e-05/0.1193, allocations: 7.938 kB / 0.5199 GB, free: 7.609 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.887e-06/0.1194, allocations: 4 kB / 0.5199 GB, free: 7.605 MB / 382.1 MB 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 (9): * Single equations (assignments): 9 * 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.000107/0.1195, allocations: 118.6 kB / 0.52 GB, free: 7.48 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.678e-05/0.1195, allocations: 7.953 kB / 0.52 GB, free: 7.473 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001877/0.1197, allocations: 94.03 kB / 0.5201 GB, free: 7.379 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.028e-06/0.1197, allocations: 3.938 kB / 0.5201 GB, free: 7.375 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.1197, allocations: 192 / 0.5201 GB, free: 7.375 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.1197, allocations: 0 / 0.5201 GB, free: 7.375 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002444/0.1199, allocations: 185.6 kB / 0.5203 GB, free: 7.145 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.1199, allocations: 4 kB / 0.5203 GB, free: 7.141 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.357e-05/0.12, allocations: 8 kB / 0.5203 GB, free: 7.133 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.619e-06/0.12, allocations: 4 kB / 0.5203 GB, free: 7.129 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.046e-05/0.12, allocations: 3.984 kB / 0.5203 GB, free: 7.125 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.226e-06/0.12, allocations: 4.438 kB / 0.5203 GB, free: 7.121 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.12, allocations: 4 kB / 0.5203 GB, free: 7.117 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001958/0.1202, allocations: 171.4 kB / 0.5205 GB, free: 6.934 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.649e-05/0.1203, allocations: 81.11 kB / 0.5206 GB, free: 6.836 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.553e-05/0.1203, allocations: 4 kB / 0.5206 GB, free: 6.832 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.787e-05/0.1203, allocations: 3.938 kB / 0.5206 GB, free: 6.828 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.794e-05/0.1204, allocations: 7.984 kB / 0.5206 GB, free: 6.82 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.697e-06/0.1204, allocations: 3.938 kB / 0.5206 GB, free: 6.816 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.991e-05/0.1204, allocations: 87.28 kB / 0.5207 GB, free: 6.73 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1204, allocations: 0 / 0.5207 GB, free: 6.73 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002421/0.1207, allocations: 27.89 kB / 0.5207 GB, free: 6.703 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (7): * Single equations (assignments): 7 * 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.0006132/0.1213, allocations: 0.6929 MB / 0.5214 GB, free: 5.98 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000146/0.1214, allocations: 39.98 kB / 0.5214 GB, free: 5.941 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.1214, allocations: 4.125 kB / 0.5214 GB, free: 5.938 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 3.44e-05/0.1215, allocations: 19.94 kB / 0.5214 GB, free: 5.918 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003407/0.1218, allocations: 3.938 kB / 0.5214 GB, free: 5.914 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006265/0.1225, allocations: 211.9 kB / 0.5216 GB, free: 5.668 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003764/0.1228, allocations: 0.6885 MB / 0.5223 GB, free: 4.953 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 3.526e-05/0.1229, allocations: 8 kB / 0.5223 GB, free: 4.945 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.193e-05/0.1229, allocations: 27.42 kB / 0.5223 GB, free: 4.914 MB / 382.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1229, allocations: 0 / 0.5223 GB, free: 4.914 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0247/0.1476, allocations: 1.536 MB / 0.5238 GB, free: 3.465 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.042/8.189, allocations: 13.27 kB / 0.5238 GB, free: 3.457 MB / 382.1 MB " [Timeout remaining time 652] (rm -f AES_AES.Coursework.ThermSys_component_models.HeatPump_case_001.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.HeatPump_case_001.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.HeatPump_case_001.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.HeatPump_case_001.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.ThermSys_component_models.HeatPump_case_001_res.csv --start-time 0 --stop-time 10000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1 AES_AES_Coursework_ThermSys_component_models_HeatPump_case_001.fmu > AES_AES.Coursework.ThermSys_component_models.HeatPump_case_001.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.212220459012315] Failed to read output from testmodel.py, exit status != 0: 8.258122103987262 8.274543016 8.155666385 Calling exit ...