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.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.001739/0.001739, allocations: 106.5 kB / 16.45 MB, free: 6.449 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.001885/0.001885, allocations: 192.6 kB / 19.41 MB, free: 3.656 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.409/1.409, allocations: 225.6 MB / 247.8 MB, free: 3.727 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.09486/0.09486, allocations: 22.68 MB / 325.4 MB, free: 7.906 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_003,fileNamePrefix="AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_003",fmuType="me",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="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001861/0.001861, allocations: 63.34 kB / 457.1 MB, free: 41.33 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09405/0.09591, allocations: 58.03 MB / 0.5031 GB, free: 8.352 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003): time 0.003018/0.09893, allocations: 3.207 MB / 0.5062 GB, free: 5.117 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001132/0.1001, allocations: 0.9119 MB / 0.5071 GB, free: 4.199 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001316/0.1002, allocations: 4 kB / 0.5071 GB, free: 4.195 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001712/0.1004, allocations: 71.3 kB / 0.5072 GB, free: 4.125 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002532/0.1006, allocations: 178.7 kB / 0.5074 GB, free: 3.949 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004061/0.101, allocations: 199.6 kB / 0.5076 GB, free: 3.754 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004577/0.1015, allocations: 0.7522 MB / 0.5083 GB, free: 3 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003524/0.1018, allocations: 373.8 kB / 0.5086 GB, free: 2.629 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002081/0.102, allocations: 311.1 kB / 0.5089 GB, free: 2.324 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003239/0.1024, allocations: 406.6 kB / 0.5093 GB, free: 1.926 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.733e-05/0.1024, allocations: 79.94 kB / 0.5094 GB, free: 1.848 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.159e-05/0.1025, allocations: 76 kB / 0.5095 GB, free: 1.773 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001152/0.1026, allocations: 203.4 kB / 0.5097 GB, free: 1.574 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001824/0.1028, allocations: 338.5 kB / 0.51 GB, free: 1.242 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004581/0.1033, allocations: 0.8017 MB / 0.5108 GB, free: 448 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.1033, allocations: 0 / 0.5108 GB, free: 448 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.1033, allocations: 0 / 0.5108 GB, free: 448 kB / 366.1 MB Notification: Performance of Transformations before backend: time 7.634e-06/0.1033, allocations: 0 / 0.5108 GB, free: 448 kB / 366.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.001714/0.105, allocations: 0.9155 MB / 0.5117 GB, free: 15.47 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.495e-05/0.105, allocations: 12.03 kB / 0.5117 GB, free: 15.46 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001212/0.1052, allocations: 98.7 kB / 0.5118 GB, free: 15.35 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001179/0.1053, allocations: 64.56 kB / 0.5118 GB, free: 15.29 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005837/0.1059, allocations: 388.3 kB / 0.5122 GB, free: 14.88 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001334/0.106, allocations: 105 kB / 0.5123 GB, free: 14.77 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001008/0.1061, allocations: 52.33 kB / 0.5124 GB, free: 14.71 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001485/0.1076, allocations: 0.6934 MB / 0.513 GB, free: 14.02 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.75e-05/0.1076, allocations: 0 / 0.513 GB, free: 14.02 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.739e-05/0.1077, allocations: 20 kB / 0.5131 GB, free: 14 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.259e-05/0.1077, allocations: 12 kB / 0.5131 GB, free: 13.98 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001408/0.1091, allocations: 0.6128 MB / 0.5137 GB, free: 13.37 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004993/0.1141, allocations: 2.563 MB / 0.5162 GB, free: 10.74 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001165/0.1152, allocations: 0.546 MB / 0.5167 GB, free: 10.19 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008505/0.1161, allocations: 397.9 kB / 0.5171 GB, free: 9.797 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.379e-05/0.1161, allocations: 4.438 kB / 0.5171 GB, free: 9.793 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.307e-05/0.1162, allocations: 39 kB / 0.5171 GB, free: 9.746 MB / 382.1 MB Notification: Performance of pre-optimization done (n=48): time 1.774e-06/0.1162, allocations: 0 / 0.5171 GB, free: 9.746 MB / 382.1 MB Notification: Performance of matching and sorting (n=54): time 0.006005/0.1222, allocations: 2.297 MB / 0.5194 GB, free: 7.398 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.994e-05/0.1222, allocations: 59.83 kB / 0.5194 GB, free: 7.328 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004185/0.1226, allocations: 357.6 kB / 0.5198 GB, free: 6.969 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.653e-05/0.1227, allocations: 33.7 kB / 0.5198 GB, free: 6.93 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000175/0.1229, allocations: 236.7 kB / 0.52 GB, free: 6.695 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001819/0.1231, allocations: 202.2 kB / 0.5202 GB, free: 6.496 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001903/0.1232, allocations: 98.23 kB / 0.5203 GB, free: 6.395 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001731/0.1234, allocations: 362.8 kB / 0.5207 GB, free: 6.031 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008415/0.1243, allocations: 375 kB / 0.521 GB, free: 5.66 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008904/0.1251, allocations: 420 kB / 0.5214 GB, free: 5.227 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006573/0.1317, allocations: 2.107 MB / 0.5235 GB, free: 3.082 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.649e-06/0.1317, allocations: 4 kB / 0.5235 GB, free: 3.078 MB / 382.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001928/0.1337, allocations: 0.8656 MB / 0.5243 GB, free: 2.203 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.103e-05/0.1337, allocations: 8 kB / 0.5243 GB, free: 2.195 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.1337, allocations: 0 / 0.5243 GB, free: 2.195 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.019e-05/0.1337, allocations: 7.938 kB / 0.5243 GB, free: 2.188 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005525/0.1392, allocations: 0.913 MB / 0.5252 GB, free: 1.273 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.41e-05/0.1392, allocations: 7.938 kB / 0.5252 GB, free: 1.266 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005245/0.1398, allocations: 59.92 kB / 0.5253 GB, free: 1.207 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.977e-05/0.1398, allocations: 24 kB / 0.5253 GB, free: 1.184 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: 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.0003791/0.1402, allocations: 212.9 kB / 0.5255 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.698e-05/0.1403, allocations: 43.72 kB / 0.5256 GB, free: 0.9297 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001993/0.1423, allocations: 0.8397 MB / 0.5264 GB, free: 80 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.667e-06/0.1423, allocations: 8 kB / 0.5264 GB, free: 72 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.147e-06/0.1423, allocations: 0 / 0.5264 GB, free: 72 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.364e-06/0.1423, allocations: 3.984 kB / 0.5264 GB, free: 68 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003565/0.1459, allocations: 1.808 MB / 0.5282 GB, free: 14.19 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.098e-06/0.1459, allocations: 0 / 0.5282 GB, free: 14.19 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005685/0.1516, allocations: 0.9052 MB / 0.529 GB, free: 13.29 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.125e-05/0.1516, allocations: 4 kB / 0.529 GB, free: 13.28 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.268e-05/0.1516, allocations: 15.98 kB / 0.5291 GB, free: 13.27 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.719e-06/0.1516, allocations: 11.88 kB / 0.5291 GB, free: 13.25 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.1516, allocations: 4 kB / 0.5291 GB, free: 13.25 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002704/0.1543, allocations: 1.292 MB / 0.5303 GB, free: 11.94 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000137/0.1545, allocations: 120.8 kB / 0.5305 GB, free: 11.8 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.477e-05/0.1546, allocations: 15.98 kB / 0.5305 GB, free: 11.79 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000504/0.1551, allocations: 63.97 kB / 0.5305 GB, free: 11.72 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000165/0.1552, allocations: 76.27 kB / 0.5306 GB, free: 11.65 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.686e-05/0.1553, allocations: 23.98 kB / 0.5306 GB, free: 11.62 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002824/0.1556, allocations: 255.2 kB / 0.5309 GB, free: 11.38 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1556, allocations: 0 / 0.5309 GB, free: 11.38 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004858/0.1561, allocations: 148 kB / 0.531 GB, free: 11.23 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.003084/0.1591, allocations: 1.859 MB / 0.5328 GB, free: 9.336 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001817/0.161, allocations: 0.76 MB / 0.5336 GB, free: 8.574 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.161, allocations: 0 / 0.5336 GB, free: 8.574 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009171/0.1619, allocations: 414.8 kB / 0.534 GB, free: 8.172 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005754/0.1625, allocations: 112 kB / 0.5341 GB, free: 8.066 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01065/0.1731, allocations: 6.077 MB / 0.54 GB, free: 1.844 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005123/0.1736, allocations: 0.859 MB / 0.5408 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004306/0.174, allocations: 96.33 kB / 0.5409 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003762/0.1744, allocations: 195.3 kB / 0.5411 GB, free: 0.6641 MB / 398.1 MB Notification: Performance of SimCode: time 8.01e-07/0.1744, allocations: 4 kB / 0.5411 GB, free: 0.6602 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0382/0.2126, allocations: 12.97 MB / 0.5538 GB, free: 3.859 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.84/9.053, allocations: 10.11 kB / 0.5538 GB, free: 3.852 MB / 414.1 MB " [Timeout remaining time 651] (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: 11.886568517889827] Failed to read output from testmodel.py, exit status != 0: 9.128758552018553 9.154118132 9.046331108 Calling exit ...