Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_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.001359/0.001359, allocations: 114.5 kB / 18.94 MB, free: 2.934 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.001573/0.001573, allocations: 217 kB / 22.25 MB, free: 5.082 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.521/1.521, allocations: 230.6 MB / 256 MB, free: 8.02 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.1102/0.1102, allocations: 24.13 MB / 336.6 MB, free: 11.55 MB / 270.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_002,fileNamePrefix="AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_002",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002,fileNamePrefix="AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_002",fmuType="me",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.003174/0.003174, allocations: 73.47 kB / 473.3 MB, free: 6.422 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3588/0.362, allocations: 59.61 MB / 0.5204 GB, free: 10.11 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002): time 0.004969/0.3669, allocations: 4.228 MB / 0.5245 GB, free: 7.047 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00272/0.3696, allocations: 1.221 MB / 0.5257 GB, free: 6.16 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007516/0.3704, allocations: 10.66 kB / 0.5258 GB, free: 6.156 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004332/0.3708, allocations: 109 kB / 0.5259 GB, free: 6.094 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001031/0.3719, allocations: 277 kB / 0.5261 GB, free: 5.902 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001026/0.3729, allocations: 302.3 kB / 0.5264 GB, free: 5.734 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001561/0.3744, allocations: 1.193 MB / 0.5276 GB, free: 5.164 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007807/0.3752, allocations: 0.5638 MB / 0.5281 GB, free: 4.895 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007845/0.376, allocations: 497.3 kB / 0.5286 GB, free: 4.676 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007981/0.3768, allocations: 0.6133 MB / 0.5292 GB, free: 4.383 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001894/0.377, allocations: 120.2 kB / 0.5293 GB, free: 4.383 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000238/0.3772, allocations: 120.8 kB / 0.5294 GB, free: 4.383 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003057/0.3775, allocations: 323.3 kB / 0.5297 GB, free: 4.203 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005008/0.378, allocations: 0.5378 MB / 0.5303 GB, free: 3.875 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001585/0.3796, allocations: 1.251 MB / 0.5315 GB, free: 3.398 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.416e-06/0.3796, allocations: 1.703 kB / 0.5315 GB, free: 3.398 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.525e-06/0.3796, allocations: 0 / 0.5315 GB, free: 3.398 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.321e-05/0.3797, allocations: 4 kB / 0.5315 GB, free: 3.395 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: 199 * Number of variables: 199 Notification: Performance of Generate backend data structure: time 0.003214/0.3829, allocations: 1.205 MB / 0.5327 GB, free: 2.688 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.263e-05/0.3829, allocations: 10.08 kB / 0.5327 GB, free: 2.688 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001934/0.3831, allocations: 130.6 kB / 0.5328 GB, free: 2.598 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002287/0.3834, allocations: 103.1 kB / 0.5329 GB, free: 2.547 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009618/0.3843, allocations: 466.8 kB / 0.5333 GB, free: 2.23 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000195/0.3845, allocations: 157.8 kB / 0.5335 GB, free: 2.109 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002171/0.3847, allocations: 87.05 kB / 0.5336 GB, free: 2.078 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002453/0.3872, allocations: 1.013 MB / 0.5346 GB, free: 1.711 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.886e-05/0.3872, allocations: 0 / 0.5346 GB, free: 1.711 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.943e-05/0.3873, allocations: 35.19 kB / 0.5346 GB, free: 1.684 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.875e-05/0.3873, allocations: 19.12 kB / 0.5346 GB, free: 1.684 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002303/0.3896, allocations: 0.9032 MB / 0.5355 GB, free: 1.387 MB / 382.1 MB Notification: The following initial equation is redundant and consistent due to simplifications in RemoveSimpleEquations and therefore removed from the initialization problem: der(tube.w) = 0.0 -> 0.0 = 0.0 Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008095/0.3977, allocations: 3.471 MB / 0.5389 GB, free: 15.64 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002026/0.3998, allocations: 0.8744 MB / 0.5397 GB, free: 15.27 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001317/0.4011, allocations: 0.592 MB / 0.5403 GB, free: 14.98 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.224e-05/0.4011, allocations: 18.5 kB / 0.5403 GB, free: 14.98 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.494e-05/0.4012, allocations: 46.81 kB / 0.5404 GB, free: 14.92 MB / 398.1 MB Notification: Performance of pre-optimization done (n=79): time 2.194e-06/0.4012, allocations: 0 / 0.5404 GB, free: 14.92 MB / 398.1 MB Notification: Performance of matching and sorting (n=85): time 0.008134/0.4093, allocations: 3.091 MB / 0.5434 GB, free: 13.28 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.606e-05/0.4094, allocations: 64.86 kB / 0.5435 GB, free: 13.21 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006873/0.4101, allocations: 0.5042 MB / 0.544 GB, free: 12.91 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.349e-05/0.4102, allocations: 41.52 kB / 0.544 GB, free: 12.87 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002683/0.4104, allocations: 332.5 kB / 0.5443 GB, free: 12.57 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003188/0.4107, allocations: 317.6 kB / 0.5446 GB, free: 12.3 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003062/0.411, allocations: 164.2 kB / 0.5448 GB, free: 12.2 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.00021/0.4113, allocations: 383.4 kB / 0.5451 GB, free: 11.83 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001229/0.4125, allocations: 0.543 MB / 0.5457 GB, free: 11.54 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00133/0.4138, allocations: 0.6167 MB / 0.5463 GB, free: 11.16 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01064/0.4245, allocations: 3.067 MB / 0.5493 GB, free: 9.637 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.552e-06/0.4245, allocations: 1.125 kB / 0.5493 GB, free: 9.637 MB / 398.1 MB Notification: Performance of matching and sorting (n=114) (initialization): time 0.003138/0.4276, allocations: 1.288 MB / 0.5505 GB, free: 8.988 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.592e-05/0.4276, allocations: 10.03 kB / 0.5505 GB, free: 8.984 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.151e-05/0.4276, allocations: 2.188 kB / 0.5505 GB, free: 8.984 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.479e-05/0.4277, allocations: 6.156 kB / 0.5505 GB, free: 8.984 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006496/0.4342, allocations: 1.039 MB / 0.5516 GB, free: 8.633 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.888e-05/0.4342, allocations: 10.06 kB / 0.5516 GB, free: 8.629 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009659/0.4352, allocations: 74.72 kB / 0.5516 GB, free: 8.59 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.595e-05/0.4352, allocations: 32 kB / 0.5517 GB, free: 8.582 MB / 398.1 MB Warning: Assuming fixed start value for the following 7 variables: H.Ec:VARIABLE(flow=false fixed = true ) type: Real HnoTank.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 HnoTank.Tfo:VARIABLE(min = 0.0 start = HnoTank.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.tubeNoTank.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (114): * Single equations (assignments): 114 * 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.0005839/0.4358, allocations: 254.1 kB / 0.5519 GB, free: 8.375 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001704/0.436, allocations: 73.72 kB / 0.552 GB, free: 8.336 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002948/0.4389, allocations: 1.204 MB / 0.5532 GB, free: 7.648 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.298e-05/0.439, allocations: 9.844 kB / 0.5532 GB, free: 7.648 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.953e-06/0.439, allocations: 0 / 0.5532 GB, free: 7.648 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.161e-05/0.439, allocations: 7.984 kB / 0.5532 GB, free: 7.641 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005292/0.4443, allocations: 2.453 MB / 0.5556 GB, free: 6.031 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.911e-06/0.4443, allocations: 1.219 kB / 0.5556 GB, free: 6.031 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006462/0.4507, allocations: 1.013 MB / 0.5566 GB, free: 5.688 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.23e-05/0.4508, allocations: 8.75 kB / 0.5566 GB, free: 5.684 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001529/0.4509, allocations: 31.16 kB / 0.5566 GB, free: 5.664 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.217e-06/0.4509, allocations: 3.781 kB / 0.5566 GB, free: 5.664 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.54e-06/0.4509, allocations: 6.391 kB / 0.5566 GB, free: 5.66 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004062/0.455, allocations: 1.844 MB / 0.5584 GB, free: 4.078 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002796/0.4553, allocations: 79.44 kB / 0.5585 GB, free: 4 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000145/0.4554, allocations: 23.98 kB / 0.5585 GB, free: 3.977 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000757/0.4562, allocations: 71.92 kB / 0.5586 GB, free: 3.906 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002717/0.4564, allocations: 104.5 kB / 0.5587 GB, free: 3.801 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.08e-05/0.4565, allocations: 31.98 kB / 0.5587 GB, free: 3.77 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005086/0.457, allocations: 366.8 kB / 0.5591 GB, free: 3.414 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.457, allocations: 0 / 0.5591 GB, free: 3.414 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008188/0.4578, allocations: 236 kB / 0.5593 GB, free: 3.184 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 17 (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],tubeNoTank.T[1],tubeNoTank.T[2],tubeNoTank.T[3],tubeNoTank.T[4],tubeNoTank.T[5],HnoTank.Tfo,HnoTank.Ec) * 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 simulation (87): * Single equations (assignments): 87 * 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.004514/0.4624, allocations: 2.424 MB / 0.5616 GB, free: 0.7148 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002648/0.465, allocations: 1.095 MB / 0.5627 GB, free: 15.61 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.127e-06/0.465, allocations: 4.562 kB / 0.5627 GB, free: 15.61 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001434/0.4664, allocations: 0.5735 MB / 0.5633 GB, free: 15.04 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009438/0.4674, allocations: 166.6 kB / 0.5634 GB, free: 14.88 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0172/0.4846, allocations: 8.9 MB / 0.5721 GB, free: 5.781 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007065/0.4853, allocations: 0.97 MB / 0.5731 GB, free: 4.781 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0007349/0.486, allocations: 169.9 kB / 0.5732 GB, free: 4.613 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006323/0.4867, allocations: 303.3 kB / 0.5735 GB, free: 4.316 MB / 414.1 MB Notification: Performance of SimCode: time 1.011e-06/0.4867, allocations: 4 kB / 0.5735 GB, free: 4.312 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05839/0.5451, allocations: 20.1 MB / 0.5932 GB, free: 476 kB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.9/14.45, allocations: 5.797 kB / 0.5932 GB, free: 476 kB / 430.1 MB " [Timeout remaining time 645] (rm -f AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.pipe ; mkfifo AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.pipe >> ../files/AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_002_fmu --startTime=0 --stopTime=20000 --stepSize=2 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_002.fmu > AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 17.438914353959262] Failed to read output from testmodel.py, exit status != 0: 14.56932596117258 14.587832635 14.20426026 Calling exit ...