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.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.001369/0.001369, allocations: 113.9 kB / 17.16 MB, free: 5.895 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.001425/0.001425, allocations: 210.2 kB / 20.13 MB, free: 2.949 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.48/1.48, allocations: 230.6 MB / 253.5 MB, free: 15.11 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.1014/0.1014, allocations: 22.93 MB / 332.5 MB, free: 2.746 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_Transport.Stratified_storage_tank_case_001,fileNamePrefix="AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_001",fmuType="cs",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="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.00194/0.00194, allocations: 64.28 kB / 466.7 MB, free: 32.18 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09982/0.1018, allocations: 59.27 MB / 0.5137 GB, free: 14.05 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001): time 0.005365/0.1071, allocations: 3.204 MB / 0.5168 GB, free: 10.81 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00206/0.1092, allocations: 0.943 MB / 0.5177 GB, free: 9.863 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002393/0.1094, allocations: 4 kB / 0.5177 GB, free: 9.859 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002528/0.1097, allocations: 71.3 kB / 0.5178 GB, free: 9.789 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004017/0.1101, allocations: 174.7 kB / 0.518 GB, free: 9.617 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006095/0.1107, allocations: 195.7 kB / 0.5181 GB, free: 9.426 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009181/0.1116, allocations: 0.7445 MB / 0.5189 GB, free: 8.68 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006469/0.1123, allocations: 377.8 kB / 0.5192 GB, free: 8.309 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005738/0.1128, allocations: 319.1 kB / 0.5195 GB, free: 7.996 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005952/0.1134, allocations: 394.7 kB / 0.5199 GB, free: 7.609 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001492/0.1136, allocations: 76 kB / 0.52 GB, free: 7.535 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001289/0.1137, allocations: 76 kB / 0.5201 GB, free: 7.461 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002443/0.1139, allocations: 207.4 kB / 0.5203 GB, free: 7.258 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003941/0.1143, allocations: 338.5 kB / 0.5206 GB, free: 6.926 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009266/0.1153, allocations: 0.7978 MB / 0.5214 GB, free: 6.125 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.058e-05/0.1153, allocations: 4 kB / 0.5214 GB, free: 6.121 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1153, allocations: 0 / 0.5214 GB, free: 6.121 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.048e-05/0.1153, allocations: 0 / 0.5214 GB, free: 6.121 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: 122 * Number of variables: 122 Notification: Performance of Generate backend data structure: time 0.002155/0.1174, allocations: 0.9193 MB / 0.5223 GB, free: 5.148 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.375e-05/0.1175, allocations: 12.56 kB / 0.5223 GB, free: 5.137 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.298e-05/0.1175, allocations: 13.19 kB / 0.5223 GB, free: 5.125 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001232/0.1176, allocations: 90.7 kB / 0.5224 GB, free: 5.027 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001414/0.1178, allocations: 64.56 kB / 0.5224 GB, free: 4.965 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007176/0.1185, allocations: 396.4 kB / 0.5228 GB, free: 4.539 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001607/0.1187, allocations: 112.9 kB / 0.5229 GB, free: 4.414 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001249/0.1188, allocations: 52.12 kB / 0.523 GB, free: 4.363 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001662/0.1204, allocations: 0.6856 MB / 0.5236 GB, free: 3.676 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.707e-05/0.1205, allocations: 0 / 0.5236 GB, free: 3.676 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.435e-05/0.1205, allocations: 20 kB / 0.5237 GB, free: 3.656 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.363e-05/0.1205, allocations: 12 kB / 0.5237 GB, free: 3.645 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001534/0.1221, allocations: 0.5972 MB / 0.5243 GB, free: 3.047 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005676/0.1277, allocations: 2.591 MB / 0.5268 GB, free: 392 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001277/0.129, allocations: 0.5248 MB / 0.5273 GB, free: 15.85 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009823/0.13, allocations: 396 kB / 0.5277 GB, free: 15.46 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.416e-05/0.1301, allocations: 8.438 kB / 0.5277 GB, free: 15.46 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.41e-05/0.1301, allocations: 46.91 kB / 0.5277 GB, free: 15.4 MB / 398.1 MB Notification: Performance of pre-optimization done (n=46): time 1.894e-06/0.1301, allocations: 0 / 0.5277 GB, free: 15.4 MB / 398.1 MB Notification: Performance of matching and sorting (n=52): time 0.006709/0.1368, allocations: 2.256 MB / 0.5299 GB, free: 13.1 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.542e-05/0.1369, allocations: 55.84 kB / 0.53 GB, free: 13.04 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000463/0.1373, allocations: 361.7 kB / 0.5303 GB, free: 12.68 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.933e-05/0.1374, allocations: 41.64 kB / 0.5304 GB, free: 12.63 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000184/0.1376, allocations: 232.7 kB / 0.5306 GB, free: 12.4 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001975/0.1378, allocations: 194.7 kB / 0.5308 GB, free: 12.21 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002491/0.138, allocations: 102.2 kB / 0.5309 GB, free: 12.1 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001897/0.1382, allocations: 358.7 kB / 0.5312 GB, free: 11.74 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009498/0.1392, allocations: 371 kB / 0.5316 GB, free: 11.38 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009695/0.1401, allocations: 424.8 kB / 0.532 GB, free: 10.93 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007606/0.1477, allocations: 2.081 MB / 0.534 GB, free: 8.805 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.7e-06/0.1477, allocations: 4 kB / 0.534 GB, free: 8.801 MB / 398.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.002193/0.1499, allocations: 0.8538 MB / 0.5348 GB, free: 7.938 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.023e-05/0.15, allocations: 4 kB / 0.5348 GB, free: 7.934 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.219e-05/0.15, allocations: 8.203 kB / 0.5349 GB, free: 7.926 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.068e-05/0.15, allocations: 8 kB / 0.5349 GB, free: 7.918 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006328/0.1563, allocations: 0.901 MB / 0.5357 GB, free: 7.016 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.741e-05/0.1563, allocations: 4 kB / 0.5357 GB, free: 7.012 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005883/0.1569, allocations: 59.94 kB / 0.5358 GB, free: 6.953 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.815e-05/0.157, allocations: 19.98 kB / 0.5358 GB, free: 6.934 MB / 398.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.0004432/0.1574, allocations: 210.8 kB / 0.536 GB, free: 6.723 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001147/0.1575, allocations: 47.72 kB / 0.5361 GB, free: 6.676 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002251/0.1598, allocations: 0.8249 MB / 0.5369 GB, free: 5.844 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.455e-06/0.1598, allocations: 12 kB / 0.5369 GB, free: 5.832 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-06/0.1598, allocations: 0 / 0.5369 GB, free: 5.832 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.236e-06/0.1598, allocations: 3.984 kB / 0.5369 GB, free: 5.828 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003911/0.1637, allocations: 1.792 MB / 0.5386 GB, free: 3.973 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.989e-06/0.1637, allocations: 0 / 0.5386 GB, free: 3.973 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006304/0.17, allocations: 0.8817 MB / 0.5395 GB, free: 3.09 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.496e-06/0.17, allocations: 15.88 kB / 0.5395 GB, free: 3.074 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.118e-05/0.1701, allocations: 27.86 kB / 0.5395 GB, free: 3.047 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.258e-06/0.1701, allocations: 0 / 0.5395 GB, free: 3.047 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.1701, allocations: 4 kB / 0.5395 GB, free: 3.043 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003035/0.1732, allocations: 1.273 MB / 0.5408 GB, free: 1.742 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001471/0.1733, allocations: 120.8 kB / 0.5409 GB, free: 1.605 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.218e-05/0.1734, allocations: 19.92 kB / 0.5409 GB, free: 1.586 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005655/0.174, allocations: 55.94 kB / 0.541 GB, free: 1.531 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001818/0.1742, allocations: 68.33 kB / 0.541 GB, free: 1.465 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.013e-05/0.1742, allocations: 19.98 kB / 0.5411 GB, free: 1.445 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003215/0.1745, allocations: 255.2 kB / 0.5413 GB, free: 1.199 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1745, allocations: 4 kB / 0.5413 GB, free: 1.195 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005284/0.1751, allocations: 144 kB / 0.5414 GB, free: 1.055 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.003375/0.1784, allocations: 1.84 MB / 0.5432 GB, free: 15.18 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001982/0.1804, allocations: 0.7435 MB / 0.544 GB, free: 14.43 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.1804, allocations: 448 / 0.544 GB, free: 14.43 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001004/0.1814, allocations: 414.2 kB / 0.5444 GB, free: 14.03 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006582/0.1821, allocations: 101.9 kB / 0.5445 GB, free: 13.93 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01233/0.1944, allocations: 6.161 MB / 0.5505 GB, free: 7.625 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005758/0.195, allocations: 0.8586 MB / 0.5513 GB, free: 6.742 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004251/0.1954, allocations: 92.34 kB / 0.5514 GB, free: 6.648 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004257/0.1958, allocations: 187.4 kB / 0.5516 GB, free: 6.465 MB / 414.1 MB Notification: Performance of SimCode: time 5.51e-07/0.1958, allocations: 0 / 0.5516 GB, free: 6.465 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05631/0.2521, allocations: 12.92 MB / 0.5642 GB, free: 9.746 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.384/9.636, allocations: 13.33 kB / 0.5642 GB, free: 9.734 MB / 430.1 MB " [Timeout remaining time 650] (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: 12.652544629992917] Failed to read output from testmodel.py, exit status != 0: 9.7739635190228 9.799537528 9.679435772 Calling exit ...