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.00743/0.00743, allocations: 99.77 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.001897/0.001897, allocations: 193.5 kB / 16.67 MB, free: 5.93 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.39/1.39, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1033/0.1033, allocations: 22.32 MB / 312.9 MB, free: 8.863 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00286/0.00286, allocations: 63.91 kB / 436.5 MB, free: 12.35 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1162/0.1191, allocations: 54.96 MB / 491.5 MB, free: 5.34 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001): time 0.004337/0.1235, allocations: 3.182 MB / 494.7 MB, free: 2.133 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001556/0.1251, allocations: 0.8963 MB / 495.6 MB, free: 1.23 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001388/0.1252, allocations: 4 kB / 495.6 MB, free: 1.227 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001892/0.1254, allocations: 75.3 kB / 495.7 MB, free: 1.152 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003406/0.1258, allocations: 170.7 kB / 495.8 MB, free: 0.9844 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004979/0.1263, allocations: 183.7 kB / 496 MB, free: 0.8047 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007949/0.1271, allocations: 0.7561 MB / 496.8 MB, free: 48 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006004/0.1277, allocations: 433.8 kB / 497.2 MB, free: 15.62 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003473/0.1281, allocations: 311.1 kB / 497.5 MB, free: 15.31 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005072/0.1286, allocations: 398.6 kB / 497.9 MB, free: 14.92 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001224/0.1287, allocations: 76 kB / 497.9 MB, free: 14.85 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000133/0.1289, allocations: 76 kB / 498 MB, free: 14.77 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000205/0.1291, allocations: 199.5 kB / 498.2 MB, free: 14.58 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003504/0.1294, allocations: 338.5 kB / 498.5 MB, free: 14.25 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008081/0.1302, allocations: 0.7939 MB / 499.3 MB, free: 13.45 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.1303, allocations: 8 kB / 499.4 MB, free: 13.44 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.1303, allocations: 0 / 499.4 MB, free: 13.44 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.286e-05/0.1303, 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.001977/0.1323, allocations: 0.9116 MB / 0.4885 GB, free: 12.48 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.439e-05/0.1323, allocations: 8.031 kB / 0.4885 GB, free: 12.47 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001186/0.1324, allocations: 86.72 kB / 0.4886 GB, free: 12.38 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001247/0.1326, allocations: 72.48 kB / 0.4887 GB, free: 12.31 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005543/0.1331, allocations: 396.3 kB / 0.4891 GB, free: 11.89 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001509/0.1333, allocations: 109 kB / 0.4892 GB, free: 11.77 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001056/0.1334, allocations: 56.27 kB / 0.4892 GB, free: 11.71 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00167/0.1351, allocations: 0.6894 MB / 0.4899 GB, free: 11.02 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.847e-05/0.1351, allocations: 0 / 0.4899 GB, free: 11.02 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.232e-05/0.1352, allocations: 16 kB / 0.4899 GB, free: 11 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.431e-05/0.1352, allocations: 16 kB / 0.4899 GB, free: 10.99 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001579/0.1368, allocations: 0.605 MB / 0.4905 GB, free: 10.38 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00565/0.1424, allocations: 2.571 MB / 0.493 GB, free: 7.738 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001264/0.1437, allocations: 0.5391 MB / 0.4936 GB, free: 7.191 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009574/0.1447, allocations: 401 kB / 0.4939 GB, free: 6.801 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.3e-05/0.1448, allocations: 12.44 kB / 0.494 GB, free: 6.789 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.237e-05/0.1448, allocations: 42.97 kB / 0.494 GB, free: 6.738 MB / 382.1 MB Notification: Performance of pre-optimization done (n=46): time 2.655e-06/0.1448, allocations: 0 / 0.494 GB, free: 6.738 MB / 382.1 MB Notification: Performance of matching and sorting (n=50): time 0.006158/0.151, allocations: 2.162 MB / 0.4961 GB, free: 4.527 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.477e-05/0.1511, allocations: 67.83 kB / 0.4962 GB, free: 4.449 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004275/0.1515, allocations: 357.7 kB / 0.4965 GB, free: 4.09 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.003e-05/0.1515, allocations: 33.7 kB / 0.4965 GB, free: 4.051 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001785/0.1517, allocations: 232.8 kB / 0.4968 GB, free: 3.82 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001841/0.1519, allocations: 194.3 kB / 0.497 GB, free: 3.629 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002102/0.1521, allocations: 94.23 kB / 0.497 GB, free: 3.531 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001827/0.1523, allocations: 350.8 kB / 0.4974 GB, free: 3.18 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000936/0.1533, allocations: 374.7 kB / 0.4977 GB, free: 2.812 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000955/0.1542, allocations: 412 kB / 0.4981 GB, free: 2.387 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007186/0.1614, allocations: 1.977 MB / 0.5001 GB, free: 392 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.1615, allocations: 0 / 0.5001 GB, free: 392 kB / 382.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.1808/0.3422, allocations: 0.8393 MB / 0.5009 GB, free: 22.11 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.109e-05/0.3423, allocations: 9.219 kB / 0.5009 GB, free: 22.11 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.624e-06/0.3423, allocations: 2.094 kB / 0.5009 GB, free: 22.11 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.03e-05/0.3423, allocations: 5.047 kB / 0.5009 GB, free: 22.11 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006021/0.3483, allocations: 0.898 MB / 0.5018 GB, free: 22.11 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.09e-05/0.3484, allocations: 4 kB / 0.5018 GB, free: 22.11 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005163/0.3489, allocations: 59.12 kB / 0.5018 GB, free: 22.11 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.051e-05/0.3489, allocations: 21.19 kB / 0.5019 GB, free: 22.11 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.0002985/0.3492, allocations: 203.1 kB / 0.502 GB, free: 22 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.931e-05/0.3493, allocations: 48.55 kB / 0.5021 GB, free: 22 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001918/0.3513, allocations: 0.8197 MB / 0.5029 GB, free: 21.95 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.219e-06/0.3513, allocations: 4.219 kB / 0.5029 GB, free: 21.95 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.608e-06/0.3513, allocations: 0 / 0.5029 GB, free: 21.95 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.845e-06/0.3513, allocations: 7 kB / 0.5029 GB, free: 21.95 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003188/0.3545, allocations: 1.722 MB / 0.5046 GB, free: 21.58 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.3545, allocations: 0 / 0.5046 GB, free: 21.58 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006136/0.3607, allocations: 0.8853 MB / 0.5055 GB, free: 21.58 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.416e-06/0.3607, allocations: 2.828 kB / 0.5055 GB, free: 21.58 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.075e-05/0.3607, allocations: 21.19 kB / 0.5055 GB, free: 21.58 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.362e-06/0.3608, allocations: 7.469 kB / 0.5055 GB, free: 21.58 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.023e-06/0.3608, allocations: 0.9688 kB / 0.5055 GB, free: 21.58 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002664/0.3634, allocations: 1.249 MB / 0.5067 GB, free: 21.42 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.267e-05/0.3635, allocations: 122 kB / 0.5068 GB, free: 21.32 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.958e-05/0.3636, allocations: 10.88 kB / 0.5068 GB, free: 21.32 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005307/0.3642, allocations: 58.77 kB / 0.5069 GB, free: 21.32 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001833/0.3644, allocations: 72.53 kB / 0.507 GB, free: 21.32 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.985e-05/0.3644, allocations: 20.95 kB / 0.507 GB, free: 21.32 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002472/0.3647, allocations: 257.1 kB / 0.5072 GB, free: 21.23 MB / 382.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3647, allocations: 0 / 0.5072 GB, free: 21.23 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000466/0.3651, allocations: 143.7 kB / 0.5074 GB, free: 21.23 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.002948/0.3681, allocations: 1.801 MB / 0.5091 GB, free: 20.53 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001853/0.37, allocations: 0.7866 MB / 0.5099 GB, free: 20.51 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.37, allocations: 0 / 0.5099 GB, free: 20.51 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009109/0.3709, allocations: 403.8 kB / 0.5103 GB, free: 20.51 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005445/0.3715, allocations: 105.4 kB / 0.5104 GB, free: 20.5 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01059/0.3821, allocations: 6.088 MB / 0.5163 GB, free: 18.47 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003125/0.3824, allocations: 0.8511 MB / 0.5171 GB, free: 17.77 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004356/0.3828, allocations: 91.44 kB / 0.5172 GB, free: 17.75 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003792/0.3832, allocations: 191.2 kB / 0.5174 GB, free: 17.74 MB / 382.1 MB Notification: Performance of SimCode: time 5.51e-07/0.3832, allocations: 0 / 0.5174 GB, free: 17.74 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3431/0.7263, allocations: 12.71 MB / 0.5298 GB, free: 12.66 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.089/9.815, allocations: 4 kB / 0.5298 GB, free: 12.66 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 & /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)