Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.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_003,fileNamePrefix="AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_003",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003,fileNamePrefix="AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_003",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.007061/0.007061, allocations: 101.5 kB / 15.73 MB, free: 6.031 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.001655/0.001655, allocations: 188.6 kB / 16.67 MB, free: 5.969 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.414/1.414, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2277/0.2277, allocations: 22.36 MB / 312.9 MB, free: 12.46 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001377/0.001377, allocations: 62.59 kB / 436.6 MB, free: 34.27 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1094/0.1108, allocations: 54.98 MB / 491.5 MB, free: 1.836 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003): time 0.004045/0.1149, allocations: 3.193 MB / 494.7 MB, free: 14.62 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001954/0.1169, allocations: 0.9041 MB / 495.6 MB, free: 13.71 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003577/0.1173, allocations: 4 kB / 495.6 MB, free: 13.71 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002947/0.1176, allocations: 71.28 kB / 495.7 MB, free: 13.64 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004803/0.1181, allocations: 162.7 kB / 495.9 MB, free: 13.48 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005975/0.1187, allocations: 195.6 kB / 496.1 MB, free: 13.29 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007444/0.1194, allocations: 0.7484 MB / 496.8 MB, free: 12.54 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005623/0.12, allocations: 449.7 kB / 497.3 MB, free: 12.09 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003424/0.1203, allocations: 311.1 kB / 497.6 MB, free: 11.79 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004779/0.1208, allocations: 390.7 kB / 497.9 MB, free: 11.4 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001097/0.121, allocations: 76 kB / 498 MB, free: 11.33 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001084/0.1211, allocations: 80 kB / 498.1 MB, free: 11.25 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001832/0.1213, allocations: 207.4 kB / 498.3 MB, free: 11.05 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003064/0.1216, allocations: 338.6 kB / 498.6 MB, free: 10.71 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006996/0.1223, allocations: 0.7951 MB / 499.4 MB, free: 9.918 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.1223, allocations: 0 / 499.4 MB, free: 9.918 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1223, allocations: 0 / 499.4 MB, free: 9.918 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.929e-06/0.1223, allocations: 0 / 499.4 MB, free: 9.918 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.001905/0.1242, allocations: 0.9042 MB / 0.4886 GB, free: 8.965 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.149e-05/0.1243, allocations: 12.03 kB / 0.4886 GB, free: 8.953 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001152/0.1244, allocations: 94.7 kB / 0.4887 GB, free: 8.852 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001132/0.1245, allocations: 64.27 kB / 0.4888 GB, free: 8.789 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005603/0.1251, allocations: 384.1 kB / 0.4891 GB, free: 8.379 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001347/0.1252, allocations: 116.9 kB / 0.4892 GB, free: 8.254 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.844e-05/0.1253, allocations: 56.36 kB / 0.4893 GB, free: 8.199 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001568/0.1269, allocations: 0.6856 MB / 0.49 GB, free: 7.508 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.036e-05/0.127, allocations: 3.938 kB / 0.49 GB, free: 7.504 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.604e-05/0.127, allocations: 20 kB / 0.49 GB, free: 7.484 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.081e-05/0.127, allocations: 12 kB / 0.49 GB, free: 7.473 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001462/0.1285, allocations: 0.605 MB / 0.4906 GB, free: 6.867 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005047/0.1336, allocations: 2.563 MB / 0.4931 GB, free: 4.234 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001198/0.1348, allocations: 0.5436 MB / 0.4936 GB, free: 3.684 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008991/0.1357, allocations: 409.9 kB / 0.494 GB, free: 3.281 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.993e-05/0.1358, allocations: 4.438 kB / 0.494 GB, free: 3.277 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.3e-05/0.1358, allocations: 46.98 kB / 0.4941 GB, free: 3.223 MB / 366.1 MB Notification: Performance of pre-optimization done (n=48): time 2.294e-06/0.1358, allocations: 0 / 0.4941 GB, free: 3.223 MB / 366.1 MB Notification: Performance of matching and sorting (n=52): time 0.005776/0.1416, allocations: 2.198 MB / 0.4962 GB, free: 0.9688 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.125e-05/0.1417, allocations: 63.84 kB / 0.4963 GB, free: 0.8945 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004146/0.1421, allocations: 349.7 kB / 0.4966 GB, free: 0.543 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.634e-05/0.1421, allocations: 37.7 kB / 0.4966 GB, free: 0.5 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001744/0.1423, allocations: 228.4 kB / 0.4969 GB, free: 280 kB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000174/0.1425, allocations: 185.3 kB / 0.497 GB, free: 92 kB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002355/0.1428, allocations: 98.31 kB / 0.4971 GB, free: 15.98 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001794/0.1429, allocations: 354.8 kB / 0.4975 GB, free: 15.63 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000912/0.1439, allocations: 370.7 kB / 0.4978 GB, free: 15.27 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009377/0.1448, allocations: 411.1 kB / 0.4982 GB, free: 14.84 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006847/0.1517, allocations: 2.004 MB / 0.5002 GB, free: 12.82 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.327e-06/0.1517, allocations: 0 / 0.5002 GB, free: 12.82 MB / 382.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.002054/0.1538, allocations: 0.8536 MB / 0.501 GB, free: 11.96 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.309e-05/0.1538, allocations: 8 kB / 0.501 GB, free: 11.95 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.157e-06/0.1538, allocations: 0 / 0.501 GB, free: 11.95 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.165e-05/0.1538, allocations: 4 kB / 0.501 GB, free: 11.95 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006077/0.1599, allocations: 0.9129 MB / 0.5019 GB, free: 11.03 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.819e-05/0.16, allocations: 4 kB / 0.5019 GB, free: 11.03 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005964/0.1606, allocations: 51.94 kB / 0.502 GB, free: 10.98 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.853e-05/0.1607, allocations: 23.98 kB / 0.502 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: 6 * Number of states: 0 () * Number of discrete variables: 1 (H.ON) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 67 * 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.0003981/0.1611, allocations: 208.8 kB / 0.5022 GB, free: 10.75 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001246/0.1612, allocations: 55.31 kB / 0.5022 GB, free: 10.69 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00208/0.1633, allocations: 0.8328 MB / 0.503 GB, free: 9.852 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.324e-06/0.1633, allocations: 4 kB / 0.5031 GB, free: 9.848 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/0.1633, allocations: 0 / 0.5031 GB, free: 9.848 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.1633, allocations: 0 / 0.5031 GB, free: 9.848 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003551/0.1669, allocations: 1.744 MB / 0.5048 GB, free: 8.043 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.048e-06/0.1669, allocations: 0 / 0.5048 GB, free: 8.043 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006184/0.1731, allocations: 0.9012 MB / 0.5056 GB, free: 7.141 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.73e-05/0.1731, allocations: 7.984 kB / 0.5056 GB, free: 7.133 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.768e-05/0.1732, allocations: 15.98 kB / 0.5057 GB, free: 7.117 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.392e-06/0.1732, allocations: 7.938 kB / 0.5057 GB, free: 7.109 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.1732, allocations: 0 / 0.5057 GB, free: 7.109 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002854/0.1761, allocations: 1.27 MB / 0.5069 GB, free: 5.816 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001783/0.1763, allocations: 116.7 kB / 0.507 GB, free: 5.684 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001101/0.1764, allocations: 23.92 kB / 0.507 GB, free: 5.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005489/0.177, allocations: 51.94 kB / 0.5071 GB, free: 5.609 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001813/0.1772, allocations: 72.33 kB / 0.5072 GB, free: 5.535 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.134e-05/0.1772, allocations: 19.98 kB / 0.5072 GB, free: 5.516 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003317/0.1775, allocations: 259.1 kB / 0.5074 GB, free: 5.266 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1776, allocations: 0 / 0.5074 GB, free: 5.266 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005732/0.1781, allocations: 144 kB / 0.5076 GB, free: 5.125 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: 1 (H.ON) * 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.003274/0.1814, allocations: 1.829 MB / 0.5093 GB, free: 3.27 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00204/0.1835, allocations: 0.7827 MB / 0.5101 GB, free: 2.48 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.1835, allocations: 0 / 0.5101 GB, free: 2.48 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009579/0.1845, allocations: 422.6 kB / 0.5105 GB, free: 2.07 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005998/0.1851, allocations: 107.7 kB / 0.5106 GB, free: 1.965 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01085/0.1959, allocations: 5.983 MB / 0.5165 GB, free: 11.87 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004452/0.1964, allocations: 0.8551 MB / 0.5173 GB, free: 10.98 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004162/0.1968, allocations: 96.33 kB / 0.5174 GB, free: 10.88 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003942/0.1972, allocations: 187.4 kB / 0.5176 GB, free: 10.7 MB / 398.1 MB Notification: Performance of SimCode: time 7.21e-07/0.1973, allocations: 0 / 0.5176 GB, free: 10.7 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03519/0.2325, allocations: 13.08 MB / 0.5303 GB, free: 13.79 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.857/9.089, allocations: 11.23 kB / 0.5303 GB, free: 13.78 MB / 414.1 MB (rm -f AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe ; mkfifo AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe >> ../files/AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_003_fmu --startTime=0 --stopTime=20000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_003.fmu > AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe 2>&1)