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.001326/0.001326, allocations: 108.3 kB / 19.73 MB, free: 1.898 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.001494/0.001494, allocations: 212.6 kB / 23.01 MB, free: 4.992 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.444/1.444, allocations: 230.6 MB / 256.8 MB, free: 7.805 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.107/0.107, allocations: 24.04 MB / 337.2 MB, free: 11.34 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.002968/0.002968, allocations: 67.89 kB / 473.8 MB, free: 6.398 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3417/0.3446, allocations: 59.58 MB / 0.5209 GB, free: 10.09 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002): time 0.004287/0.3489, allocations: 3.749 MB / 0.5246 GB, free: 7.539 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002161/0.3511, allocations: 1.171 MB / 0.5257 GB, free: 6.707 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002719/0.3513, allocations: 17.5 kB / 0.5257 GB, free: 6.695 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002518/0.3516, allocations: 108.1 kB / 0.5258 GB, free: 6.633 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004558/0.3521, allocations: 269.9 kB / 0.5261 GB, free: 6.449 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007053/0.3528, allocations: 309.2 kB / 0.5264 GB, free: 6.277 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009925/0.3538, allocations: 1.19 MB / 0.5275 GB, free: 5.707 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006599/0.3544, allocations: 0.5522 MB / 0.5281 GB, free: 5.449 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005308/0.3549, allocations: 495.5 kB / 0.5286 GB, free: 5.23 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006792/0.3556, allocations: 0.5438 MB / 0.5291 GB, free: 5.008 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002026/0.3558, allocations: 118.9 kB / 0.5292 GB, free: 5.008 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002166/0.356, allocations: 121.1 kB / 0.5293 GB, free: 5.008 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000273/0.3563, allocations: 328.2 kB / 0.5296 GB, free: 4.824 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004602/0.3568, allocations: 463.8 kB / 0.5301 GB, free: 4.582 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001327/0.3581, allocations: 1.268 MB / 0.5313 GB, free: 4.098 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.3581, allocations: 3.938 kB / 0.5313 GB, free: 4.094 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.3581, allocations: 0 / 0.5313 GB, free: 4.094 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.976e-05/0.3581, allocations: 1.125 kB / 0.5313 GB, free: 4.094 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.002721/0.3608, allocations: 1.201 MB / 0.5325 GB, free: 3.391 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.132e-05/0.3609, allocations: 10.2 kB / 0.5325 GB, free: 3.391 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000156/0.361, allocations: 133.7 kB / 0.5326 GB, free: 3.297 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001885/0.3612, allocations: 104 kB / 0.5327 GB, free: 3.246 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008648/0.3621, allocations: 462.6 kB / 0.5332 GB, free: 2.93 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001681/0.3623, allocations: 161.7 kB / 0.5333 GB, free: 2.805 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001663/0.3624, allocations: 92.05 kB / 0.5334 GB, free: 2.77 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00245/0.3649, allocations: 1.084 MB / 0.5345 GB, free: 2.312 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.747e-05/0.3649, allocations: 3.938 kB / 0.5345 GB, free: 2.309 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.022e-05/0.365, allocations: 34.75 kB / 0.5345 GB, free: 2.281 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.24e-05/0.365, allocations: 19.62 kB / 0.5345 GB, free: 2.281 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002187/0.3672, allocations: 0.8951 MB / 0.5354 GB, free: 1.988 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.007709/0.3749, allocations: 3.224 MB / 0.5385 GB, free: 312 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001949/0.3769, allocations: 0.8686 MB / 0.5394 GB, free: 15.96 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001425/0.3783, allocations: 0.5992 MB / 0.54 GB, free: 15.75 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.542e-05/0.3784, allocations: 8.594 kB / 0.54 GB, free: 15.75 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.222e-05/0.3784, allocations: 48.16 kB / 0.54 GB, free: 15.69 MB / 398.1 MB Notification: Performance of pre-optimization done (n=79): time 2.875e-06/0.3784, allocations: 0 / 0.54 GB, free: 15.69 MB / 398.1 MB Notification: Performance of matching and sorting (n=85): time 0.008505/0.3869, allocations: 3.095 MB / 0.5431 GB, free: 14.11 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.919e-05/0.387, allocations: 60.31 kB / 0.5431 GB, free: 14.04 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006877/0.3877, allocations: 0.5122 MB / 0.5436 GB, free: 13.73 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.454e-05/0.3877, allocations: 41.83 kB / 0.5437 GB, free: 13.69 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002583/0.388, allocations: 329.1 kB / 0.544 GB, free: 13.4 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003077/0.3883, allocations: 321.3 kB / 0.5443 GB, free: 13.12 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003076/0.3886, allocations: 156.7 kB / 0.5444 GB, free: 13.03 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002068/0.3888, allocations: 384.2 kB / 0.5448 GB, free: 12.66 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001242/0.3901, allocations: 0.5379 MB / 0.5453 GB, free: 12.37 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001302/0.3914, allocations: 0.6196 MB / 0.5459 GB, free: 12 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01079/0.4022, allocations: 3.057 MB / 0.5489 GB, free: 10.48 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.983e-06/0.4022, allocations: 0.9375 kB / 0.5489 GB, free: 10.48 MB / 398.1 MB Notification: Performance of matching and sorting (n=114) (initialization): time 0.00308/0.4052, allocations: 1.291 MB / 0.5502 GB, free: 9.836 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.231e-05/0.4053, allocations: 8.312 kB / 0.5502 GB, free: 9.836 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.029e-05/0.4053, allocations: 2.469 kB / 0.5502 GB, free: 9.836 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.145e-05/0.4053, allocations: 6.812 kB / 0.5502 GB, free: 9.836 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006928/0.4122, allocations: 1.031 MB / 0.5512 GB, free: 9.492 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.034e-05/0.4123, allocations: 9.719 kB / 0.5512 GB, free: 9.488 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001053/0.4133, allocations: 80.28 kB / 0.5513 GB, free: 9.445 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.229e-05/0.4134, allocations: 34.61 kB / 0.5513 GB, free: 9.434 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.0006145/0.414, allocations: 257.5 kB / 0.5516 GB, free: 9.227 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001618/0.4142, allocations: 70.17 kB / 0.5516 GB, free: 9.191 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003141/0.4173, allocations: 1.212 MB / 0.5528 GB, free: 8.492 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.479e-05/0.4173, allocations: 17.42 kB / 0.5528 GB, free: 8.484 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.703e-06/0.4173, allocations: 0 / 0.5528 GB, free: 8.484 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.096e-05/0.4173, allocations: 3.984 kB / 0.5528 GB, free: 8.48 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005406/0.4228, allocations: 2.283 MB / 0.5551 GB, free: 7.039 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.184e-06/0.4228, allocations: 1.469 kB / 0.5551 GB, free: 7.039 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006889/0.4296, allocations: 1.009 MB / 0.556 GB, free: 6.699 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-05/0.4297, allocations: 12.12 kB / 0.5561 GB, free: 6.691 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001549/0.4298, allocations: 26.77 kB / 0.5561 GB, free: 6.676 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.166e-05/0.4298, allocations: 9.969 kB / 0.5561 GB, free: 6.672 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.923e-06/0.4298, allocations: 5.422 kB / 0.5561 GB, free: 6.668 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004486/0.4343, allocations: 1.834 MB / 0.5579 GB, free: 5.012 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003087/0.4346, allocations: 79.44 kB / 0.558 GB, free: 4.934 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000148/0.4348, allocations: 24 kB / 0.558 GB, free: 4.91 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007845/0.4356, allocations: 71.91 kB / 0.5581 GB, free: 4.84 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003569/0.4359, allocations: 108.5 kB / 0.5582 GB, free: 4.73 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.117e-05/0.436, allocations: 31.98 kB / 0.5582 GB, free: 4.699 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005294/0.4365, allocations: 366.8 kB / 0.5585 GB, free: 4.344 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4365, allocations: 0 / 0.5585 GB, free: 4.344 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000772/0.4373, allocations: 232 kB / 0.5588 GB, free: 4.117 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.00459/0.4419, allocations: 2.417 MB / 0.5611 GB, free: 1.656 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002988/0.4449, allocations: 1.099 MB / 0.5622 GB, free: 0.5547 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.412e-06/0.4449, allocations: 0 / 0.5622 GB, free: 0.5547 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001427/0.4463, allocations: 0.5706 MB / 0.5628 GB, free: 15.98 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001133/0.4475, allocations: 166.1 kB / 0.5629 GB, free: 15.82 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01836/0.4658, allocations: 8.9 MB / 0.5716 GB, free: 6.727 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004894/0.4663, allocations: 372.8 kB / 0.572 GB, free: 6.332 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0007775/0.4671, allocations: 170 kB / 0.5721 GB, free: 6.164 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006339/0.4677, allocations: 311.3 kB / 0.5724 GB, free: 5.859 MB / 414.1 MB Notification: Performance of SimCode: time 9.02e-07/0.4677, allocations: 0 / 0.5724 GB, free: 5.859 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05529/0.523, allocations: 21.11 MB / 0.593 GB, free: 1.07 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.98/12.5, allocations: 6.547 kB / 0.593 GB, free: 1.07 MB / 430.1 MB " [Timeout remaining time 647] (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: 15.52017519203946] Failed to read output from testmodel.py, exit status != 0: 12.62636207183823 12.643336449 12.28176163 Calling exit ...