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.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.001703/0.001703, allocations: 109.4 kB / 17.14 MB, free: 6.043 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.001974/0.001974, allocations: 207.2 kB / 20.11 MB, free: 3.086 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.536/1.536, allocations: 230.6 MB / 253.5 MB, free: 15.08 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.1067/0.1067, allocations: 24.03 MB / 333.6 MB, free: 1.547 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_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: 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.002253/0.002253, allocations: 77.67 kB / 468.4 MB, free: 31.51 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1012/0.1035, allocations: 59.54 MB / 0.5156 GB, free: 12.3 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002): time 0.004112/0.1076, allocations: 2.596 MB / 0.5181 GB, free: 9.68 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.000942/0.1085, allocations: 358.7 kB / 0.5184 GB, free: 9.328 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002323/0.1087, allocations: 15.88 kB / 0.5185 GB, free: 9.312 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001132/0.1089, allocations: 39.64 kB / 0.5185 GB, free: 9.273 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004074/0.1093, allocations: 115 kB / 0.5186 GB, free: 9.16 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002845/0.1095, allocations: 83.77 kB / 0.5187 GB, free: 9.078 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004506/0.11, allocations: 358.2 kB / 0.519 GB, free: 8.727 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003032/0.1103, allocations: 149.6 kB / 0.5192 GB, free: 8.582 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002747/0.1106, allocations: 163.3 kB / 0.5193 GB, free: 8.422 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002179/0.1108, allocations: 123.4 kB / 0.5194 GB, free: 8.301 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.388e-05/0.1108, allocations: 20 kB / 0.5195 GB, free: 8.281 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001433/0.111, allocations: 47.97 kB / 0.5195 GB, free: 8.234 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.45e-05/0.111, allocations: 55.72 kB / 0.5196 GB, free: 8.18 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001503/0.1112, allocations: 143.3 kB / 0.5197 GB, free: 8.039 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004019/0.1116, allocations: 298.7 kB / 0.52 GB, free: 7.746 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.626e-06/0.1116, allocations: 0 / 0.52 GB, free: 7.746 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.1116, allocations: 0 / 0.52 GB, free: 7.746 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.027e-06/0.1116, allocations: 0 / 0.52 GB, free: 7.746 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.0009209/0.1125, allocations: 0.5786 MB / 0.5206 GB, free: 7.113 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.057e-05/0.1126, allocations: 12.62 kB / 0.5206 GB, free: 7.102 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.601e-05/0.1126, allocations: 54.73 kB / 0.5206 GB, free: 7.039 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.79e-05/0.1127, allocations: 32.75 kB / 0.5206 GB, free: 7.008 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004181/0.1131, allocations: 294.8 kB / 0.5209 GB, free: 6.684 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.339e-05/0.1131, allocations: 16.75 kB / 0.5209 GB, free: 6.668 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.614e-05/0.1132, allocations: 16.38 kB / 0.521 GB, free: 6.652 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003669/0.1135, allocations: 213.3 kB / 0.5212 GB, free: 6.426 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.457e-05/0.1136, allocations: 7.875 kB / 0.5212 GB, free: 6.418 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.766e-05/0.1136, allocations: 12 kB / 0.5212 GB, free: 6.406 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.208e-06/0.1136, allocations: 11.92 kB / 0.5212 GB, free: 6.395 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002604/0.1139, allocations: 120.9 kB / 0.5213 GB, free: 6.277 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001176/0.115, allocations: 0.8342 MB / 0.5221 GB, free: 5.375 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002662/0.1153, allocations: 90.67 kB / 0.5222 GB, free: 5.277 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.198e-05/0.1154, allocations: 44.84 kB / 0.5223 GB, free: 5.23 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.412e-05/0.1154, allocations: 4 kB / 0.5223 GB, free: 5.227 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.189e-05/0.1154, allocations: 30.56 kB / 0.5223 GB, free: 5.188 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.223e-06/0.1154, allocations: 0 / 0.5223 GB, free: 5.188 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003662/0.1158, allocations: 145.4 kB / 0.5224 GB, free: 5.039 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.038e-05/0.1159, allocations: 59.39 kB / 0.5225 GB, free: 4.969 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003192/0.1162, allocations: 288.5 kB / 0.5228 GB, free: 4.684 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.392e-05/0.1162, allocations: 29.7 kB / 0.5228 GB, free: 4.648 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001333/0.1163, allocations: 179.7 kB / 0.523 GB, free: 4.469 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.066e-05/0.1164, allocations: 31.7 kB / 0.523 GB, free: 4.438 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.914e-05/0.1164, allocations: 37.7 kB / 0.523 GB, free: 4.395 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001579/0.1166, allocations: 334.8 kB / 0.5233 GB, free: 4.059 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.861e-05/0.1167, allocations: 35.98 kB / 0.5234 GB, free: 4.023 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001022/0.1168, allocations: 62.28 kB / 0.5234 GB, free: 3.957 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001276/0.1181, allocations: 256.7 kB / 0.5237 GB, free: 3.699 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.1181, allocations: 0 / 0.5237 GB, free: 3.699 MB / 382.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003149/0.1184, allocations: 177.3 kB / 0.5239 GB, free: 3.52 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.3e-05/0.1184, allocations: 4 kB / 0.5239 GB, free: 3.516 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.07e-06/0.1184, allocations: 0 / 0.5239 GB, free: 3.516 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.587e-05/0.1184, allocations: 8 kB / 0.5239 GB, free: 3.508 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000217/0.1186, allocations: 35.98 kB / 0.5239 GB, free: 3.473 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.281e-06/0.1186, allocations: 0 / 0.5239 GB, free: 3.473 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001527/0.1188, allocations: 23.77 kB / 0.5239 GB, free: 3.449 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.593e-05/0.1188, allocations: 8 kB / 0.5239 GB, free: 3.441 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.0001924/0.119, allocations: 142.9 kB / 0.5241 GB, free: 3.293 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.413e-05/0.119, allocations: 23.86 kB / 0.5241 GB, free: 3.27 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003427/0.1194, allocations: 163.3 kB / 0.5242 GB, free: 3.102 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.129e-06/0.1194, allocations: 7.938 kB / 0.5242 GB, free: 3.094 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.1194, allocations: 0 / 0.5242 GB, free: 3.094 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.1194, allocations: 7.984 kB / 0.5243 GB, free: 3.086 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003285/0.1197, allocations: 269.5 kB / 0.5245 GB, free: 2.773 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.1197, allocations: 0 / 0.5245 GB, free: 2.773 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001912/0.1199, allocations: 27.98 kB / 0.5245 GB, free: 2.746 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-06/0.1199, allocations: 0 / 0.5245 GB, free: 2.746 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.302e-05/0.12, allocations: 15.94 kB / 0.5246 GB, free: 2.73 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.397e-06/0.12, allocations: 3.984 kB / 0.5246 GB, free: 2.727 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.12, allocations: 0 / 0.5246 GB, free: 2.727 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003995/0.1204, allocations: 279.3 kB / 0.5248 GB, free: 2.438 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.296e-05/0.1205, allocations: 108.9 kB / 0.5249 GB, free: 2.312 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.641e-05/0.1205, allocations: 3.938 kB / 0.5249 GB, free: 2.309 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001297/0.1206, allocations: 7.984 kB / 0.5249 GB, free: 2.301 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.606e-05/0.1207, allocations: 4 kB / 0.5249 GB, free: 2.297 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.906e-06/0.1207, allocations: 4 kB / 0.5249 GB, free: 2.293 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002382/0.1209, allocations: 211.1 kB / 0.5252 GB, free: 2.09 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1209, allocations: 0 / 0.5252 GB, free: 2.09 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003108/0.1212, allocations: 55.89 kB / 0.5252 GB, free: 2.035 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.0007351/0.1219, allocations: 0.828 MB / 0.526 GB, free: 1.18 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000233/0.1222, allocations: 91.84 kB / 0.5261 GB, free: 1.09 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.1222, allocations: 0 / 0.5261 GB, free: 1.09 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 8.872e-05/0.1223, allocations: 43.98 kB / 0.5261 GB, free: 1.047 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004124/0.1227, allocations: 60.8 kB / 0.5262 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003305/0.126, allocations: 2.51 MB / 0.5287 GB, free: 14.39 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003884/0.1264, allocations: 0.748 MB / 0.5294 GB, free: 13.62 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001432/0.1265, allocations: 46.89 kB / 0.5294 GB, free: 13.57 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001402/0.1267, allocations: 91.39 kB / 0.5295 GB, free: 13.48 MB / 398.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1267, allocations: 0 / 0.5295 GB, free: 13.48 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0303/0.157, allocations: 5.495 MB / 0.5349 GB, free: 8.121 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.253/8.41, allocations: 11.36 kB / 0.5349 GB, free: 8.113 MB / 398.1 MB " [Timeout remaining time 652] (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.373959111981094] Failed to read output from testmodel.py, exit status != 0: 8.485393990995362 8.513819788 8.39721189 Calling exit ...