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.007203/0.007203, allocations: 97.69 kB / 15.73 MB, free: 6.055 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.001687/0.001687, allocations: 198.4 kB / 16.68 MB, free: 5.961 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.349/1.349, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09452/0.09452, allocations: 22.32 MB / 312.9 MB, free: 8.859 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001342/0.001342, allocations: 63.89 kB / 436.5 MB, free: 12.35 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09193/0.09329, allocations: 54.95 MB / 491.5 MB, free: 5.352 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001): time 0.004605/0.09794, allocations: 3.183 MB / 494.7 MB, free: 2.141 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001779/0.09975, allocations: 0.9001 MB / 495.6 MB, free: 1.234 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000305/0.1001, allocations: 4 kB / 495.6 MB, free: 1.23 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002867/0.1004, allocations: 67.3 kB / 495.6 MB, free: 1.164 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005313/0.101, allocations: 182.7 kB / 495.8 MB, free: 0.9844 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006436/0.1016, allocations: 187.7 kB / 496 MB, free: 0.8008 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008202/0.1024, allocations: 0.7561 MB / 496.8 MB, free: 44 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006673/0.1031, allocations: 433.8 kB / 497.2 MB, free: 15.61 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004328/0.1036, allocations: 311 kB / 497.5 MB, free: 15.31 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005589/0.1041, allocations: 394.7 kB / 497.9 MB, free: 14.92 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001607/0.1043, allocations: 76 kB / 498 MB, free: 14.85 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001446/0.1045, allocations: 80 kB / 498 MB, free: 14.77 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002032/0.1047, allocations: 199.4 kB / 498.2 MB, free: 14.57 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000407/0.1051, allocations: 334.5 kB / 498.5 MB, free: 14.25 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008244/0.1059, allocations: 0.8018 MB / 499.4 MB, free: 13.44 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.1059, allocations: 0 / 499.4 MB, free: 13.44 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1059, allocations: 0 / 499.4 MB, free: 13.44 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.455e-05/0.106, allocations: 0 / 499.4 MB, free: 13.44 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.002146/0.1081, allocations: 0.9155 MB / 0.4885 GB, free: 12.48 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.95e-05/0.1082, allocations: 8.031 kB / 0.4885 GB, free: 12.47 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001242/0.1083, allocations: 90.7 kB / 0.4886 GB, free: 12.37 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001475/0.1085, allocations: 68.56 kB / 0.4887 GB, free: 12.3 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00061/0.1091, allocations: 392.3 kB / 0.4891 GB, free: 11.89 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001469/0.1092, allocations: 108.9 kB / 0.4892 GB, free: 11.77 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001225/0.1094, allocations: 56.33 kB / 0.4892 GB, free: 11.71 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001624/0.111, allocations: 0.6817 MB / 0.4899 GB, free: 11.03 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.004e-05/0.111, allocations: 4 kB / 0.4899 GB, free: 11.02 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.345e-05/0.1111, allocations: 27.94 kB / 0.4899 GB, free: 11 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.913e-05/0.1111, allocations: 12 kB / 0.4899 GB, free: 10.98 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00145/0.1126, allocations: 0.5972 MB / 0.4905 GB, free: 10.39 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005397/0.118, allocations: 2.579 MB / 0.493 GB, free: 7.734 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001148/0.1192, allocations: 0.5269 MB / 0.4936 GB, free: 7.199 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008733/0.12, allocations: 405.3 kB / 0.4939 GB, free: 6.801 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.898e-05/0.1201, allocations: 12.91 kB / 0.494 GB, free: 6.789 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.597e-05/0.1201, allocations: 38.97 kB / 0.494 GB, free: 6.742 MB / 382.1 MB Notification: Performance of pre-optimization done (n=46): time 1.993e-06/0.1201, allocations: 0 / 0.494 GB, free: 6.742 MB / 382.1 MB Notification: Performance of matching and sorting (n=50): time 0.00571/0.1259, allocations: 2.169 MB / 0.4961 GB, free: 4.523 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.805e-05/0.1259, allocations: 59.84 kB / 0.4962 GB, free: 4.453 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000405/0.1263, allocations: 361.7 kB / 0.4965 GB, free: 4.09 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.053e-05/0.1264, allocations: 37.64 kB / 0.4965 GB, free: 4.047 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001516/0.1265, allocations: 232.8 kB / 0.4968 GB, free: 3.816 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001623/0.1267, allocations: 190.3 kB / 0.497 GB, free: 3.629 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001891/0.1269, allocations: 94.23 kB / 0.497 GB, free: 3.531 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001444/0.1271, allocations: 354.8 kB / 0.4974 GB, free: 3.176 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008544/0.1279, allocations: 366.7 kB / 0.4977 GB, free: 2.816 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008871/0.1288, allocations: 419.9 kB / 0.4981 GB, free: 2.383 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0067/0.1355, allocations: 1.978 MB / 0.5001 GB, free: 388 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.055e-06/0.1356, allocations: 0 / 0.5001 GB, free: 388 kB / 382.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.1915/0.327, allocations: 0.8398 MB / 0.5009 GB, free: 22.23 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.571e-05/0.3271, allocations: 8.016 kB / 0.5009 GB, free: 22.23 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.797e-06/0.3271, allocations: 2.219 kB / 0.5009 GB, free: 22.23 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.204e-05/0.3271, allocations: 4.094 kB / 0.5009 GB, free: 22.23 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005798/0.3329, allocations: 0.8969 MB / 0.5018 GB, free: 22.23 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.447e-05/0.333, allocations: 3.562 kB / 0.5018 GB, free: 22.23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005285/0.3335, allocations: 59.73 kB / 0.5018 GB, free: 22.23 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.735e-05/0.3336, allocations: 18.41 kB / 0.5019 GB, free: 22.23 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.0003374/0.3339, allocations: 208.5 kB / 0.502 GB, free: 22.12 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.301e-05/0.334, allocations: 45.22 kB / 0.5021 GB, free: 22.12 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00183/0.3358, allocations: 0.8179 MB / 0.5029 GB, free: 22.07 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.211e-06/0.3359, allocations: 5.344 kB / 0.5029 GB, free: 22.07 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.3359, allocations: 0 / 0.5029 GB, free: 22.07 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.592e-06/0.3359, allocations: 4.281 kB / 0.5029 GB, free: 22.07 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003161/0.339, allocations: 1.725 MB / 0.5046 GB, free: 21.71 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.99e-06/0.3391, allocations: 4.969 kB / 0.5046 GB, free: 21.71 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005942/0.345, allocations: 0.8785 MB / 0.5054 GB, free: 21.71 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.112e-06/0.345, allocations: 2.219 kB / 0.5054 GB, free: 21.71 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.421e-05/0.3451, allocations: 18.61 kB / 0.5055 GB, free: 21.71 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.671e-06/0.3451, allocations: 11.81 kB / 0.5055 GB, free: 21.7 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.3451, allocations: 1.094 kB / 0.5055 GB, free: 21.7 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002571/0.3477, allocations: 1.25 MB / 0.5067 GB, free: 21.54 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.383e-05/0.3478, allocations: 119 kB / 0.5068 GB, free: 21.44 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.828e-05/0.3479, allocations: 14.14 kB / 0.5068 GB, free: 21.44 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000508/0.3484, allocations: 56.02 kB / 0.5069 GB, free: 21.44 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001572/0.3486, allocations: 72.64 kB / 0.507 GB, free: 21.44 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.032e-05/0.3486, allocations: 20.94 kB / 0.507 GB, free: 21.43 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002365/0.3488, allocations: 257.5 kB / 0.5072 GB, free: 21.35 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3489, allocations: 3.25 kB / 0.5072 GB, free: 21.35 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004416/0.3493, allocations: 141.6 kB / 0.5074 GB, free: 21.35 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.002734/0.352, allocations: 1.807 MB / 0.5091 GB, free: 20.65 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001779/0.3538, allocations: 0.7808 MB / 0.5099 GB, free: 20.63 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.3538, allocations: 1.625 kB / 0.5099 GB, free: 20.63 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008552/0.3547, allocations: 407.1 kB / 0.5103 GB, free: 20.63 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005547/0.3553, allocations: 112.9 kB / 0.5104 GB, free: 20.62 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01018/0.3655, allocations: 6.083 MB / 0.5163 GB, free: 18.59 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002924/0.3658, allocations: 0.853 MB / 0.5172 GB, free: 17.88 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004141/0.3662, allocations: 91.09 kB / 0.5172 GB, free: 17.87 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003575/0.3666, allocations: 188.5 kB / 0.5174 GB, free: 17.86 MB / 382.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3666, allocations: 0 / 0.5174 GB, free: 17.86 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03083/0.3974, allocations: 12.71 MB / 0.5298 GB, free: 12.76 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.281/8.679, allocations: 6.75 kB / 0.5298 GB, free: 12.76 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)