Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.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.001308/0.001308, allocations: 114.3 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.001447/0.001447, allocations: 215.2 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.58/1.58, allocations: 230.6 MB / 256 MB, free: 8.012 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.1098/0.1098, allocations: 24.13 MB / 336.6 MB, free: 11.45 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) Ignoring simflag -noemit -variableFilter=.* since it seems broken on HelloWorld Running command: "" <> buildModelFMU(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001,fileNamePrefix="AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_001",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001,fileNamePrefix="AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_001",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.002094/0.002094, allocations: 71.88 kB / 474.1 MB, free: 5.629 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3363/0.3384, allocations: 59.59 MB / 0.5212 GB, free: 10.62 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001): time 0.003768/0.3421, allocations: 3.231 MB / 0.5243 GB, free: 8.309 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001596/0.3437, allocations: 0.955 MB / 0.5253 GB, free: 7.621 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001791/0.3439, allocations: 4.5 kB / 0.5253 GB, free: 7.621 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002176/0.3441, allocations: 69.67 kB / 0.5253 GB, free: 7.578 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003218/0.3445, allocations: 172.4 kB / 0.5255 GB, free: 7.461 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005545/0.345, allocations: 195.5 kB / 0.5257 GB, free: 7.352 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008083/0.3458, allocations: 0.7484 MB / 0.5264 GB, free: 6.988 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005461/0.3464, allocations: 359.4 kB / 0.5268 GB, free: 6.828 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004484/0.3468, allocations: 317.6 kB / 0.5271 GB, free: 6.688 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004969/0.3473, allocations: 397.6 kB / 0.5274 GB, free: 6.5 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001118/0.3474, allocations: 76.72 kB / 0.5275 GB, free: 6.5 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001298/0.3476, allocations: 77.44 kB / 0.5276 GB, free: 6.5 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001611/0.3477, allocations: 203.6 kB / 0.5278 GB, free: 6.387 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003044/0.348, allocations: 342.3 kB / 0.5281 GB, free: 6.184 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008855/0.3489, allocations: 0.7926 MB / 0.5289 GB, free: 5.879 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.3489, allocations: 0 / 0.5289 GB, free: 5.879 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.505e-06/0.3489, allocations: 1.219 kB / 0.5289 GB, free: 5.879 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.192e-05/0.3489, allocations: 0 / 0.5289 GB, free: 5.879 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: 122 * Number of variables: 122 Notification: Performance of Generate backend data structure: time 0.002184/0.3511, allocations: 0.8459 MB / 0.5297 GB, free: 5.336 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.818e-05/0.3512, allocations: 10.77 kB / 0.5297 GB, free: 5.336 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001433/0.3513, allocations: 99.31 kB / 0.5298 GB, free: 5.258 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001918/0.3515, allocations: 65.56 kB / 0.5299 GB, free: 5.227 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006588/0.3522, allocations: 331.7 kB / 0.5302 GB, free: 4.977 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000153/0.3523, allocations: 110 kB / 0.5303 GB, free: 4.895 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001186/0.3524, allocations: 48.45 kB / 0.5303 GB, free: 4.879 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001701/0.3541, allocations: 0.6843 MB / 0.531 GB, free: 4.637 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.065e-05/0.3542, allocations: 4 kB / 0.531 GB, free: 4.633 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.343e-05/0.3542, allocations: 20.78 kB / 0.531 GB, free: 4.617 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.504e-05/0.3542, allocations: 15.81 kB / 0.5311 GB, free: 4.613 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00145/0.3557, allocations: 0.6024 MB / 0.5316 GB, free: 4.422 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005344/0.361, allocations: 2.535 MB / 0.5341 GB, free: 3.066 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001119/0.3621, allocations: 0.5201 MB / 0.5346 GB, free: 2.859 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000853/0.363, allocations: 384.1 kB / 0.535 GB, free: 2.723 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.844e-05/0.3631, allocations: 22.92 kB / 0.535 GB, free: 2.707 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.753e-05/0.3631, allocations: 38.11 kB / 0.535 GB, free: 2.664 MB / 382.1 MB Notification: Performance of pre-optimization done (n=46): time 3.025e-06/0.3631, allocations: 0 / 0.535 GB, free: 2.664 MB / 382.1 MB Notification: Performance of matching and sorting (n=52): time 0.005927/0.369, allocations: 2.186 MB / 0.5372 GB, free: 1.805 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.7e-05/0.369, allocations: 61.66 kB / 0.5372 GB, free: 1.734 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004066/0.3695, allocations: 360.3 kB / 0.5376 GB, free: 1.543 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.597e-05/0.3695, allocations: 30.98 kB / 0.5376 GB, free: 1.508 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001218/0.3696, allocations: 238 kB / 0.5378 GB, free: 1.312 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000137/0.3698, allocations: 197.2 kB / 0.538 GB, free: 1.156 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000183/0.3699, allocations: 98.23 kB / 0.5381 GB, free: 1.105 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.029e-05/0.37, allocations: 359.5 kB / 0.5385 GB, free: 0.7695 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000815/0.3708, allocations: 375 kB / 0.5388 GB, free: 0.6367 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000823/0.3717, allocations: 422.1 kB / 0.5392 GB, free: 464 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006642/0.3783, allocations: 2 MB / 0.5412 GB, free: 15.68 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.466e-06/0.3783, allocations: 4 kB / 0.5412 GB, free: 15.68 MB / 398.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001958/0.3803, allocations: 0.8476 MB / 0.542 GB, free: 15.25 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.341e-05/0.3803, allocations: 9.266 kB / 0.542 GB, free: 15.25 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.638e-06/0.3803, allocations: 1.938 kB / 0.542 GB, free: 15.25 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.35e-05/0.3803, allocations: 8.781 kB / 0.542 GB, free: 15.24 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005628/0.3859, allocations: 0.8987 MB / 0.5429 GB, free: 14.93 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.802e-05/0.386, allocations: 3.688 kB / 0.5429 GB, free: 14.93 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006396/0.3866, allocations: 65.33 kB / 0.543 GB, free: 14.89 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.849e-05/0.3867, allocations: 22.86 kB / 0.543 GB, free: 14.88 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: 8 * 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 (68): * Single equations (assignments): 68 * 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.0004428/0.3871, allocations: 214 kB / 0.5432 GB, free: 14.7 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000105/0.3872, allocations: 45.92 kB / 0.5432 GB, free: 14.68 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002003/0.3892, allocations: 0.8272 MB / 0.544 GB, free: 14.21 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.953e-06/0.3892, allocations: 4.562 kB / 0.5441 GB, free: 14.21 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-06/0.3892, allocations: 1.188 kB / 0.5441 GB, free: 14.21 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.481e-06/0.3892, allocations: 0 / 0.5441 GB, free: 14.21 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003698/0.3929, allocations: 1.768 MB / 0.5458 GB, free: 13 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/0.3929, allocations: 5.344 kB / 0.5458 GB, free: 13 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005668/0.3986, allocations: 0.8942 MB / 0.5467 GB, free: 12.68 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.418e-05/0.3986, allocations: 3.562 kB / 0.5467 GB, free: 12.68 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.443e-05/0.3987, allocations: 18.02 kB / 0.5467 GB, free: 12.66 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.175e-06/0.3987, allocations: 10.44 kB / 0.5467 GB, free: 12.66 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.514e-06/0.3987, allocations: 1.094 kB / 0.5467 GB, free: 12.66 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002817/0.4015, allocations: 1.269 MB / 0.5479 GB, free: 11.93 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001619/0.4017, allocations: 48.02 kB / 0.548 GB, free: 11.9 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000103/0.4018, allocations: 21.27 kB / 0.548 GB, free: 11.88 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005314/0.4023, allocations: 51.53 kB / 0.548 GB, free: 11.86 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001879/0.4025, allocations: 79.8 kB / 0.5481 GB, free: 11.8 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.799e-05/0.4026, allocations: 19.3 kB / 0.5481 GB, free: 11.79 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003203/0.4029, allocations: 257.8 kB / 0.5484 GB, free: 11.63 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4029, allocations: 0 / 0.5484 GB, free: 11.63 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005729/0.4035, allocations: 145.4 kB / 0.5485 GB, free: 11.62 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 53 * 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.003194/0.4067, allocations: 1.837 MB / 0.5503 GB, free: 10.34 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001921/0.4086, allocations: 0.7425 MB / 0.551 GB, free: 9.996 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.4086, allocations: 0 / 0.551 GB, free: 9.996 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009198/0.4095, allocations: 412.5 kB / 0.5514 GB, free: 9.797 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006509/0.4102, allocations: 106.5 kB / 0.5515 GB, free: 9.742 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01167/0.4218, allocations: 6.156 MB / 0.5576 GB, free: 5.516 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000547/0.4224, allocations: 0.8624 MB / 0.5584 GB, free: 4.629 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004894/0.4229, allocations: 96.33 kB / 0.5585 GB, free: 4.531 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004069/0.4233, allocations: 191.3 kB / 0.5587 GB, free: 4.344 MB / 398.1 MB Notification: Performance of SimCode: time 1.212e-06/0.4233, allocations: 0 / 0.5587 GB, free: 4.344 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04552/0.4688, allocations: 13.39 MB / 0.5717 GB, free: 7.152 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.2/12.67, allocations: 4 kB / 0.5717 GB, free: 7.148 MB / 414.1 MB " [Timeout remaining time 647] (rm -f AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.pipe ; mkfifo AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.pipe >> ../files/AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001_res.csv --start-time 0 --stop-time 10000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1 AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_001.fmu > AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.789848232001532] Failed to read output from testmodel.py, exit status != 0: 12.80968933099939 12.844561925 12.488910113 Calling exit ...