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.00153/0.00153, allocations: 113.5 kB / 19.73 MB, free: 2.242 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.001492/0.001492, allocations: 213.5 kB / 23.04 MB, free: 5.078 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.443/1.443, allocations: 230.6 MB / 256.8 MB, free: 7.988 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.1328/0.1328, allocations: 22.94 MB / 336.2 MB, free: 12.62 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_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.002072/0.002072, allocations: 72.52 kB / 472.3 MB, free: 8.023 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3494/0.3514, allocations: 59.28 MB / 0.5191 GB, free: 10.66 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003): time 0.004343/0.3558, allocations: 3.231 MB / 0.5223 GB, free: 8.441 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002223/0.358, allocations: 0.9532 MB / 0.5232 GB, free: 7.758 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003974/0.3584, allocations: 8.25 kB / 0.5232 GB, free: 7.754 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002713/0.3587, allocations: 73.69 kB / 0.5233 GB, free: 7.707 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005071/0.3592, allocations: 173.1 kB / 0.5234 GB, free: 7.59 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007389/0.3599, allocations: 197.2 kB / 0.5236 GB, free: 7.48 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009375/0.3609, allocations: 0.7529 MB / 0.5244 GB, free: 7.113 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000661/0.3615, allocations: 360.3 kB / 0.5247 GB, free: 6.953 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006379/0.3622, allocations: 321.4 kB / 0.525 GB, free: 6.809 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005966/0.3627, allocations: 403.6 kB / 0.5254 GB, free: 6.621 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001402/0.3629, allocations: 75.31 kB / 0.5255 GB, free: 6.621 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001782/0.3631, allocations: 77.81 kB / 0.5255 GB, free: 6.621 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001818/0.3633, allocations: 205.6 kB / 0.5257 GB, free: 6.504 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003417/0.3636, allocations: 337.8 kB / 0.5261 GB, free: 6.305 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009759/0.3646, allocations: 0.8029 MB / 0.5268 GB, free: 5.996 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.542e-06/0.3646, allocations: 1.031 kB / 0.5268 GB, free: 5.996 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.3646, allocations: 4 kB / 0.5268 GB, free: 5.992 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.756e-05/0.3646, allocations: 0 / 0.5268 GB, free: 5.992 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.002476/0.3671, allocations: 0.8431 MB / 0.5277 GB, free: 5.453 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.852e-05/0.3671, allocations: 10.3 kB / 0.5277 GB, free: 5.453 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.626e-05/0.3672, allocations: 13.3 kB / 0.5277 GB, free: 5.449 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001266/0.3673, allocations: 92.33 kB / 0.5278 GB, free: 5.379 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000178/0.3675, allocations: 65.28 kB / 0.5278 GB, free: 5.348 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006601/0.3681, allocations: 327.4 kB / 0.5282 GB, free: 5.105 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001622/0.3683, allocations: 110.8 kB / 0.5283 GB, free: 5.023 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001335/0.3684, allocations: 56.75 kB / 0.5283 GB, free: 5 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001885/0.3703, allocations: 0.6838 MB / 0.529 GB, free: 4.762 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.512e-05/0.3703, allocations: 0 / 0.529 GB, free: 4.762 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.034e-05/0.3704, allocations: 24.38 kB / 0.529 GB, free: 4.742 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.086e-05/0.3704, allocations: 11.97 kB / 0.529 GB, free: 4.742 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001662/0.3721, allocations: 0.6017 MB / 0.5296 GB, free: 4.555 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005791/0.3779, allocations: 2.537 MB / 0.5321 GB, free: 3.184 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001324/0.3792, allocations: 0.5429 MB / 0.5326 GB, free: 2.965 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001117/0.3803, allocations: 397.5 kB / 0.533 GB, free: 2.82 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.6e-05/0.3804, allocations: 5.594 kB / 0.533 GB, free: 2.82 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.416e-05/0.3804, allocations: 41.98 kB / 0.533 GB, free: 2.773 MB / 382.1 MB Notification: Performance of pre-optimization done (n=48): time 3.025e-06/0.3804, allocations: 0.5 kB / 0.533 GB, free: 2.773 MB / 382.1 MB Notification: Performance of matching and sorting (n=54): time 0.007069/0.3875, allocations: 2.224 MB / 0.5352 GB, free: 1.898 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.654e-05/0.3875, allocations: 58.86 kB / 0.5353 GB, free: 1.836 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004056/0.3879, allocations: 354.2 kB / 0.5356 GB, free: 1.648 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.205e-05/0.388, allocations: 34.77 kB / 0.5356 GB, free: 1.609 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001235/0.3881, allocations: 238.4 kB / 0.5359 GB, free: 1.414 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001518/0.3883, allocations: 201.9 kB / 0.5361 GB, free: 1.254 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002016/0.3885, allocations: 94.27 kB / 0.5361 GB, free: 1.203 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.878e-05/0.3885, allocations: 364.5 kB / 0.5365 GB, free: 0.8633 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009282/0.3895, allocations: 381.6 kB / 0.5369 GB, free: 0.7305 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009333/0.3904, allocations: 426 kB / 0.5373 GB, free: 0.5469 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007237/0.3976, allocations: 2.019 MB / 0.5392 GB, free: 15.99 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.603e-06/0.3976, allocations: 1.094 kB / 0.5392 GB, free: 15.99 MB / 398.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.002371/0.4, allocations: 0.8655 MB / 0.5401 GB, free: 15.65 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.501e-05/0.4, allocations: 5.875 kB / 0.5401 GB, free: 15.65 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.005e-05/0.4001, allocations: 1.125 kB / 0.5401 GB, free: 15.65 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.247e-05/0.4001, allocations: 4.469 kB / 0.5401 GB, free: 15.65 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006388/0.4065, allocations: 0.9139 MB / 0.541 GB, free: 15.33 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.035e-05/0.4065, allocations: 3.594 kB / 0.541 GB, free: 15.33 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007495/0.4072, allocations: 62.09 kB / 0.541 GB, free: 15.3 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.795e-05/0.4073, allocations: 22.45 kB / 0.5411 GB, free: 15.29 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.0004767/0.4078, allocations: 205.3 kB / 0.5413 GB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001274/0.4079, allocations: 45.89 kB / 0.5413 GB, free: 15.09 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002266/0.4102, allocations: 0.8446 MB / 0.5421 GB, free: 14.61 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.193e-06/0.4102, allocations: 5.5 kB / 0.5421 GB, free: 14.61 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.501e-06/0.4102, allocations: 4 kB / 0.5421 GB, free: 14.61 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.996e-05/0.4102, allocations: 5.359 kB / 0.5421 GB, free: 14.61 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004173/0.4144, allocations: 1.779 MB / 0.5439 GB, free: 13.38 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.564e-06/0.4144, allocations: 1.344 kB / 0.5439 GB, free: 13.38 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006623/0.421, allocations: 0.8979 MB / 0.5448 GB, free: 13.07 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.802e-05/0.421, allocations: 3.719 kB / 0.5448 GB, free: 13.07 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001758/0.4212, allocations: 22.33 kB / 0.5448 GB, free: 13.05 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.807e-06/0.4212, allocations: 6.688 kB / 0.5448 GB, free: 13.05 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.711e-06/0.4212, allocations: 5.359 kB / 0.5448 GB, free: 13.04 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003316/0.4245, allocations: 1.291 MB / 0.5461 GB, free: 12.31 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002401/0.4248, allocations: 44.12 kB / 0.5461 GB, free: 12.28 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001298/0.4249, allocations: 16.44 kB / 0.5461 GB, free: 12.27 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006053/0.4255, allocations: 64.77 kB / 0.5462 GB, free: 12.23 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001975/0.4257, allocations: 80.34 kB / 0.5463 GB, free: 12.18 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.902e-05/0.4258, allocations: 23.23 kB / 0.5463 GB, free: 12.16 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003349/0.4261, allocations: 256.5 kB / 0.5465 GB, free: 12 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4261, allocations: 0 / 0.5465 GB, free: 12 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006392/0.4267, allocations: 146.7 kB / 0.5467 GB, free: 11.99 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.003578/0.4303, allocations: 1.866 MB / 0.5485 GB, free: 10.7 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002171/0.4325, allocations: 0.7576 MB / 0.5492 GB, free: 10.34 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.339e-06/0.4325, allocations: 0 / 0.5492 GB, free: 10.34 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001052/0.4336, allocations: 413.3 kB / 0.5496 GB, free: 10.15 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007854/0.4343, allocations: 120.7 kB / 0.5497 GB, free: 10.08 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0128/0.4471, allocations: 6.079 MB / 0.5557 GB, free: 6.164 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005798/0.4477, allocations: 0.8521 MB / 0.5565 GB, free: 5.395 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004941/0.4482, allocations: 99.33 kB / 0.5566 GB, free: 5.348 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000455/0.4487, allocations: 189.7 kB / 0.5568 GB, free: 5.195 MB / 398.1 MB Notification: Performance of SimCode: time 1.303e-06/0.4487, allocations: 192 / 0.5568 GB, free: 5.195 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04045/0.4891, allocations: 13.52 MB / 0.57 GB, free: 8.879 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.61/13.1, allocations: 11.48 kB / 0.57 GB, free: 8.871 MB / 414.1 MB " [Timeout remaining time 647] (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: 16.148598227999173] Failed to read output from testmodel.py, exit status != 0: 13.273931204981636 13.29143756 12.923346566 Calling exit ...