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.001421/0.001421, allocations: 116.1 kB / 17.17 MB, free: 6 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.002667/0.002667, allocations: 209.5 kB / 20.13 MB, free: 3.055 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.575/1.575, 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.1005/0.1005, allocations: 22.93 MB / 332.5 MB, free: 2.629 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="cs",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="cs",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.002028/0.002028, allocations: 67.88 kB / 466.7 MB, free: 32.08 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1143/0.1164, allocations: 59.26 MB / 0.5137 GB, free: 14.02 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002): time 0.00397/0.1203, allocations: 2.602 MB / 0.5162 GB, free: 11.39 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008334/0.1212, allocations: 354.7 kB / 0.5166 GB, free: 11.05 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001461/0.1213, allocations: 15.88 kB / 0.5166 GB, free: 11.03 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 8.929e-05/0.1214, allocations: 39.58 kB / 0.5166 GB, free: 10.99 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003214/0.1217, allocations: 131 kB / 0.5167 GB, free: 10.86 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002453/0.122, allocations: 67.86 kB / 0.5168 GB, free: 10.8 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003887/0.1223, allocations: 366.2 kB / 0.5171 GB, free: 10.44 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002639/0.1226, allocations: 145.6 kB / 0.5173 GB, free: 10.3 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002379/0.1229, allocations: 163.4 kB / 0.5174 GB, free: 10.14 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001863/0.123, allocations: 127.4 kB / 0.5176 GB, free: 10.01 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.786e-05/0.1231, allocations: 20 kB / 0.5176 GB, free: 9.992 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000126/0.1232, allocations: 43.97 kB / 0.5176 GB, free: 9.949 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.371e-05/0.1233, allocations: 55.77 kB / 0.5177 GB, free: 9.895 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001357/0.1234, allocations: 139.3 kB / 0.5178 GB, free: 9.758 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003994/0.1238, allocations: 302.7 kB / 0.5181 GB, free: 9.461 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.1238, allocations: 4 kB / 0.5181 GB, free: 9.457 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1238, allocations: 0 / 0.5181 GB, free: 9.457 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.372e-05/0.1238, allocations: 0 / 0.5181 GB, free: 9.457 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.0009702/0.1248, allocations: 0.5762 MB / 0.5187 GB, free: 8.824 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.535e-05/0.1248, allocations: 8.625 kB / 0.5187 GB, free: 8.816 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.696e-05/0.1248, allocations: 4.562 kB / 0.5187 GB, free: 8.812 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.65e-05/0.1249, allocations: 62.67 kB / 0.5187 GB, free: 8.742 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.267e-05/0.125, allocations: 32.75 kB / 0.5188 GB, free: 8.711 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004282/0.1254, allocations: 298.8 kB / 0.5191 GB, free: 8.383 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.238e-05/0.1254, allocations: 12.75 kB / 0.5191 GB, free: 8.371 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.002e-05/0.1255, allocations: 20.38 kB / 0.5191 GB, free: 8.352 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003662/0.1258, allocations: 209.1 kB / 0.5193 GB, free: 8.129 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.811e-05/0.1258, allocations: 3.938 kB / 0.5193 GB, free: 8.125 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.553e-05/0.1259, allocations: 19.91 kB / 0.5193 GB, free: 8.105 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.189e-05/0.1259, allocations: 4 kB / 0.5193 GB, free: 8.102 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002535/0.1261, allocations: 116.9 kB / 0.5194 GB, free: 7.988 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001127/0.1273, allocations: 0.8342 MB / 0.5202 GB, free: 7.094 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002703/0.1275, allocations: 86.73 kB / 0.5203 GB, free: 7 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.597e-05/0.1276, allocations: 48.72 kB / 0.5204 GB, free: 6.949 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.32e-05/0.1277, allocations: 4 kB / 0.5204 GB, free: 6.945 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.841e-05/0.1277, allocations: 38.55 kB / 0.5204 GB, free: 6.898 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.483e-06/0.1277, allocations: 4 kB / 0.5204 GB, free: 6.895 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003602/0.128, allocations: 141.4 kB / 0.5205 GB, free: 6.75 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.559e-05/0.1281, allocations: 51.41 kB / 0.5206 GB, free: 6.688 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003239/0.1284, allocations: 296.6 kB / 0.5209 GB, free: 6.395 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.051e-05/0.1284, allocations: 25.7 kB / 0.5209 GB, free: 6.363 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001423/0.1286, allocations: 179.8 kB / 0.5211 GB, free: 6.184 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.288e-05/0.1286, allocations: 35.69 kB / 0.5211 GB, free: 6.148 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.558e-05/0.1287, allocations: 29.7 kB / 0.5211 GB, free: 6.113 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000189/0.1289, allocations: 338.8 kB / 0.5215 GB, free: 5.773 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.112e-05/0.129, allocations: 31.98 kB / 0.5215 GB, free: 5.742 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00011/0.1291, allocations: 64.73 kB / 0.5216 GB, free: 5.672 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001335/0.1304, allocations: 260.3 kB / 0.5218 GB, free: 5.406 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.1304, allocations: 0 / 0.5218 GB, free: 5.406 MB / 382.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003197/0.1307, allocations: 165.4 kB / 0.522 GB, free: 5.238 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.841e-05/0.1307, allocations: 8 kB / 0.522 GB, free: 5.23 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.182e-05/0.1308, allocations: 7.922 kB / 0.522 GB, free: 5.223 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.66e-05/0.1308, allocations: 0 / 0.522 GB, free: 5.223 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002282/0.131, allocations: 39.98 kB / 0.522 GB, free: 5.184 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.494e-06/0.131, allocations: 4 kB / 0.522 GB, free: 5.18 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001353/0.1311, allocations: 19.84 kB / 0.522 GB, free: 5.16 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.377e-05/0.1312, allocations: 4 kB / 0.522 GB, free: 5.156 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.0002346/0.1314, allocations: 138.6 kB / 0.5222 GB, free: 5.012 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.538e-05/0.1315, allocations: 31.8 kB / 0.5222 GB, free: 4.98 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003577/0.1318, allocations: 161.6 kB / 0.5224 GB, free: 4.816 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.765e-06/0.1318, allocations: 0 / 0.5224 GB, free: 4.816 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.1318, allocations: 0 / 0.5224 GB, free: 4.816 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.396e-06/0.1318, allocations: 4 kB / 0.5224 GB, free: 4.812 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003636/0.1322, allocations: 281.9 kB / 0.5226 GB, free: 4.488 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.1322, allocations: 0 / 0.5226 GB, free: 4.488 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002007/0.1324, allocations: 31.98 kB / 0.5227 GB, free: 4.457 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.494e-06/0.1324, allocations: 0 / 0.5227 GB, free: 4.457 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.496e-05/0.1324, allocations: 7.875 kB / 0.5227 GB, free: 4.449 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.263e-06/0.1324, allocations: 7.938 kB / 0.5227 GB, free: 4.441 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.1324, allocations: 0 / 0.5227 GB, free: 4.441 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004296/0.1328, allocations: 275.3 kB / 0.5229 GB, free: 4.156 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.319e-05/0.1329, allocations: 108.9 kB / 0.523 GB, free: 4.031 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.246e-05/0.133, allocations: 11.94 kB / 0.5231 GB, free: 4.02 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001277/0.1331, allocations: 0 / 0.5231 GB, free: 4.02 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.615e-05/0.1332, allocations: 7.984 kB / 0.5231 GB, free: 4.012 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.135e-05/0.1332, allocations: 8 kB / 0.5231 GB, free: 4.004 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00024/0.1334, allocations: 211.1 kB / 0.5233 GB, free: 3.801 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1334, allocations: 0 / 0.5233 GB, free: 3.801 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003129/0.1337, allocations: 55.89 kB / 0.5233 GB, free: 3.746 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.0007666/0.1345, allocations: 0.8244 MB / 0.5241 GB, free: 2.895 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002505/0.1347, allocations: 97.86 kB / 0.5242 GB, free: 2.801 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.1347, allocations: 0 / 0.5242 GB, free: 2.801 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 9.944e-05/0.1348, allocations: 47.92 kB / 0.5243 GB, free: 2.754 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003893/0.1352, allocations: 60.8 kB / 0.5243 GB, free: 2.695 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003571/0.1388, allocations: 2.501 MB / 0.5268 GB, free: 108 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004242/0.1392, allocations: 0.7518 MB / 0.5275 GB, free: 15.33 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001409/0.1394, allocations: 42.95 kB / 0.5275 GB, free: 15.29 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001414/0.1395, allocations: 83.41 kB / 0.5276 GB, free: 15.2 MB / 398.1 MB Notification: Performance of SimCode: time 8.12e-07/0.1395, allocations: 3.938 kB / 0.5276 GB, free: 15.2 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02389/0.1634, allocations: 5.548 MB / 0.533 GB, free: 9.809 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.578/8.741, allocations: 13.33 kB / 0.5331 GB, free: 9.801 MB / 398.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_002_fmu --startTime=0 --stopTime=1500 --stepSize=3 --timeout=50 --tolerance=1e-06 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.695776437001768] Failed to read output from testmodel.py, exit status != 0: 8.873416271002498 8.896079059 8.769130877 Calling exit ...