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.001039/0.001039, allocations: 108.2 kB / 16.42 MB, free: 5.953 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.001022/0.001022, allocations: 192.7 kB / 17.35 MB, free: 5.574 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.314/1.314, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09333/0.09333, allocations: 22.32 MB / 313.5 MB, free: 8.867 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002397/0.002398, allocations: 63.91 kB / 437.7 MB, free: 11.73 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09107/0.09349, allocations: 54.95 MB / 492.7 MB, free: 4.73 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload): time 0.004195/0.09772, allocations: 3.213 MB / 495.9 MB, free: 1.492 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00175/0.0995, allocations: 0.9041 MB / 496.8 MB, free: 0.582 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002674/0.09979, allocations: 4 kB / 496.8 MB, free: 0.5781 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002317/0.1, allocations: 71.28 kB / 496.9 MB, free: 0.5078 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000447/0.1005, allocations: 178.7 kB / 497.1 MB, free: 340 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005602/0.1011, allocations: 191.7 kB / 497.2 MB, free: 148 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000832/0.1019, allocations: 0.7561 MB / 498 MB, free: 15.39 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006192/0.1025, allocations: 429.8 kB / 498.4 MB, free: 14.96 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000407/0.103, allocations: 315 kB / 498.7 MB, free: 14.65 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000541/0.1035, allocations: 390.7 kB / 499.1 MB, free: 14.27 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001393/0.1037, allocations: 83.94 kB / 499.2 MB, free: 14.19 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001424/0.1038, allocations: 80 kB / 499.3 MB, free: 14.11 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001911/0.104, allocations: 203.5 kB / 499.5 MB, free: 13.91 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003607/0.1044, allocations: 338.5 kB / 499.8 MB, free: 13.58 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000774/0.1052, allocations: 0.7979 MB / 0.4889 GB, free: 12.78 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.1052, allocations: 0 / 0.4889 GB, free: 12.78 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1052, allocations: 0 / 0.4889 GB, free: 12.78 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.194e-05/0.1052, allocations: 0 / 0.4889 GB, free: 12.78 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.002068/0.1073, allocations: 0.9154 MB / 0.4898 GB, free: 11.81 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.503e-05/0.1073, allocations: 8.031 kB / 0.4898 GB, free: 11.8 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001375/0.1075, allocations: 64.56 kB / 0.4898 GB, free: 11.74 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005241/0.108, allocations: 400.3 kB / 0.4902 GB, free: 11.32 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001335/0.1081, allocations: 108.9 kB / 0.4903 GB, free: 11.2 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001019/0.1083, allocations: 52.36 kB / 0.4904 GB, free: 11.15 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001629/0.1099, allocations: 0.6858 MB / 0.491 GB, free: 10.46 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.843e-05/0.1099, allocations: 4 kB / 0.491 GB, free: 10.45 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.032e-05/0.11, allocations: 20 kB / 0.4911 GB, free: 10.43 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.121e-05/0.11, allocations: 12 kB / 0.4911 GB, free: 10.42 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001516/0.1115, allocations: 0.605 MB / 0.4917 GB, free: 9.816 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005075/0.1166, allocations: 2.571 MB / 0.4942 GB, free: 7.176 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001256/0.1179, allocations: 0.5436 MB / 0.4947 GB, free: 6.625 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009163/0.1188, allocations: 413.9 kB / 0.4951 GB, free: 6.219 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.284e-05/0.1189, allocations: 4.438 kB / 0.4951 GB, free: 6.215 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.918e-05/0.1189, allocations: 46.92 kB / 0.4951 GB, free: 6.16 MB / 382.1 MB Notification: Performance of pre-optimization done (n=48): time 2.044e-06/0.1189, allocations: 3.938 kB / 0.4951 GB, free: 6.156 MB / 382.1 MB Notification: Performance of matching and sorting (n=52): time 0.00592/0.1249, allocations: 2.199 MB / 0.4973 GB, free: 3.902 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.981e-05/0.1249, allocations: 55.84 kB / 0.4973 GB, free: 3.836 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003953/0.1253, allocations: 357.6 kB / 0.4977 GB, free: 3.477 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.231e-05/0.1254, allocations: 41.69 kB / 0.4977 GB, free: 3.43 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001479/0.1255, allocations: 228.8 kB / 0.4979 GB, free: 3.203 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001511/0.1257, allocations: 190.3 kB / 0.4981 GB, free: 3.016 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001993/0.1259, allocations: 106.2 kB / 0.4982 GB, free: 2.906 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001327/0.126, allocations: 350.8 kB / 0.4986 GB, free: 2.555 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00092/0.1269, allocations: 382.6 kB / 0.4989 GB, free: 2.18 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009149/0.1279, allocations: 407.1 kB / 0.4993 GB, free: 1.762 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.188/0.3159, allocations: 2.002 MB / 0.5013 GB, free: 22.07 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.3159, allocations: 0 / 0.5013 GB, free: 22.07 MB / 382.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001892/0.3178, allocations: 0.8506 MB / 0.5021 GB, free: 22.04 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.647e-05/0.3178, allocations: 10.38 kB / 0.5021 GB, free: 22.04 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.3178, allocations: 1.594 kB / 0.5021 GB, free: 22.04 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.967e-05/0.3179, allocations: 3.844 kB / 0.5021 GB, free: 22.04 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006191/0.3241, allocations: 0.9088 MB / 0.503 GB, free: 22.04 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.03e-05/0.3241, allocations: 8.469 kB / 0.503 GB, free: 22.04 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005335/0.3246, allocations: 54.84 kB / 0.5031 GB, free: 22.04 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.025e-05/0.3247, allocations: 20.5 kB / 0.5031 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.0002914/0.325, allocations: 199.5 kB / 0.5033 GB, free: 21.92 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.896e-05/0.3251, allocations: 48.22 kB / 0.5033 GB, free: 21.92 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001958/0.327, allocations: 0.8334 MB / 0.5041 GB, free: 21.88 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/0.3271, allocations: 5.797 kB / 0.5041 GB, free: 21.88 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.3271, allocations: 0 / 0.5041 GB, free: 21.88 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.701e-05/0.3271, allocations: 120 kB / 0.5043 GB, free: 21.78 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.986e-05/0.3272, allocations: 19.83 kB / 0.5043 GB, free: 21.78 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005334/0.3278, allocations: 50.53 kB / 0.5043 GB, free: 21.78 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001636/0.328, allocations: 77.05 kB / 0.5044 GB, free: 21.78 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.00672/0.3347, allocations: 1.487 MB / 0.5058 GB, free: 21.66 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002784/0.3375, allocations: 1.36 MB / 0.5072 GB, free: 21.44 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0008743/0.3384, allocations: 393.7 kB / 0.5075 GB, free: 21.43 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002474/0.3386, allocations: 257.6 kB / 0.5078 GB, free: 21.35 MB / 382.1 MB Notification: Performance of Backend: time 1.91e-07/0.3386, allocations: 0 / 0.5078 GB, free: 21.35 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001613/0.3402, allocations: 0.5519 MB / 0.5083 GB, free: 21.28 MB / 382.1 MB Notification: Performance of SimCode: time 0.002217/0.3425, allocations: 1.806 MB / 0.5101 GB, free: 20.07 MB / 382.1 MB Notification: Performance of Templates: time 0.01608/0.3586, allocations: 9.928 MB / 0.5198 GB, free: 17.32 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)