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.001398/0.001398, allocations: 109.1 kB / 17.14 MB, free: 5.93 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.00164/0.00164, allocations: 204 kB / 20.11 MB, free: 2.977 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.578/1.578, allocations: 230.6 MB / 253.5 MB, free: 15.08 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.1092/0.1092, allocations: 24.03 MB / 333.6 MB, free: 1.547 MB / 254.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.002291/0.002291, allocations: 67.95 kB / 469.1 MB, free: 31.06 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1194/0.1217, allocations: 59.55 MB / 0.5163 GB, free: 11.59 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001): time 0.005008/0.1267, allocations: 3.215 MB / 0.5194 GB, free: 8.344 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002176/0.1289, allocations: 0.9352 MB / 0.5203 GB, free: 7.402 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003529/0.1292, allocations: 11.94 kB / 0.5203 GB, free: 7.391 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002719/0.1295, allocations: 63.34 kB / 0.5204 GB, free: 7.328 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005485/0.1301, allocations: 174.7 kB / 0.5206 GB, free: 7.156 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006796/0.1307, allocations: 199.6 kB / 0.5207 GB, free: 6.961 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001198/0.1319, allocations: 0.7407 MB / 0.5215 GB, free: 6.219 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007507/0.1327, allocations: 381.7 kB / 0.5218 GB, free: 5.844 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006964/0.1334, allocations: 315.1 kB / 0.5221 GB, free: 5.531 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006533/0.134, allocations: 398.7 kB / 0.5225 GB, free: 5.141 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002108/0.1343, allocations: 80 kB / 0.5226 GB, free: 5.062 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001988/0.1344, allocations: 76 kB / 0.5227 GB, free: 4.988 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002577/0.1347, allocations: 207.4 kB / 0.5229 GB, free: 4.785 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005114/0.1352, allocations: 334.6 kB / 0.5232 GB, free: 4.457 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009918/0.1362, allocations: 0.7978 MB / 0.524 GB, free: 3.656 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.1362, allocations: 0 / 0.524 GB, free: 3.656 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1362, allocations: 0 / 0.524 GB, free: 3.656 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.079e-05/0.1362, allocations: 0 / 0.524 GB, free: 3.656 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.002117/0.1383, allocations: 0.9116 MB / 0.5248 GB, free: 2.695 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.883e-05/0.1384, allocations: 16.56 kB / 0.5249 GB, free: 2.68 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001456/0.1385, allocations: 94.7 kB / 0.525 GB, free: 2.578 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001376/0.1387, allocations: 64.56 kB / 0.525 GB, free: 2.516 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006399/0.1393, allocations: 396.3 kB / 0.5254 GB, free: 2.09 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001749/0.1395, allocations: 108.9 kB / 0.5255 GB, free: 1.973 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000116/0.1396, allocations: 52.38 kB / 0.5255 GB, free: 1.922 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001699/0.1413, allocations: 0.6856 MB / 0.5262 GB, free: 1.234 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.82e-05/0.1413, allocations: 0 / 0.5262 GB, free: 1.234 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.742e-05/0.1414, allocations: 20 kB / 0.5262 GB, free: 1.215 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.646e-05/0.1414, allocations: 12 kB / 0.5262 GB, free: 1.203 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001546/0.143, allocations: 0.6089 MB / 0.5268 GB, free: 0.5898 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00564/0.1486, allocations: 2.594 MB / 0.5294 GB, free: 13.93 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001241/0.1498, allocations: 0.5171 MB / 0.5299 GB, free: 13.4 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009309/0.1508, allocations: 393.4 kB / 0.5303 GB, free: 13.02 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.994e-05/0.1508, allocations: 4.375 kB / 0.5303 GB, free: 13.01 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.663e-05/0.1509, allocations: 38.94 kB / 0.5303 GB, free: 12.96 MB / 398.1 MB Notification: Performance of pre-optimization done (n=46): time 1.853e-06/0.1509, allocations: 0 / 0.5303 GB, free: 12.96 MB / 398.1 MB Notification: Performance of matching and sorting (n=52): time 0.00662/0.1575, allocations: 2.256 MB / 0.5325 GB, free: 10.66 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.731e-05/0.1576, allocations: 59.84 kB / 0.5326 GB, free: 10.59 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004708/0.158, allocations: 361.7 kB / 0.5329 GB, free: 10.23 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.21e-05/0.1581, allocations: 37.7 kB / 0.5329 GB, free: 10.19 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000192/0.1583, allocations: 233.2 kB / 0.5332 GB, free: 9.957 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002113/0.1585, allocations: 198.3 kB / 0.5333 GB, free: 9.762 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002222/0.1587, allocations: 102.2 kB / 0.5334 GB, free: 9.656 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001732/0.1589, allocations: 354.7 kB / 0.5338 GB, free: 9.301 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000946/0.1598, allocations: 375 kB / 0.5341 GB, free: 8.93 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009584/0.1608, allocations: 424.8 kB / 0.5345 GB, free: 8.488 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007339/0.1681, allocations: 2.077 MB / 0.5366 GB, free: 6.367 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.1681, allocations: 0 / 0.5366 GB, free: 6.367 MB / 398.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.002143/0.1703, allocations: 0.8577 MB / 0.5374 GB, free: 5.5 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.176e-05/0.1703, allocations: 8.219 kB / 0.5374 GB, free: 5.492 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.174e-05/0.1703, allocations: 4 kB / 0.5374 GB, free: 5.488 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.301e-05/0.1703, allocations: 4 kB / 0.5374 GB, free: 5.484 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006142/0.1765, allocations: 0.8972 MB / 0.5383 GB, free: 4.586 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.233e-05/0.1765, allocations: 11.92 kB / 0.5383 GB, free: 4.574 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006146/0.1771, allocations: 51.94 kB / 0.5384 GB, free: 4.523 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.145e-05/0.1772, allocations: 23.98 kB / 0.5384 GB, free: 4.5 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.0004778/0.1777, allocations: 218.3 kB / 0.5386 GB, free: 4.281 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001365/0.1778, allocations: 47.66 kB / 0.5386 GB, free: 4.234 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002259/0.1801, allocations: 0.8366 MB / 0.5395 GB, free: 3.387 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.236e-06/0.1801, allocations: 4 kB / 0.5395 GB, free: 3.383 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.042e-06/0.1801, allocations: 0 / 0.5395 GB, free: 3.383 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.716e-06/0.1801, allocations: 7.984 kB / 0.5395 GB, free: 3.375 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004134/0.1842, allocations: 1.784 MB / 0.5412 GB, free: 1.523 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/0.1842, allocations: 0 / 0.5412 GB, free: 1.523 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006174/0.1904, allocations: 0.8857 MB / 0.5421 GB, free: 0.6367 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.035e-05/0.1904, allocations: 4 kB / 0.5421 GB, free: 0.6328 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.193e-05/0.1905, allocations: 23.92 kB / 0.5421 GB, free: 0.6094 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.474e-06/0.1905, allocations: 3.938 kB / 0.5421 GB, free: 0.6055 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.1905, allocations: 4 kB / 0.5421 GB, free: 0.6016 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003073/0.1936, allocations: 1.277 MB / 0.5434 GB, free: 15.3 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001753/0.1938, allocations: 120.8 kB / 0.5435 GB, free: 15.16 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.504e-05/0.1938, allocations: 12 kB / 0.5435 GB, free: 15.15 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005714/0.1944, allocations: 63.86 kB / 0.5435 GB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001869/0.1946, allocations: 68.33 kB / 0.5436 GB, free: 15.02 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.221e-05/0.1947, allocations: 16 kB / 0.5436 GB, free: 15.01 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.00036/0.195, allocations: 259.2 kB / 0.5439 GB, free: 14.75 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.195, allocations: 0 / 0.5439 GB, free: 14.75 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006005/0.1956, allocations: 148 kB / 0.544 GB, free: 14.61 MB / 414.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.003503/0.1991, allocations: 1.84 MB / 0.5458 GB, free: 12.73 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002065/0.2012, allocations: 0.7478 MB / 0.5465 GB, free: 11.98 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.2012, allocations: 3.938 kB / 0.5465 GB, free: 11.98 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001/0.2022, allocations: 402.2 kB / 0.5469 GB, free: 11.59 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006788/0.2029, allocations: 116.1 kB / 0.547 GB, free: 11.48 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01256/0.2154, allocations: 6.161 MB / 0.5531 GB, free: 5.176 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005511/0.216, allocations: 0.8547 MB / 0.5539 GB, free: 4.297 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000439/0.2164, allocations: 96.33 kB / 0.554 GB, free: 4.199 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000442/0.2169, allocations: 183.4 kB / 0.5542 GB, free: 4.02 MB / 414.1 MB Notification: Performance of SimCode: time 9.82e-07/0.2169, allocations: 0 / 0.5542 GB, free: 4.02 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04368/0.2605, allocations: 12.87 MB / 0.5667 GB, free: 7.32 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.241/9.502, allocations: 13.95 kB / 0.5667 GB, free: 7.309 MB / 430.1 MB " [Timeout remaining time 650] (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: 12.758148862980306] Failed to read output from testmodel.py, exit status != 0: 9.58110712794587 9.603769535 9.463377947 Calling exit ...