Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload.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_control_problems.Storage_management.Storage_tank_01_load_unload,fileNamePrefix="AES_AES_Coursework_ThermSys_control_problems_Storage_management_Storage_tank_01_load_unload",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload,fileNamePrefix="AES_AES_Coursework_ThermSys_control_problems_Storage_management_Storage_tank_01_load_unload",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.004886/0.004887, allocations: 101.3 kB / 15.73 MB, free: 6.035 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.001046/0.001046, allocations: 186.1 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.288/1.288, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2036/0.2036, allocations: 22.35 MB / 312.9 MB, free: 12.47 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002192/0.002192, allocations: 60.03 kB / 436.6 MB, free: 34.04 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.103, allocations: 54.96 MB / 491.5 MB, free: 1.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload): time 0.003718/0.1068, allocations: 3.208 MB / 494.7 MB, free: 14.5 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001495/0.1083, allocations: 0.9118 MB / 495.7 MB, free: 13.58 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001746/0.1085, allocations: 8 kB / 495.7 MB, free: 13.57 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002126/0.1087, allocations: 67.36 kB / 495.7 MB, free: 13.51 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003182/0.109, allocations: 178.6 kB / 495.9 MB, free: 13.33 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000484/0.1095, allocations: 191.7 kB / 496.1 MB, free: 13.14 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006257/0.1102, allocations: 0.7445 MB / 496.8 MB, free: 12.4 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004879/0.1107, allocations: 449.7 kB / 497.3 MB, free: 11.95 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003209/0.111, allocations: 307.1 kB / 497.6 MB, free: 11.65 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004042/0.1114, allocations: 386.7 kB / 498 MB, free: 11.27 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.987e-05/0.1115, allocations: 83.94 kB / 498 MB, free: 11.19 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.584e-05/0.1116, allocations: 76 kB / 498.1 MB, free: 11.12 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002147/0.1118, allocations: 211.4 kB / 498.3 MB, free: 10.91 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002775/0.1121, allocations: 338.5 kB / 498.6 MB, free: 10.58 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006388/0.1128, allocations: 0.7952 MB / 499.4 MB, free: 9.781 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.1128, allocations: 0 / 499.4 MB, free: 9.781 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1128, allocations: 0 / 499.4 MB, free: 9.781 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.084e-05/0.1128, allocations: 0 / 499.4 MB, free: 9.781 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.001717/0.1145, allocations: 0.9043 MB / 0.4886 GB, free: 8.828 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.143e-05/0.1146, allocations: 12.03 kB / 0.4886 GB, free: 8.816 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001004/0.1147, allocations: 90.7 kB / 0.4887 GB, free: 8.719 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000105/0.1148, allocations: 60.28 kB / 0.4888 GB, free: 8.66 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005141/0.1153, allocations: 392.1 kB / 0.4891 GB, free: 8.242 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001213/0.1154, allocations: 112.9 kB / 0.4893 GB, free: 8.121 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.46e-05/0.1155, allocations: 52.38 kB / 0.4893 GB, free: 8.07 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001368/0.1169, allocations: 0.6933 MB / 0.49 GB, free: 7.371 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.778e-05/0.1169, allocations: 4 kB / 0.49 GB, free: 7.367 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.588e-05/0.117, allocations: 24 kB / 0.49 GB, free: 7.344 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.21e-05/0.117, allocations: 12 kB / 0.49 GB, free: 7.332 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001331/0.1184, allocations: 0.6011 MB / 0.4906 GB, free: 6.73 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00463/0.123, allocations: 2.563 MB / 0.4931 GB, free: 4.098 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001127/0.1241, allocations: 0.5436 MB / 0.4936 GB, free: 3.547 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007919/0.125, allocations: 405.9 kB / 0.494 GB, free: 3.148 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.286e-05/0.125, allocations: 12.44 kB / 0.494 GB, free: 3.137 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.11e-05/0.1251, allocations: 42.94 kB / 0.4941 GB, free: 3.086 MB / 366.1 MB Notification: Performance of pre-optimization done (n=48): time 1.874e-06/0.1251, allocations: 0 / 0.4941 GB, free: 3.086 MB / 366.1 MB Notification: Performance of matching and sorting (n=52): time 0.005438/0.1305, allocations: 2.196 MB / 0.4962 GB, free: 0.8359 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.869e-05/0.1306, allocations: 55.84 kB / 0.4963 GB, free: 0.7695 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000457/0.1311, allocations: 357.7 kB / 0.4966 GB, free: 420 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.802e-05/0.1312, allocations: 33.7 kB / 0.4967 GB, free: 380 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000178/0.1313, allocations: 236.4 kB / 0.4969 GB, free: 140 kB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000182/0.1315, allocations: 185.3 kB / 0.4971 GB, free: 15.95 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001902/0.1317, allocations: 94.23 kB / 0.4971 GB, free: 15.86 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000152/0.1319, allocations: 354.8 kB / 0.4975 GB, free: 15.5 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008233/0.1327, allocations: 374.7 kB / 0.4978 GB, free: 15.13 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008219/0.1335, allocations: 415 kB / 0.4982 GB, free: 14.71 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006266/0.1398, allocations: 2 MB / 0.5002 GB, free: 12.69 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.929e-06/0.1399, allocations: 4 kB / 0.5002 GB, free: 12.68 MB / 382.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001839/0.1417, allocations: 0.8496 MB / 0.501 GB, free: 11.82 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.907e-05/0.1417, allocations: 4 kB / 0.501 GB, free: 11.82 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.215e-06/0.1418, allocations: 4.156 kB / 0.501 GB, free: 11.82 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.76e-05/0.1418, allocations: 4 kB / 0.501 GB, free: 11.81 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005219/0.147, allocations: 0.9128 MB / 0.5019 GB, free: 10.9 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.542e-05/0.147, allocations: 4 kB / 0.5019 GB, free: 10.89 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005385/0.1476, allocations: 55.92 kB / 0.502 GB, free: 10.84 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.372e-05/0.1477, allocations: 23.98 kB / 0.502 GB, free: 10.82 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.0003635/0.148, allocations: 203.2 kB / 0.5022 GB, free: 10.61 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.944e-05/0.1481, allocations: 55.36 kB / 0.5023 GB, free: 10.55 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001833/0.15, allocations: 0.8327 MB / 0.5031 GB, free: 9.715 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.951e-06/0.15, allocations: 7.938 kB / 0.5031 GB, free: 9.707 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.15, allocations: 0 / 0.5031 GB, free: 9.707 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.375e-06/0.15, allocations: 7.984 kB / 0.5031 GB, free: 9.699 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003047/0.1531, allocations: 1.728 MB / 0.5048 GB, free: 7.906 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/0.1531, allocations: 0 / 0.5048 GB, free: 7.906 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005322/0.1584, allocations: 0.9012 MB / 0.5056 GB, free: 7.004 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.636e-05/0.1585, allocations: 4 kB / 0.5057 GB, free: 7 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001213/0.1586, allocations: 15.98 kB / 0.5057 GB, free: 6.984 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.834e-06/0.1586, allocations: 4 kB / 0.5057 GB, free: 6.98 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.821e-06/0.1586, allocations: 3.938 kB / 0.5057 GB, free: 6.977 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002715/0.1613, allocations: 1.278 MB / 0.5069 GB, free: 5.676 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002344/0.1616, allocations: 116.6 kB / 0.507 GB, free: 5.543 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.657e-05/0.1617, allocations: 15.98 kB / 0.507 GB, free: 5.527 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005039/0.1622, allocations: 59.92 kB / 0.5071 GB, free: 5.469 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001943/0.1624, allocations: 72.33 kB / 0.5072 GB, free: 5.395 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.972e-05/0.1625, allocations: 20 kB / 0.5072 GB, free: 5.375 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003614/0.1628, allocations: 263.1 kB / 0.5074 GB, free: 5.121 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1628, allocations: 0 / 0.5074 GB, free: 5.121 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005096/0.1634, allocations: 144 kB / 0.5076 GB, free: 4.98 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.002856/0.1662, allocations: 1.833 MB / 0.5094 GB, free: 3.121 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00186/0.1681, allocations: 0.7867 MB / 0.5101 GB, free: 2.328 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.317e-06/0.1681, allocations: 0 / 0.5101 GB, free: 2.328 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008074/0.1689, allocations: 422.4 kB / 0.5105 GB, free: 1.918 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005803/0.1695, allocations: 101.7 kB / 0.5106 GB, free: 1.816 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009585/0.1791, allocations: 5.991 MB / 0.5165 GB, free: 11.71 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003997/0.1795, allocations: 0.8512 MB / 0.5173 GB, free: 10.83 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003932/0.1799, allocations: 96.31 kB / 0.5174 GB, free: 10.73 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003567/0.1803, allocations: 191.4 kB / 0.5176 GB, free: 10.54 MB / 398.1 MB Notification: Performance of SimCode: time 6.11e-07/0.1803, allocations: 0 / 0.5176 GB, free: 10.54 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03367/0.214, allocations: 12.8 MB / 0.5301 GB, free: 13.97 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.905/9.119, allocations: 3.938 kB / 0.5301 GB, free: 13.96 MB / 414.1 MB (rm -f AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload.pipe ; mkfifo AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload.pipe >> ../files/AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_control_problems_Storage_management_Storage_tank_01_load_unload_fmu --startTime=0 --stopTime=20000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_control_problems_Storage_management_Storage_tank_01_load_unload.fmu > AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload.pipe 2>&1)