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: translateModel(AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload") translateModel(AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008379/0.008379, allocations: 99.75 kB / 15.73 MB, free: 6.043 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.001909/0.001909, allocations: 192 kB / 16.67 MB, free: 5.953 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.49/1.49, 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.09313/0.09313, allocations: 22.34 MB / 312.9 MB, free: 8.863 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00199/0.00199, allocations: 59.91 kB / 437.1 MB, free: 11.73 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1269/0.1289, allocations: 54.95 MB / 492 MB, free: 4.727 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload): time 0.004179/0.1332, allocations: 3.206 MB / 495.2 MB, free: 1.492 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001438/0.1346, allocations: 0.9001 MB / 496.1 MB, free: 0.5859 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001382/0.1348, allocations: 4 kB / 496.1 MB, free: 0.582 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001813/0.135, allocations: 71.3 kB / 496.2 MB, free: 0.5117 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003127/0.1353, allocations: 170.7 kB / 496.3 MB, free: 352 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005366/0.1358, allocations: 191.7 kB / 496.5 MB, free: 160 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006933/0.1365, allocations: 0.7561 MB / 497.3 MB, free: 15.4 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005743/0.1371, allocations: 433.8 kB / 497.7 MB, free: 14.97 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002935/0.1374, allocations: 307.1 kB / 498 MB, free: 14.67 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004521/0.1379, allocations: 398.7 kB / 498.4 MB, free: 14.28 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001019/0.138, allocations: 76 kB / 498.5 MB, free: 14.2 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001385/0.1381, allocations: 76 kB / 498.6 MB, free: 14.13 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001947/0.1383, allocations: 211.4 kB / 498.8 MB, free: 13.92 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002918/0.1386, allocations: 338.5 kB / 499.1 MB, free: 13.59 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006925/0.1393, allocations: 0.8017 MB / 499.9 MB, free: 12.79 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.1393, allocations: 0 / 499.9 MB, free: 12.79 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.1394, allocations: 0 / 499.9 MB, free: 12.79 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.538e-06/0.1394, allocations: 0 / 499.9 MB, free: 12.79 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.001746/0.1411, allocations: 0.9154 MB / 0.4891 GB, free: 11.82 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.533e-05/0.1412, allocations: 8.031 kB / 0.4891 GB, free: 11.81 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001181/0.1413, allocations: 64.56 kB / 0.4891 GB, free: 11.75 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004872/0.1418, allocations: 400.4 kB / 0.4895 GB, free: 11.32 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000127/0.1419, allocations: 116.8 kB / 0.4896 GB, free: 11.2 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001007/0.142, allocations: 52.38 kB / 0.4897 GB, free: 11.15 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00198/0.144, allocations: 0.6858 MB / 0.4904 GB, free: 10.46 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.33e-05/0.1441, allocations: 0 / 0.4904 GB, free: 10.46 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.213e-05/0.1442, allocations: 24 kB / 0.4904 GB, free: 10.43 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.609e-05/0.1442, allocations: 8 kB / 0.4904 GB, free: 10.43 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002245/0.1464, allocations: 0.605 MB / 0.491 GB, free: 9.82 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007163/0.1536, allocations: 2.567 MB / 0.4935 GB, free: 7.184 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001804/0.1554, allocations: 0.5436 MB / 0.494 GB, free: 6.633 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001385/0.1568, allocations: 413.9 kB / 0.4944 GB, free: 6.227 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.064e-05/0.1569, allocations: 8.422 kB / 0.4944 GB, free: 6.219 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.198e-05/0.157, allocations: 42.94 kB / 0.4945 GB, free: 6.168 MB / 382.1 MB Notification: Performance of pre-optimization done (n=48): time 2.474e-06/0.157, allocations: 0 / 0.4945 GB, free: 6.168 MB / 382.1 MB Notification: Performance of matching and sorting (n=52): time 0.008582/0.1656, allocations: 2.195 MB / 0.4966 GB, free: 3.918 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.932e-05/0.1656, allocations: 59.84 kB / 0.4967 GB, free: 3.848 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005254/0.1662, allocations: 361.6 kB / 0.497 GB, free: 3.484 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.065e-05/0.1663, allocations: 37.7 kB / 0.497 GB, free: 3.441 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000181/0.1664, allocations: 224.8 kB / 0.4972 GB, free: 3.219 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001867/0.1666, allocations: 198.3 kB / 0.4974 GB, free: 3.023 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002778/0.1669, allocations: 102.2 kB / 0.4975 GB, free: 2.918 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001667/0.1671, allocations: 354.8 kB / 0.4979 GB, free: 2.562 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001297/0.1684, allocations: 374.7 kB / 0.4982 GB, free: 2.195 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001326/0.1698, allocations: 411 kB / 0.4986 GB, free: 1.773 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2637/0.4335, allocations: 2 MB / 0.5006 GB, free: 22.07 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.95e-06/0.4335, allocations: 3.688 kB / 0.5006 GB, free: 22.07 MB / 382.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.002029/0.4356, allocations: 0.8538 MB / 0.5014 GB, free: 22.04 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.241e-05/0.4356, allocations: 8.25 kB / 0.5014 GB, free: 22.04 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.266e-06/0.4356, allocations: 0 / 0.5014 GB, free: 22.04 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.022e-05/0.4357, allocations: 7.562 kB / 0.5014 GB, free: 22.04 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006071/0.4417, allocations: 0.9031 MB / 0.5023 GB, free: 22.04 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.154e-05/0.4418, allocations: 6.172 kB / 0.5023 GB, free: 22.04 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006543/0.4424, allocations: 55.78 kB / 0.5024 GB, free: 22.04 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.177e-05/0.4425, allocations: 24.86 kB / 0.5024 GB, free: 22.04 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.0004139/0.4429, allocations: 206.3 kB / 0.5026 GB, free: 21.92 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001064/0.443, allocations: 45.42 kB / 0.5026 GB, free: 21.92 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002136/0.4452, allocations: 0.8315 MB / 0.5034 GB, free: 21.88 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.087e-06/0.4452, allocations: 9.375 kB / 0.5035 GB, free: 21.88 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/0.4452, allocations: 0 / 0.5035 GB, free: 21.88 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.063e-05/0.4452, allocations: 2.906 kB / 0.5035 GB, free: 21.88 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003262/0.4485, allocations: 1.731 MB / 0.5051 GB, free: 21.52 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.27e-06/0.4485, allocations: 0.6875 kB / 0.5051 GB, free: 21.52 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006243/0.4548, allocations: 0.9001 MB / 0.506 GB, free: 21.51 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.322e-05/0.4548, allocations: 3.531 kB / 0.506 GB, free: 21.51 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.401e-05/0.4549, allocations: 19.5 kB / 0.506 GB, free: 21.51 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.072e-06/0.4549, allocations: 5.406 kB / 0.5061 GB, free: 21.51 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/0.4549, allocations: 0.6562 kB / 0.5061 GB, free: 21.51 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002757/0.4577, allocations: 1.273 MB / 0.5073 GB, free: 21.34 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001092/0.4578, allocations: 124.1 kB / 0.5074 GB, free: 21.25 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.9e-05/0.4579, allocations: 17.09 kB / 0.5074 GB, free: 21.24 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005902/0.4585, allocations: 54 kB / 0.5075 GB, free: 21.24 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001978/0.4587, allocations: 72.2 kB / 0.5076 GB, free: 21.24 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.088e-05/0.4587, allocations: 18.41 kB / 0.5076 GB, free: 21.24 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002884/0.459, allocations: 260.3 kB / 0.5078 GB, free: 21.16 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.459, allocations: 4 kB / 0.5078 GB, free: 21.15 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004882/0.4595, allocations: 144.1 kB / 0.508 GB, free: 21.15 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.0001329/0.4597, allocations: 115.6 kB / 0.5081 GB, free: 21.07 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001865/0.4616, allocations: 0.7872 MB / 0.5088 GB, free: 21.05 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.4616, allocations: 1.656 kB / 0.5088 GB, free: 21.05 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009653/0.4625, allocations: 420 kB / 0.5092 GB, free: 21.05 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005721/0.4631, allocations: 100.2 kB / 0.5093 GB, free: 21.05 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003569/0.4667, allocations: 1.788 MB / 0.5111 GB, free: 20.29 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003511/0.4671, allocations: 0.8529 MB / 0.5119 GB, free: 19.59 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004775/0.4676, allocations: 99.06 kB / 0.512 GB, free: 19.57 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002824/0.4678, allocations: 55.97 kB / 0.5121 GB, free: 19.56 MB / 382.1 MB Notification: Performance of SimCode: time 1.383e-06/0.4678, allocations: 1.469 kB / 0.5121 GB, free: 19.56 MB / 382.1 MB Notification: Performance of Templates: time 0.01476/0.4826, allocations: 8.454 MB / 0.5203 GB, free: 17.08 MB / 382.1 MB make -j1 -f AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload.makefile (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 & ./AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload.pipe 2>&1)