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.006218/0.006218, allocations: 101.5 kB / 15.73 MB, free: 6.012 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.001364/0.001364, allocations: 196.7 kB / 16.67 MB, free: 5.949 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.35/1.35, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2071/0.2071, allocations: 22.37 MB / 312.9 MB, free: 12.48 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001194/0.001194, allocations: 61.75 kB / 436.6 MB, free: 33.91 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09002/0.09123, allocations: 54.97 MB / 491.5 MB, free: 1.707 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001): time 0.004085/0.09536, allocations: 3.191 MB / 494.7 MB, free: 14.5 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002015/0.09741, allocations: 0.9079 MB / 495.6 MB, free: 13.58 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003261/0.09775, allocations: 4 kB / 495.6 MB, free: 13.58 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002484/0.09804, allocations: 67.34 kB / 495.7 MB, free: 13.51 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004618/0.09851, allocations: 166.7 kB / 495.9 MB, free: 13.35 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000581/0.0991, allocations: 195.6 kB / 496.1 MB, free: 13.16 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007505/0.09986, allocations: 0.7406 MB / 496.8 MB, free: 12.41 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005302/0.1004, allocations: 449.7 kB / 497.2 MB, free: 11.97 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002963/0.1007, allocations: 311.1 kB / 497.5 MB, free: 11.66 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004505/0.1012, allocations: 390.7 kB / 497.9 MB, free: 11.28 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000106/0.1013, allocations: 76 kB / 498 MB, free: 11.21 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001013/0.1014, allocations: 76 kB / 498.1 MB, free: 11.13 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001809/0.1016, allocations: 207.4 kB / 498.3 MB, free: 10.93 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000271/0.1019, allocations: 338.5 kB / 498.6 MB, free: 10.6 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000661/0.1025, allocations: 0.7913 MB / 499.4 MB, free: 9.805 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.1025, allocations: 0 / 499.4 MB, free: 9.805 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.1026, allocations: 4 kB / 499.4 MB, free: 9.801 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.476e-06/0.1026, allocations: 3.938 kB / 499.4 MB, free: 9.797 MB / 366.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.001856/0.1044, allocations: 0.9003 MB / 0.4886 GB, free: 8.848 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.007e-05/0.1045, allocations: 16.03 kB / 0.4886 GB, free: 8.832 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001006/0.1046, allocations: 90.7 kB / 0.4887 GB, free: 8.734 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001119/0.1047, allocations: 60.28 kB / 0.4887 GB, free: 8.676 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005187/0.1052, allocations: 392.1 kB / 0.4891 GB, free: 8.258 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000131/0.1054, allocations: 101 kB / 0.4892 GB, free: 8.148 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001101/0.1055, allocations: 60.36 kB / 0.4893 GB, free: 8.09 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001495/0.107, allocations: 0.6817 MB / 0.4899 GB, free: 7.402 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.795e-05/0.107, allocations: 0 / 0.4899 GB, free: 7.402 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.009e-05/0.1071, allocations: 20 kB / 0.49 GB, free: 7.383 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.212e-05/0.1071, allocations: 12 kB / 0.49 GB, free: 7.371 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001399/0.1085, allocations: 0.6011 MB / 0.4906 GB, free: 6.77 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005244/0.1138, allocations: 2.567 MB / 0.4931 GB, free: 4.129 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001152/0.1149, allocations: 0.5392 MB / 0.4936 GB, free: 3.582 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008696/0.1158, allocations: 397.4 kB / 0.494 GB, free: 3.191 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.059e-05/0.1159, allocations: 8.359 kB / 0.494 GB, free: 3.184 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.899e-05/0.1159, allocations: 38.94 kB / 0.494 GB, free: 3.137 MB / 366.1 MB Notification: Performance of pre-optimization done (n=46): time 2.545e-06/0.1159, allocations: 4 kB / 0.494 GB, free: 3.133 MB / 366.1 MB Notification: Performance of matching and sorting (n=50): time 0.005842/0.1218, allocations: 2.154 MB / 0.4961 GB, free: 0.9297 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.688e-05/0.1219, allocations: 63.78 kB / 0.4962 GB, free: 0.8555 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004146/0.1223, allocations: 361.6 kB / 0.4965 GB, free: 0.4922 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.654e-05/0.1223, allocations: 37.7 kB / 0.4966 GB, free: 460 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001574/0.1225, allocations: 232.4 kB / 0.4968 GB, free: 224 kB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001502/0.1227, allocations: 181.4 kB / 0.497 GB, free: 40 kB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002159/0.1229, allocations: 90.23 kB / 0.497 GB, free: 15.95 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000149/0.123, allocations: 354.8 kB / 0.4974 GB, free: 15.59 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008751/0.1239, allocations: 374.6 kB / 0.4977 GB, free: 15.22 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000888/0.1248, allocations: 411.9 kB / 0.4981 GB, free: 14.8 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006898/0.1317, allocations: 1.977 MB / 0.5001 GB, free: 12.79 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.113e-06/0.1318, allocations: 4 kB / 0.5001 GB, free: 12.79 MB / 382.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.002125/0.1339, allocations: 0.8418 MB / 0.5009 GB, free: 11.94 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.681e-05/0.134, allocations: 8 kB / 0.5009 GB, free: 11.93 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.133e-05/0.134, allocations: 0 / 0.5009 GB, free: 11.93 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.873e-05/0.134, allocations: 4 kB / 0.5009 GB, free: 11.93 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005965/0.14, allocations: 0.9012 MB / 0.5018 GB, free: 11.02 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.89e-05/0.14, allocations: 4 kB / 0.5018 GB, free: 11.02 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005915/0.1406, allocations: 51.94 kB / 0.5018 GB, free: 10.97 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.066e-05/0.1407, allocations: 23.98 kB / 0.5019 GB, free: 10.95 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.0003696/0.1411, allocations: 208 kB / 0.5021 GB, free: 10.73 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001137/0.1412, allocations: 47.47 kB / 0.5021 GB, free: 10.69 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002018/0.1432, allocations: 0.8133 MB / 0.5029 GB, free: 9.867 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.027e-05/0.1433, allocations: 4 kB / 0.5029 GB, free: 9.863 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.676e-06/0.1433, allocations: 7.938 kB / 0.5029 GB, free: 9.855 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.953e-06/0.1433, allocations: 0 / 0.5029 GB, free: 9.855 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003625/0.1469, allocations: 1.747 MB / 0.5046 GB, free: 8.043 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/0.1469, allocations: 4 kB / 0.5046 GB, free: 8.039 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005976/0.1529, allocations: 0.8817 MB / 0.5055 GB, free: 7.156 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.533e-05/0.153, allocations: 4 kB / 0.5055 GB, free: 7.152 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.715e-05/0.153, allocations: 15.98 kB / 0.5055 GB, free: 7.137 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.304e-06/0.153, allocations: 4 kB / 0.5055 GB, free: 7.133 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/0.1531, allocations: 0 / 0.5055 GB, free: 7.133 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002766/0.1558, allocations: 1.25 MB / 0.5067 GB, free: 5.863 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001458/0.156, allocations: 120.5 kB / 0.5068 GB, free: 5.727 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.389e-05/0.1561, allocations: 12 kB / 0.5068 GB, free: 5.715 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005249/0.1566, allocations: 55.94 kB / 0.5069 GB, free: 5.66 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001661/0.1568, allocations: 68.33 kB / 0.507 GB, free: 5.594 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.009e-05/0.1569, allocations: 19.92 kB / 0.507 GB, free: 5.574 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002665/0.1571, allocations: 259.2 kB / 0.5072 GB, free: 5.324 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.1571, allocations: 0 / 0.5072 GB, free: 5.324 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005267/0.1577, allocations: 144 kB / 0.5074 GB, free: 5.184 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.002975/0.1607, allocations: 1.802 MB / 0.5091 GB, free: 3.355 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001888/0.1626, allocations: 0.7787 MB / 0.5099 GB, free: 2.574 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.1626, allocations: 0 / 0.5099 GB, free: 2.574 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009255/0.1635, allocations: 410.7 kB / 0.5103 GB, free: 2.172 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00062/0.1641, allocations: 111.6 kB / 0.5104 GB, free: 2.062 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01094/0.1751, allocations: 6.051 MB / 0.5163 GB, free: 11.89 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004364/0.1756, allocations: 0.8626 MB / 0.5171 GB, free: 11 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004182/0.176, allocations: 92.33 kB / 0.5172 GB, free: 10.91 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003832/0.1764, allocations: 183.4 kB / 0.5174 GB, free: 10.73 MB / 398.1 MB Notification: Performance of SimCode: time 1.042e-06/0.1764, allocations: 0 / 0.5174 GB, free: 10.73 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03376/0.2102, allocations: 12.99 MB / 0.5301 GB, free: 13.91 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.752/8.962, allocations: 7.781 kB / 0.5301 GB, free: 13.9 MB / 414.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_001_fmu --startTime=0 --stopTime=10000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_001.fmu > AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.pipe 2>&1)