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.001371/0.001371, 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.001623/0.001623, allocations: 212.5 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.454/1.454, allocations: 230.6 MB / 256.8 MB, free: 7.797 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.03 MB / 337.2 MB, free: 11.33 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_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.002415/0.002415, allocations: 63.91 kB / 474.6 MB, free: 5.609 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2934/0.2958, allocations: 59.58 MB / 0.5217 GB, free: 10.58 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001): time 0.003563/0.2994, allocations: 2.92 MB / 0.5245 GB, free: 8.598 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001507/0.3009, allocations: 0.9111 MB / 0.5254 GB, free: 7.957 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001683/0.301, allocations: 3.156 kB / 0.5254 GB, free: 7.957 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001849/0.3012, allocations: 69.95 kB / 0.5255 GB, free: 7.918 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000312/0.3015, allocations: 168.7 kB / 0.5256 GB, free: 7.801 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005287/0.3021, allocations: 205.7 kB / 0.5258 GB, free: 7.684 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006719/0.3027, allocations: 0.7424 MB / 0.5266 GB, free: 7.324 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004566/0.3032, allocations: 350.3 kB / 0.5269 GB, free: 7.172 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003789/0.3036, allocations: 317.2 kB / 0.5272 GB, free: 7.031 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000432/0.304, allocations: 347.1 kB / 0.5275 GB, free: 6.895 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001074/0.3041, allocations: 80.66 kB / 0.5276 GB, free: 6.891 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000129/0.3042, allocations: 77.78 kB / 0.5277 GB, free: 6.891 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001473/0.3044, allocations: 206.5 kB / 0.5279 GB, free: 6.773 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002561/0.3046, allocations: 293.9 kB / 0.5282 GB, free: 6.617 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007551/0.3054, allocations: 0.8021 MB / 0.5289 GB, free: 6.309 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.3054, allocations: 0 / 0.5289 GB, free: 6.309 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.3054, allocations: 1.188 kB / 0.5289 GB, free: 6.309 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.408e-06/0.3054, allocations: 0 / 0.5289 GB, free: 6.309 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.001782/0.3072, allocations: 0.8452 MB / 0.5298 GB, free: 5.77 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.977e-05/0.3072, allocations: 10.45 kB / 0.5298 GB, free: 5.77 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001026/0.3073, allocations: 90.92 kB / 0.5299 GB, free: 5.699 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001186/0.3075, allocations: 66.72 kB / 0.5299 GB, free: 5.668 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005294/0.308, allocations: 330.9 kB / 0.5302 GB, free: 5.418 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001195/0.3081, allocations: 117.3 kB / 0.5304 GB, free: 5.328 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.64e-05/0.3082, allocations: 49.61 kB / 0.5304 GB, free: 5.312 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001526/0.3097, allocations: 0.7387 MB / 0.5311 GB, free: 5 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.922e-05/0.3097, allocations: 0 / 0.5311 GB, free: 5 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.814e-05/0.3098, allocations: 17.72 kB / 0.5311 GB, free: 4.988 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.248e-05/0.3098, allocations: 11.03 kB / 0.5312 GB, free: 4.988 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001425/0.3112, allocations: 0.5993 MB / 0.5317 GB, free: 4.797 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004983/0.3162, allocations: 2.372 MB / 0.5341 GB, free: 3.484 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001116/0.3173, allocations: 0.5238 MB / 0.5346 GB, free: 3.273 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008306/0.3182, allocations: 384.5 kB / 0.5349 GB, free: 3.137 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.525e-05/0.3182, allocations: 14.64 kB / 0.5349 GB, free: 3.129 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.984e-05/0.3182, allocations: 34.28 kB / 0.535 GB, free: 3.09 MB / 382.1 MB Notification: Performance of pre-optimization done (n=46): time 2.755e-06/0.3182, allocations: 96 / 0.535 GB, free: 3.09 MB / 382.1 MB Notification: Performance of matching and sorting (n=52): time 0.00579/0.324, allocations: 2.191 MB / 0.5371 GB, free: 2.227 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.112e-05/0.3241, allocations: 57.31 kB / 0.5372 GB, free: 2.16 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003906/0.3244, allocations: 360.4 kB / 0.5375 GB, free: 1.973 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.589e-05/0.3245, allocations: 32.14 kB / 0.5375 GB, free: 1.938 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001224/0.3246, allocations: 237.6 kB / 0.5378 GB, free: 1.742 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001374/0.3248, allocations: 202.1 kB / 0.538 GB, free: 1.582 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001797/0.3249, allocations: 101.1 kB / 0.5381 GB, free: 1.527 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.98e-05/0.325, allocations: 357 kB / 0.5384 GB, free: 1.195 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008335/0.3258, allocations: 374 kB / 0.5388 GB, free: 1.062 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008409/0.3267, allocations: 428.6 kB / 0.5392 GB, free: 0.875 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006336/0.333, allocations: 2.001 MB / 0.5411 GB, free: 236 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.887e-06/0.333, allocations: 0 / 0.5411 GB, free: 236 kB / 382.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.002002/0.335, allocations: 0.8591 MB / 0.542 GB, free: 15.79 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.2e-05/0.335, allocations: 5.188 kB / 0.542 GB, free: 15.79 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/0.3351, allocations: 2.156 kB / 0.542 GB, free: 15.79 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.137e-05/0.3351, allocations: 5.219 kB / 0.542 GB, free: 15.79 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005781/0.3409, allocations: 0.9022 MB / 0.5429 GB, free: 15.47 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.83e-05/0.3409, allocations: 4.312 kB / 0.5429 GB, free: 15.47 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000638/0.3415, allocations: 56.95 kB / 0.5429 GB, free: 15.44 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.769e-05/0.3416, allocations: 22.64 kB / 0.5429 GB, free: 15.43 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.0005237/0.3421, allocations: 208.5 kB / 0.5431 GB, free: 15.25 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000115/0.3422, allocations: 45.22 kB / 0.5432 GB, free: 15.23 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002033/0.3442, allocations: 0.8333 MB / 0.544 GB, free: 14.76 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.362e-06/0.3443, allocations: 5.062 kB / 0.544 GB, free: 14.76 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.3443, allocations: 0 / 0.544 GB, free: 14.76 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.392e-06/0.3443, allocations: 0 / 0.544 GB, free: 14.76 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00372/0.348, allocations: 1.667 MB / 0.5456 GB, free: 13.65 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.644e-06/0.348, allocations: 5.141 kB / 0.5456 GB, free: 13.64 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005751/0.3537, allocations: 0.8867 MB / 0.5465 GB, free: 13.33 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.247e-05/0.3538, allocations: 2.25 kB / 0.5465 GB, free: 13.33 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.9e-05/0.3538, allocations: 18.42 kB / 0.5465 GB, free: 13.32 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.317e-06/0.3538, allocations: 11.12 kB / 0.5465 GB, free: 13.31 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/0.3538, allocations: 5.172 kB / 0.5465 GB, free: 13.31 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002932/0.3568, allocations: 1.267 MB / 0.5478 GB, free: 12.59 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001719/0.357, allocations: 47.3 kB / 0.5478 GB, free: 12.55 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.726e-05/0.357, allocations: 17.89 kB / 0.5478 GB, free: 12.54 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005246/0.3576, allocations: 51.03 kB / 0.5479 GB, free: 12.52 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001738/0.3577, allocations: 79.86 kB / 0.548 GB, free: 12.46 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.062e-05/0.3578, allocations: 24.27 kB / 0.548 GB, free: 12.45 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003329/0.3581, allocations: 261.1 kB / 0.5482 GB, free: 12.28 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3581, allocations: 0 / 0.5482 GB, free: 12.28 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000538/0.3587, allocations: 145.6 kB / 0.5484 GB, free: 12.27 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.003215/0.3619, allocations: 1.838 MB / 0.5502 GB, free: 10.99 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001906/0.3638, allocations: 0.7422 MB / 0.5509 GB, free: 10.65 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.367e-06/0.3638, allocations: 0 / 0.5509 GB, free: 10.65 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009571/0.3648, allocations: 409 kB / 0.5513 GB, free: 10.45 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000702/0.3655, allocations: 106.5 kB / 0.5514 GB, free: 10.39 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01246/0.3779, allocations: 6.143 MB / 0.5574 GB, free: 6.109 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003832/0.3783, allocations: 261.9 kB / 0.5576 GB, free: 5.832 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000525/0.3788, allocations: 96.34 kB / 0.5577 GB, free: 5.734 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005037/0.3793, allocations: 183.4 kB / 0.5579 GB, free: 5.555 MB / 398.1 MB Notification: Performance of SimCode: time 7.91e-07/0.3793, allocations: 0 / 0.5579 GB, free: 5.555 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04891/0.4282, allocations: 14.26 MB / 0.5718 GB, free: 7.547 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.68/12.11, allocations: 14.83 kB / 0.5718 GB, free: 7.535 MB / 414.1 MB " [Timeout remaining time 648] (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.145617298781872] Failed to read output from testmodel.py, exit status != 0: 12.2339160409756 12.256732915 11.947972566 Calling exit ...