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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005049/0.005049, allocations: 98.52 kB / 15.73 MB, free: 6.062 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001181/0.001181, allocations: 196.4 kB / 16.67 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.324/1.324, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09226/0.09226, allocations: 22.32 MB / 312.9 MB, free: 8.859 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001593/0.001593, allocations: 67.89 kB / 436.6 MB, free: 12.24 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.1071, allocations: 54.95 MB / 491.5 MB, free: 5.242 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001): time 0.004392/0.1115, allocations: 3.179 MB / 494.7 MB, free: 2.035 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001795/0.1133, allocations: 0.9041 MB / 495.6 MB, free: 1.125 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002944/0.1136, allocations: 4 kB / 495.6 MB, free: 1.121 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002762/0.114, allocations: 67.3 kB / 495.7 MB, free: 1.055 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004692/0.1145, allocations: 178.7 kB / 495.8 MB, free: 0.8789 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006003/0.1151, allocations: 187.7 kB / 496 MB, free: 0.6953 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000874/0.1159, allocations: 0.7444 MB / 496.8 MB, free: 15.95 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006642/0.1166, allocations: 445.7 kB / 497.2 MB, free: 15.51 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004497/0.1171, allocations: 307.1 kB / 497.5 MB, free: 15.21 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005993/0.1177, allocations: 398.7 kB / 497.9 MB, free: 14.82 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001541/0.1179, allocations: 76 kB / 498 MB, free: 14.74 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001516/0.118, allocations: 76 kB / 498 MB, free: 14.67 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002127/0.1182, allocations: 203.4 kB / 498.2 MB, free: 14.47 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003969/0.1186, allocations: 338.5 kB / 498.6 MB, free: 14.14 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008045/0.1195, allocations: 0.7939 MB / 499.4 MB, free: 13.34 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.548e-06/0.1195, allocations: 0 / 499.4 MB, free: 13.34 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.1195, allocations: 4 kB / 499.4 MB, free: 13.34 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.341e-05/0.1195, allocations: 0 / 499.4 MB, free: 13.34 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.002186/0.1217, allocations: 0.9038 MB / 0.4885 GB, free: 12.38 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.987e-05/0.1218, allocations: 16.03 kB / 0.4886 GB, free: 12.37 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001301/0.1219, allocations: 90.7 kB / 0.4886 GB, free: 12.27 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001343/0.122, allocations: 64.56 kB / 0.4887 GB, free: 12.21 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005691/0.1226, allocations: 388.4 kB / 0.4891 GB, free: 11.79 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001388/0.1228, allocations: 116.9 kB / 0.4892 GB, free: 11.67 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001085/0.1229, allocations: 56.33 kB / 0.4892 GB, free: 11.61 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001633/0.1245, allocations: 0.6855 MB / 0.4899 GB, free: 10.92 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.178e-05/0.1246, allocations: 3.938 kB / 0.4899 GB, free: 10.92 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.109e-05/0.1246, allocations: 20 kB / 0.4899 GB, free: 10.9 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.424e-05/0.1246, allocations: 12 kB / 0.4899 GB, free: 10.89 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001529/0.1262, allocations: 0.6011 MB / 0.4905 GB, free: 10.29 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005429/0.1316, allocations: 2.587 MB / 0.4931 GB, free: 7.625 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001142/0.1328, allocations: 0.5349 MB / 0.4936 GB, free: 7.086 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008861/0.1337, allocations: 397.4 kB / 0.494 GB, free: 6.695 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.292e-05/0.1338, allocations: 8.375 kB / 0.494 GB, free: 6.688 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.607e-05/0.1338, allocations: 34.94 kB / 0.494 GB, free: 6.645 MB / 382.1 MB Notification: Performance of pre-optimization done (n=46): time 2.013e-06/0.1338, allocations: 0 / 0.494 GB, free: 6.645 MB / 382.1 MB Notification: Performance of matching and sorting (n=50): time 0.005918/0.1397, allocations: 2.173 MB / 0.4961 GB, free: 4.422 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.669e-05/0.1398, allocations: 59.84 kB / 0.4962 GB, free: 4.352 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004215/0.1402, allocations: 357.6 kB / 0.4965 GB, free: 3.992 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.33e-05/0.1403, allocations: 37.7 kB / 0.4966 GB, free: 3.949 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001603/0.1405, allocations: 237.3 kB / 0.4968 GB, free: 3.715 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001623/0.1406, allocations: 190.3 kB / 0.497 GB, free: 3.527 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000199/0.1408, allocations: 94.23 kB / 0.497 GB, free: 3.43 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.00015/0.141, allocations: 350.8 kB / 0.4974 GB, free: 3.078 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009011/0.1419, allocations: 374.7 kB / 0.4977 GB, free: 2.711 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009126/0.1428, allocations: 411.9 kB / 0.4981 GB, free: 2.285 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007012/0.1499, allocations: 1.974 MB / 0.5001 GB, free: 292 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.761e-06/0.1499, allocations: 4 kB / 0.5001 GB, free: 288 kB / 382.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.2063/0.3562, allocations: 0.8429 MB / 0.5009 GB, free: 22.06 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.095e-05/0.3562, allocations: 4.594 kB / 0.5009 GB, free: 22.06 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.426e-06/0.3563, allocations: 2.562 kB / 0.5009 GB, free: 22.06 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.175e-05/0.3563, allocations: 6.609 kB / 0.5009 GB, free: 22.06 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006135/0.3624, allocations: 0.901 MB / 0.5018 GB, free: 22.06 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.518e-05/0.3625, allocations: 5.656 kB / 0.5018 GB, free: 22.06 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005396/0.363, allocations: 54.7 kB / 0.5018 GB, free: 22.06 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.952e-05/0.3631, allocations: 22.31 kB / 0.5019 GB, free: 22.06 MB / 382.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 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (66): * Single equations (assignments): 66 * 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.0002911/0.3634, allocations: 199.3 kB / 0.5021 GB, free: 21.94 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.608e-05/0.3634, allocations: 43.58 kB / 0.5021 GB, free: 21.94 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001904/0.3654, allocations: 0.8268 MB / 0.5029 GB, free: 21.89 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.053e-06/0.3654, allocations: 8.531 kB / 0.5029 GB, free: 21.89 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.3654, allocations: 0 / 0.5029 GB, free: 21.89 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.196e-06/0.3654, allocations: 2.766 kB / 0.5029 GB, free: 21.89 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003152/0.3686, allocations: 1.724 MB / 0.5046 GB, free: 21.53 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.867e-06/0.3686, allocations: 2 kB / 0.5046 GB, free: 21.53 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006132/0.3747, allocations: 0.8822 MB / 0.5055 GB, free: 21.53 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.034e-05/0.3747, allocations: 1.312 kB / 0.5055 GB, free: 21.53 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.926e-05/0.3748, allocations: 16.8 kB / 0.5055 GB, free: 21.53 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.884e-06/0.3748, allocations: 7.016 kB / 0.5055 GB, free: 21.52 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.3748, allocations: 7.781 kB / 0.5055 GB, free: 21.52 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002737/0.3776, allocations: 1.247 MB / 0.5067 GB, free: 21.37 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001037/0.3777, allocations: 120.4 kB / 0.5068 GB, free: 21.28 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.819e-05/0.3778, allocations: 12.86 kB / 0.5068 GB, free: 21.28 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005358/0.3783, allocations: 57.36 kB / 0.5069 GB, free: 21.27 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001831/0.3785, allocations: 67.09 kB / 0.507 GB, free: 21.27 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.922e-05/0.3786, allocations: 22.98 kB / 0.507 GB, free: 21.27 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002566/0.3789, allocations: 263.4 kB / 0.5072 GB, free: 21.19 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3789, allocations: 0 / 0.5072 GB, free: 21.19 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004763/0.3793, allocations: 143.5 kB / 0.5074 GB, free: 21.19 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (51): * Single equations (assignments): 51 * 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.002904/0.3823, allocations: 1.8 MB / 0.5091 GB, free: 20.48 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001875/0.3841, allocations: 0.7826 MB / 0.5099 GB, free: 20.46 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.3842, allocations: 0 / 0.5099 GB, free: 20.46 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009264/0.3851, allocations: 412.8 kB / 0.5103 GB, free: 20.46 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000594/0.3857, allocations: 102.6 kB / 0.5104 GB, free: 20.45 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01117/0.3969, allocations: 6.087 MB / 0.5163 GB, free: 18.41 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003232/0.3972, allocations: 0.8531 MB / 0.5172 GB, free: 17.71 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004366/0.3977, allocations: 91.09 kB / 0.5172 GB, free: 17.7 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003594/0.3981, allocations: 185.7 kB / 0.5174 GB, free: 17.69 MB / 382.1 MB Notification: Performance of SimCode: time 5.61e-07/0.3981, allocations: 6.625 kB / 0.5174 GB, free: 17.69 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03337/0.4314, allocations: 12.7 MB / 0.5298 GB, free: 12.6 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.448/8.879, allocations: 3.812 kB / 0.5298 GB, free: 12.6 MB / 382.1 MB (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)