Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.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.001237/0.001237, allocations: 102 kB / 16.45 MB, free: 6.445 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.00135/0.00135, allocations: 188.6 kB / 19.4 MB, free: 3.66 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.395/1.395, allocations: 225.6 MB / 247.8 MB, free: 3.75 MB / 190.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.09455/0.09455, allocations: 22.68 MB / 325.4 MB, free: 7.934 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_Transport.Stratified_storage_tank_case_001,fileNamePrefix="AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_001",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001,fileNamePrefix="AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_001",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001913/0.001913, allocations: 74.58 kB / 457.2 MB, free: 41.44 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0916/0.09351, allocations: 58.03 MB / 0.5031 GB, free: 8.375 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001): time 0.002971/0.09649, allocations: 3.191 MB / 0.5062 GB, free: 5.156 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001158/0.09764, allocations: 0.9119 MB / 0.5071 GB, free: 4.238 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001346/0.09778, allocations: 4 kB / 0.5071 GB, free: 4.234 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001841/0.09796, allocations: 71.34 kB / 0.5072 GB, free: 4.164 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002429/0.09821, allocations: 170.6 kB / 0.5073 GB, free: 3.996 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003929/0.0986, allocations: 195.6 kB / 0.5075 GB, free: 3.805 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004404/0.09904, allocations: 0.7484 MB / 0.5083 GB, free: 3.055 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003549/0.09939, allocations: 377.8 kB / 0.5086 GB, free: 2.68 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002121/0.09961, allocations: 311.1 kB / 0.5089 GB, free: 2.375 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003234/0.09993, allocations: 390.7 kB / 0.5093 GB, free: 1.992 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.038e-05/0.1, allocations: 80 kB / 0.5094 GB, free: 1.914 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.24e-05/0.1001, allocations: 80 kB / 0.5094 GB, free: 1.836 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001173/0.1002, allocations: 207.4 kB / 0.5096 GB, free: 1.633 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001936/0.1004, allocations: 338.6 kB / 0.51 GB, free: 1.301 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004731/0.1009, allocations: 0.7939 MB / 0.5107 GB, free: 0.5039 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.918e-06/0.1009, allocations: 4 kB / 0.5107 GB, free: 0.5 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1009, allocations: 0 / 0.5107 GB, free: 0.5 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.435e-05/0.1009, allocations: 0 / 0.5107 GB, free: 0.5 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 122 * Number of variables: 122 Notification: Performance of Generate backend data structure: time 0.001675/0.1026, allocations: 0.9115 MB / 0.5116 GB, free: 15.54 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.766e-05/0.1026, allocations: 12.03 kB / 0.5116 GB, free: 15.53 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001165/0.1027, allocations: 98.7 kB / 0.5117 GB, free: 15.42 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001187/0.1028, allocations: 72.5 kB / 0.5118 GB, free: 15.35 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005856/0.1034, allocations: 388.4 kB / 0.5122 GB, free: 14.94 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001411/0.1036, allocations: 105 kB / 0.5123 GB, free: 14.82 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001133/0.1037, allocations: 60.31 kB / 0.5123 GB, free: 14.77 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00152/0.1052, allocations: 0.6856 MB / 0.513 GB, free: 14.07 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.841e-05/0.1052, allocations: 3.938 kB / 0.513 GB, free: 14.07 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.966e-05/0.1053, allocations: 20 kB / 0.513 GB, free: 14.05 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.311e-05/0.1053, allocations: 15.94 kB / 0.513 GB, free: 14.04 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001455/0.1067, allocations: 0.605 MB / 0.5136 GB, free: 13.43 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005423/0.1122, allocations: 2.567 MB / 0.5161 GB, free: 10.79 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00116/0.1133, allocations: 0.5229 MB / 0.5167 GB, free: 10.26 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008526/0.1142, allocations: 395.2 kB / 0.517 GB, free: 9.871 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.352e-05/0.1142, allocations: 4.922 kB / 0.517 GB, free: 9.867 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.085e-05/0.1143, allocations: 42.92 kB / 0.5171 GB, free: 9.816 MB / 382.1 MB Notification: Performance of pre-optimization done (n=46): time 1.793e-06/0.1143, allocations: 0 / 0.5171 GB, free: 9.816 MB / 382.1 MB Notification: Performance of matching and sorting (n=52): time 0.005895/0.1202, allocations: 2.261 MB / 0.5193 GB, free: 7.512 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.557e-05/0.1202, allocations: 59.84 kB / 0.5193 GB, free: 7.441 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004282/0.1206, allocations: 365.6 kB / 0.5197 GB, free: 7.074 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.074e-05/0.1207, allocations: 33.7 kB / 0.5197 GB, free: 7.035 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001784/0.1209, allocations: 228.8 kB / 0.5199 GB, free: 6.809 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001815/0.1211, allocations: 206.3 kB / 0.5201 GB, free: 6.605 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001838/0.1212, allocations: 90.23 kB / 0.5202 GB, free: 6.512 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000171/0.1214, allocations: 358.7 kB / 0.5206 GB, free: 6.152 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008499/0.1223, allocations: 375 kB / 0.5209 GB, free: 5.781 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008652/0.1231, allocations: 424.8 kB / 0.5213 GB, free: 5.34 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006408/0.1295, allocations: 2.081 MB / 0.5234 GB, free: 3.215 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.554e-06/0.1295, allocations: 0 / 0.5234 GB, free: 3.215 MB / 382.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001901/0.1314, allocations: 0.8538 MB / 0.5242 GB, free: 2.352 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.69e-05/0.1314, allocations: 4 kB / 0.5242 GB, free: 2.348 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.676e-06/0.1315, allocations: 8.219 kB / 0.5242 GB, free: 2.34 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.85e-05/0.1315, allocations: 4 kB / 0.5242 GB, free: 2.336 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005246/0.1367, allocations: 0.8933 MB / 0.5251 GB, free: 1.441 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.358e-05/0.1367, allocations: 8 kB / 0.5251 GB, free: 1.434 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004897/0.1372, allocations: 55.92 kB / 0.5251 GB, free: 1.379 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.089e-05/0.1373, allocations: 23.98 kB / 0.5252 GB, free: 1.355 MB / 382.1 MB Warning: Assuming fixed start value for the following 5 variables: H.Ec:VARIABLE(flow=false fixed = true ) type: Real stank.lcold:VARIABLE(start = stank.lcoldstart unit = \"m\" fixed = true stateSelect=StateSelect.prefer ) \"cold height\" type: Real stank.Thot:VARIABLE(min = 0.0 start = stank.Thotstart unit = \"K\" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) type: Real stank.Tcold:VARIABLE(min = 0.0 start = stank.Tcoldstart unit = \"K\" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) type: Real H.Tfo:VARIABLE(min = 0.0 start = H.Tstart unit = \"K\" fixed = true nominal = 300.0 ) \"outlet fluid temp\" type: Real Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: $DER.tube.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 1 (Hon.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (68): * Single equations (assignments): 68 * 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.0003721/0.1377, allocations: 214.4 kB / 0.5254 GB, free: 1.141 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000103/0.1378, allocations: 43.86 kB / 0.5254 GB, free: 1.098 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001896/0.1397, allocations: 0.8327 MB / 0.5262 GB, free: 264 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.872e-06/0.1397, allocations: 8 kB / 0.5262 GB, free: 256 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/0.1397, allocations: 4 kB / 0.5262 GB, free: 252 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.56e-06/0.1397, allocations: 0 / 0.5262 GB, free: 252 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003538/0.1432, allocations: 1.812 MB / 0.528 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.587e-06/0.1432, allocations: 0 / 0.528 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005321/0.1485, allocations: 0.8857 MB / 0.5289 GB, free: 13.48 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.093e-05/0.1486, allocations: 4 kB / 0.5289 GB, free: 13.47 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.528e-05/0.1486, allocations: 15.98 kB / 0.5289 GB, free: 13.46 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.891e-06/0.1486, allocations: 7.938 kB / 0.5289 GB, free: 13.45 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/0.1486, allocations: 4 kB / 0.5289 GB, free: 13.45 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002681/0.1513, allocations: 1.269 MB / 0.5301 GB, free: 12.16 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000144/0.1515, allocations: 120.8 kB / 0.5303 GB, free: 12.02 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.787e-05/0.1515, allocations: 16 kB / 0.5303 GB, free: 12 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004824/0.152, allocations: 59.88 kB / 0.5303 GB, free: 11.95 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001783/0.1522, allocations: 76.31 kB / 0.5304 GB, free: 11.87 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.359e-05/0.1523, allocations: 16 kB / 0.5304 GB, free: 11.86 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002947/0.1525, allocations: 255.2 kB / 0.5307 GB, free: 11.61 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1525, allocations: 0 / 0.5307 GB, free: 11.61 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004858/0.153, allocations: 151.9 kB / 0.5308 GB, free: 11.46 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 10 (stank.lcold,stank.Thot,stank.Tcold,H.Tfo,H.Ec,tube.T[1],tube.T[2],tube.T[3],tube.T[4],tube.T[5]) * 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 (53): * Single equations (assignments): 53 * 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.00305/0.1561, allocations: 1.836 MB / 0.5326 GB, free: 9.586 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001807/0.1579, allocations: 0.7439 MB / 0.5333 GB, free: 8.836 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.1579, allocations: 4.062 kB / 0.5333 GB, free: 8.832 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008868/0.1588, allocations: 402.2 kB / 0.5337 GB, free: 8.441 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006034/0.1594, allocations: 109.9 kB / 0.5338 GB, free: 8.336 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01117/0.1706, allocations: 6.153 MB / 0.5398 GB, free: 2.039 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005242/0.1711, allocations: 0.8623 MB / 0.5407 GB, free: 1.148 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004323/0.1715, allocations: 92.33 kB / 0.5408 GB, free: 1.055 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003707/0.1719, allocations: 195.3 kB / 0.5409 GB, free: 0.8633 MB / 398.1 MB Notification: Performance of SimCode: time 8.22e-07/0.1719, allocations: 0 / 0.5409 GB, free: 0.8633 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04047/0.2123, allocations: 12.87 MB / 0.5535 GB, free: 4.164 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.743/8.956, allocations: 9.109 kB / 0.5535 GB, free: 4.156 MB / 414.1 MB " [Timeout remaining time 651] (rm -f AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.pipe ; mkfifo AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.pipe >> ../files/AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_001_fmu --startTime=0 --stopTime=10000 --stepSize=1 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_001.fmu > AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.766818029806018] Failed to read output from testmodel.py, exit status != 0: 9.03141458099708 9.056452425 8.951030366 Calling exit ...