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.001452/0.001452, allocations: 104.4 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.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.001511/0.001511, allocations: 210.4 kB / 19.43 MB, free: 3.637 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.525/1.525, allocations: 230.6 MB / 252.8 MB, free: 9.113 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.1138/0.1138, allocations: 24.12 MB / 333 MB, free: 12.61 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.002338/0.002338, allocations: 71.89 kB / 467.9 MB, free: 9.055 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3104/0.3127, allocations: 59.57 MB / 0.5151 GB, free: 9.887 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002): time 0.004596/0.3173, allocations: 4.232 MB / 0.5192 GB, free: 6.84 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002569/0.3199, allocations: 1.211 MB / 0.5204 GB, free: 5.973 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004184/0.3203, allocations: 9.375 kB / 0.5204 GB, free: 5.969 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003345/0.3206, allocations: 106.4 kB / 0.5205 GB, free: 5.906 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006918/0.3213, allocations: 275.8 kB / 0.5207 GB, free: 5.719 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009283/0.3223, allocations: 305.9 kB / 0.521 GB, free: 5.547 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00129/0.3236, allocations: 1.191 MB / 0.5222 GB, free: 4.98 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007813/0.3243, allocations: 0.5852 MB / 0.5228 GB, free: 4.707 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006144/0.3249, allocations: 494 kB / 0.5232 GB, free: 4.492 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006558/0.3256, allocations: 0.6061 MB / 0.5238 GB, free: 4.211 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001707/0.3258, allocations: 128.1 kB / 0.524 GB, free: 4.203 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001915/0.326, allocations: 120.8 kB / 0.5241 GB, free: 4.203 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003561/0.3263, allocations: 325.7 kB / 0.5244 GB, free: 4.023 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007068/0.327, allocations: 0.5271 MB / 0.5249 GB, free: 3.707 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001695/0.3287, allocations: 1.257 MB / 0.5261 GB, free: 3.223 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.3287, allocations: 0 / 0.5261 GB, free: 3.223 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.3287, allocations: 1.406 kB / 0.5261 GB, free: 3.223 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.851e-05/0.3288, allocations: 0 / 0.5261 GB, free: 3.223 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.003171/0.3319, allocations: 1.283 MB / 0.5274 GB, free: 2.418 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.12e-05/0.332, allocations: 9.797 kB / 0.5274 GB, free: 2.418 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001749/0.3322, allocations: 130.7 kB / 0.5275 GB, free: 2.328 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002224/0.3324, allocations: 102.5 kB / 0.5276 GB, free: 2.277 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008087/0.3332, allocations: 0.5189 MB / 0.5281 GB, free: 1.895 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001833/0.3334, allocations: 162.2 kB / 0.5283 GB, free: 1.77 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001682/0.3335, allocations: 82.94 kB / 0.5284 GB, free: 1.742 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002316/0.3359, allocations: 1.012 MB / 0.5293 GB, free: 1.375 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.276e-05/0.3359, allocations: 0.9688 kB / 0.5293 GB, free: 1.375 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.734e-05/0.336, allocations: 31.19 kB / 0.5294 GB, free: 1.352 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.14e-05/0.336, allocations: 19.88 kB / 0.5294 GB, free: 1.352 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00236/0.3384, allocations: 0.9023 MB / 0.5303 GB, free: 1.055 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.007251/0.3456, allocations: 3.555 MB / 0.5337 GB, free: 15.24 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00214/0.3477, allocations: 0.866 MB / 0.5346 GB, free: 14.91 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001408/0.3492, allocations: 0.597 MB / 0.5352 GB, free: 14.7 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.529e-05/0.3493, allocations: 14.09 kB / 0.5352 GB, free: 14.69 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.452e-05/0.3493, allocations: 43.03 kB / 0.5352 GB, free: 14.64 MB / 398.1 MB Notification: Performance of pre-optimization done (n=79): time 2.675e-06/0.3493, allocations: 4 kB / 0.5352 GB, free: 14.64 MB / 398.1 MB Notification: Performance of matching and sorting (n=85): time 0.009683/0.359, allocations: 3.17 MB / 0.5383 GB, free: 13.04 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.94e-05/0.359, allocations: 65.38 kB / 0.5384 GB, free: 12.98 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008113/0.3598, allocations: 0.5072 MB / 0.5389 GB, free: 12.67 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000108/0.36, allocations: 41.42 kB / 0.5389 GB, free: 12.63 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002927/0.3602, allocations: 325.1 kB / 0.5392 GB, free: 12.34 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003647/0.3606, allocations: 330 kB / 0.5395 GB, free: 12.05 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003554/0.361, allocations: 155.4 kB / 0.5397 GB, free: 11.95 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002412/0.3612, allocations: 388.6 kB / 0.5401 GB, free: 11.58 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001397/0.3626, allocations: 0.5382 MB / 0.5406 GB, free: 11.3 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001414/0.364, allocations: 0.6203 MB / 0.5412 GB, free: 10.91 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01168/0.3757, allocations: 3.136 MB / 0.5443 GB, free: 9.305 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.666e-06/0.3757, allocations: 1.375 kB / 0.5443 GB, free: 9.305 MB / 398.1 MB Notification: Performance of matching and sorting (n=114) (initialization): time 0.003465/0.3792, allocations: 1.295 MB / 0.5455 GB, free: 8.645 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.445e-05/0.3792, allocations: 5.688 kB / 0.5455 GB, free: 8.645 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.137e-05/0.3792, allocations: 2.344 kB / 0.5455 GB, free: 8.645 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.909e-05/0.3792, allocations: 7.188 kB / 0.5455 GB, free: 8.645 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007535/0.3868, allocations: 1.035 MB / 0.5466 GB, free: 8.297 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.749e-05/0.3868, allocations: 6.594 kB / 0.5466 GB, free: 8.297 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0011/0.3879, allocations: 70.84 kB / 0.5466 GB, free: 8.262 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001734/0.3881, allocations: 39.64 kB / 0.5467 GB, free: 8.246 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.0006775/0.3888, allocations: 255.9 kB / 0.5469 GB, free: 8.043 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003175/0.3891, allocations: 74 kB / 0.547 GB, free: 8.004 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003419/0.3925, allocations: 1.213 MB / 0.5482 GB, free: 7.312 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.381e-05/0.3925, allocations: 8.75 kB / 0.5482 GB, free: 7.312 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.149e-05/0.3925, allocations: 3.984 kB / 0.5482 GB, free: 7.309 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.275e-05/0.3925, allocations: 3.984 kB / 0.5482 GB, free: 7.305 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006164/0.3987, allocations: 2.474 MB / 0.5506 GB, free: 5.664 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.636e-06/0.3987, allocations: 1.094 kB / 0.5506 GB, free: 5.664 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007424/0.4061, allocations: 1.009 MB / 0.5516 GB, free: 5.324 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.003e-05/0.4062, allocations: 9.438 kB / 0.5516 GB, free: 5.32 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002813/0.4064, allocations: 30.97 kB / 0.5516 GB, free: 5.301 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.744e-05/0.4065, allocations: 8.062 kB / 0.5516 GB, free: 5.297 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.638e-06/0.4065, allocations: 2.75 kB / 0.5516 GB, free: 5.297 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00492/0.4114, allocations: 1.847 MB / 0.5534 GB, free: 4.258 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004848/0.4119, allocations: 152 kB / 0.5536 GB, free: 4.109 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003617/0.4122, allocations: 25.23 kB / 0.5536 GB, free: 4.094 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00115/0.4134, allocations: 65.2 kB / 0.5537 GB, free: 4.062 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003547/0.4137, allocations: 103.2 kB / 0.5538 GB, free: 4.004 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001184/0.4138, allocations: 27.23 kB / 0.5538 GB, free: 3.996 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0007254/0.4146, allocations: 365.9 kB / 0.5541 GB, free: 3.781 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4146, allocations: 0 / 0.5541 GB, free: 3.781 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001383/0.416, allocations: 237.5 kB / 0.5544 GB, free: 3.754 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.005302/0.4213, allocations: 2.413 MB / 0.5567 GB, free: 1.34 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003047/0.4243, allocations: 1.103 MB / 0.5578 GB, free: 240 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/0.4243, allocations: 3.938 kB / 0.5578 GB, free: 236 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001509/0.4258, allocations: 0.5666 MB / 0.5584 GB, free: 15.66 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001173/0.427, allocations: 174.1 kB / 0.5585 GB, free: 15.49 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01905/0.446, allocations: 8.906 MB / 0.5672 GB, free: 6.391 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006873/0.4467, allocations: 0.9621 MB / 0.5682 GB, free: 5.402 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0007524/0.4475, allocations: 166 kB / 0.5683 GB, free: 5.238 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007052/0.4482, allocations: 311.3 kB / 0.5686 GB, free: 4.934 MB / 414.1 MB Notification: Performance of SimCode: time 1.322e-06/0.4482, allocations: 0 / 0.5686 GB, free: 4.934 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05506/0.5032, allocations: 19.36 MB / 0.5875 GB, free: 1.797 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.67/11.17, allocations: 11.8 kB / 0.5875 GB, free: 1.785 MB / 430.1 MB " [Timeout remaining time 649] (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 & python3 -m fmpy simulate --output-file AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002_res.csv --start-time 0 --stop-time 20000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 2 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: 14.147691568126902] Failed to read output from testmodel.py, exit status != 0: 11.255138294072822 11.269817153 10.937917017 Calling exit ...