Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.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.001392/0.001392, allocations: 114.8 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.001478/0.001478, 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.498/1.498, allocations: 230.6 MB / 253.5 MB, free: 15.12 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.1034/0.1034, allocations: 22.92 MB / 332.5 MB, free: 2.641 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_003,fileNamePrefix="AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_003",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003,fileNamePrefix="AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_003",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.002211/0.002211, allocations: 63.33 kB / 466.7 MB, free: 32.2 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.104, allocations: 59.26 MB / 0.5137 GB, free: 14.03 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003): time 0.004523/0.1085, allocations: 3.219 MB / 0.5168 GB, free: 10.78 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001713/0.1103, allocations: 0.9469 MB / 0.5177 GB, free: 9.828 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000148/0.1104, allocations: 7.938 kB / 0.5178 GB, free: 9.82 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001995/0.1106, allocations: 67.34 kB / 0.5178 GB, free: 9.754 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003364/0.1109, allocations: 174.6 kB / 0.518 GB, free: 9.582 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004972/0.1114, allocations: 195.7 kB / 0.5182 GB, free: 9.391 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007671/0.1122, allocations: 0.7523 MB / 0.5189 GB, free: 8.637 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005222/0.1127, allocations: 377.8 kB / 0.5193 GB, free: 8.266 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000408/0.1131, allocations: 323.1 kB / 0.5196 GB, free: 7.949 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005075/0.1136, allocations: 398.7 kB / 0.52 GB, free: 7.559 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001062/0.1138, allocations: 76 kB / 0.52 GB, free: 7.484 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001224/0.1139, allocations: 76 kB / 0.5201 GB, free: 7.41 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002049/0.1141, allocations: 203.5 kB / 0.5203 GB, free: 7.211 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003288/0.1144, allocations: 342.5 kB / 0.5206 GB, free: 6.875 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008166/0.1152, allocations: 0.8017 MB / 0.5214 GB, free: 6.07 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.1152, allocations: 0 / 0.5214 GB, free: 6.07 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.203e-06/0.1152, allocations: 7.938 kB / 0.5214 GB, free: 6.062 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.303e-05/0.1152, allocations: 0 / 0.5214 GB, free: 6.062 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.002014/0.1173, allocations: 0.9193 MB / 0.5223 GB, free: 5.09 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.047e-05/0.1173, allocations: 8.625 kB / 0.5223 GB, free: 5.082 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.141e-05/0.1173, allocations: 13.19 kB / 0.5223 GB, free: 5.07 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001161/0.1174, allocations: 94.7 kB / 0.5224 GB, free: 4.969 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000142/0.1176, allocations: 68.56 kB / 0.5225 GB, free: 4.902 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000592/0.1182, allocations: 388.3 kB / 0.5229 GB, free: 4.484 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000161/0.1183, allocations: 109 kB / 0.523 GB, free: 4.363 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000115/0.1184, allocations: 60.12 kB / 0.523 GB, free: 4.305 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001673/0.1201, allocations: 0.6817 MB / 0.5237 GB, free: 3.621 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.592e-05/0.1201, allocations: 0 / 0.5237 GB, free: 3.621 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.499e-05/0.1202, allocations: 24 kB / 0.5237 GB, free: 3.598 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.477e-05/0.1202, allocations: 12 kB / 0.5237 GB, free: 3.586 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001579/0.1218, allocations: 0.605 MB / 0.5243 GB, free: 2.98 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005332/0.1271, allocations: 2.567 MB / 0.5268 GB, free: 352 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001333/0.1285, allocations: 0.5492 MB / 0.5273 GB, free: 15.79 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009641/0.1294, allocations: 393.9 kB / 0.5277 GB, free: 15.4 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.388e-05/0.1295, allocations: 13.11 kB / 0.5277 GB, free: 15.39 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.163e-05/0.1295, allocations: 43 kB / 0.5278 GB, free: 15.34 MB / 398.1 MB Notification: Performance of pre-optimization done (n=48): time 1.903e-06/0.1295, allocations: 0 / 0.5278 GB, free: 15.34 MB / 398.1 MB Notification: Performance of matching and sorting (n=54): time 0.006716/0.1362, allocations: 2.295 MB / 0.53 GB, free: 13 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.192e-05/0.1363, allocations: 55.84 kB / 0.5301 GB, free: 12.93 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004362/0.1367, allocations: 357.7 kB / 0.5304 GB, free: 12.57 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.542e-05/0.1368, allocations: 33.7 kB / 0.5304 GB, free: 12.54 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001937/0.137, allocations: 236.7 kB / 0.5307 GB, free: 12.3 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000202/0.1372, allocations: 202.3 kB / 0.5309 GB, free: 12.1 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002119/0.1374, allocations: 98.23 kB / 0.531 GB, free: 12 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001873/0.1376, allocations: 354.7 kB / 0.5313 GB, free: 11.64 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009825/0.1385, allocations: 383 kB / 0.5317 GB, free: 11.27 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009684/0.1395, allocations: 423.9 kB / 0.5321 GB, free: 10.83 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007396/0.1469, allocations: 2.1 MB / 0.5341 GB, free: 8.688 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-06/0.1469, allocations: 4 kB / 0.5341 GB, free: 8.684 MB / 398.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.002174/0.1491, allocations: 0.8539 MB / 0.535 GB, free: 7.82 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.286e-05/0.1491, allocations: 11.98 kB / 0.535 GB, free: 7.809 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.468e-06/0.1491, allocations: 4 kB / 0.535 GB, free: 7.805 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.346e-05/0.1491, allocations: 4 kB / 0.535 GB, free: 7.801 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006373/0.1555, allocations: 0.9129 MB / 0.5359 GB, free: 6.887 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.927e-05/0.1555, allocations: 7.984 kB / 0.5359 GB, free: 6.879 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006499/0.1562, allocations: 59.88 kB / 0.5359 GB, free: 6.82 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.943e-05/0.1563, allocations: 24.12 kB / 0.536 GB, free: 6.797 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: 7 * Number of states: 0 () * Number of discrete variables: 1 (H.ON) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 69 * 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.0004646/0.1567, allocations: 213.9 kB / 0.5362 GB, free: 6.582 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001187/0.1568, allocations: 47.72 kB / 0.5362 GB, free: 6.535 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002237/0.1591, allocations: 0.8436 MB / 0.537 GB, free: 5.688 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.582e-06/0.1591, allocations: 8 kB / 0.537 GB, free: 5.68 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.209e-06/0.1591, allocations: 4 kB / 0.537 GB, free: 5.676 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.344e-06/0.1591, allocations: 3.984 kB / 0.537 GB, free: 5.672 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003863/0.163, allocations: 1.815 MB / 0.5388 GB, free: 3.785 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.081e-06/0.163, allocations: 4 kB / 0.5388 GB, free: 3.781 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006471/0.1694, allocations: 0.8974 MB / 0.5397 GB, free: 2.883 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.258e-05/0.1695, allocations: 4 kB / 0.5397 GB, free: 2.879 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.881e-05/0.1695, allocations: 15.98 kB / 0.5397 GB, free: 2.863 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.225e-06/0.1696, allocations: 7.938 kB / 0.5397 GB, free: 2.855 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.726e-06/0.1696, allocations: 7.922 kB / 0.5397 GB, free: 2.848 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003128/0.1727, allocations: 1.292 MB / 0.541 GB, free: 1.527 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001486/0.1728, allocations: 120.8 kB / 0.5411 GB, free: 1.391 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.006e-05/0.1729, allocations: 16 kB / 0.5411 GB, free: 1.375 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005719/0.1735, allocations: 63.86 kB / 0.5412 GB, free: 1.312 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00019/0.1737, allocations: 76.36 kB / 0.5413 GB, free: 1.238 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.002e-05/0.1738, allocations: 23.92 kB / 0.5413 GB, free: 1.215 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003009/0.1741, allocations: 255.2 kB / 0.5415 GB, free: 0.9688 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1741, allocations: 0 / 0.5415 GB, free: 0.9688 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005361/0.1746, allocations: 148 kB / 0.5417 GB, free: 0.8242 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: 1 (H.ON) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 55 * 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.003445/0.178, allocations: 1.859 MB / 0.5435 GB, free: 14.93 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002028/0.1801, allocations: 0.7563 MB / 0.5442 GB, free: 14.18 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.1801, allocations: 0 / 0.5442 GB, free: 14.18 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001015/0.1811, allocations: 418.2 kB / 0.5446 GB, free: 13.77 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006493/0.1817, allocations: 116.4 kB / 0.5447 GB, free: 13.65 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01185/0.1936, allocations: 6.081 MB / 0.5507 GB, free: 7.438 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005665/0.1941, allocations: 0.8514 MB / 0.5515 GB, free: 6.559 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004412/0.1946, allocations: 96.33 kB / 0.5516 GB, free: 6.461 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004475/0.195, allocations: 191.4 kB / 0.5518 GB, free: 6.273 MB / 414.1 MB Notification: Performance of SimCode: time 1.173e-06/0.195, allocations: 0 / 0.5518 GB, free: 6.273 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03552/0.2306, allocations: 13.02 MB / 0.5645 GB, free: 9.453 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.671/9.901, allocations: 7.922 kB / 0.5645 GB, free: 9.445 MB / 430.1 MB " [Timeout remaining time 650] (rm -f AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe ; mkfifo AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe >> ../files/AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_003_fmu --startTime=0 --stopTime=20000 --stepSize=2 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_003.fmu > AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 12.886201721965335] Failed to read output from testmodel.py, exit status != 0: 10.033397856983356 10.049170448 9.930672611 Calling exit ...