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/AES main/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Running command: translateModel(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001") translateModel(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001") [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HC_SS_case_001.mo:3:1-67:19:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HC_case_001.mo:3:1-55:16:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HNcontrol_HC_SS_case_002.mo:3:1-91:29:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HNcontrol_HC_SS_case_001.mo:3:1-85:29:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.125/0.125, allocations: 21.45 MB / 36.39 MB, free: 1.199 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001528/0.001528, allocations: 182.9 kB / 42.62 MB, free: 3.988 MB / 33.03 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.881/1.881, allocations: 205.4 MB / 254.1 MB, free: 15.23 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001324/0.001324, allocations: 90.92 kB / 307.8 MB, free: 11.07 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003793/0.0003793, allocations: 7.531 kB / 373.2 MB, free: 59.07 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.125/0.1254, allocations: 52.96 MB / 426.2 MB, free: 13.04 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4541/0.5795, allocations: 83.49 MB / 0.4977 GB, free: 17.71 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002804/0.5799, allocations: 77.09 kB / 0.4978 GB, free: 17.71 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02501/0.6049, allocations: 8.327 MB / 0.5059 GB, free: 16.86 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.235e-06/0.6049, allocations: 0 / 0.5059 GB, free: 16.86 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.723e-05/0.605, allocations: 17.28 kB / 0.5059 GB, free: 16.85 MB / 362.7 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.002028/0.607, allocations: 0.8156 MB / 0.5067 GB, free: 16.33 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.067e-05/0.6071, allocations: 12.91 kB / 0.5068 GB, free: 16.33 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002063/0.6073, allocations: 60.44 kB / 0.5068 GB, free: 16.3 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000856/0.6082, allocations: 378.2 kB / 0.5072 GB, free: 16.05 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002128/0.6084, allocations: 114.6 kB / 0.5073 GB, free: 15.98 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001499/0.6086, allocations: 58.78 kB / 0.5073 GB, free: 15.98 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002583/0.6111, allocations: 0.7782 MB / 0.5081 GB, free: 15.91 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.247e-05/0.6112, allocations: 1.375 kB / 0.5081 GB, free: 15.91 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.699e-05/0.6113, allocations: 18.31 kB / 0.5081 GB, free: 15.91 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.86e-05/0.6113, allocations: 18.67 kB / 0.5081 GB, free: 15.9 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001769/0.6131, allocations: 0.6453 MB / 0.5088 GB, free: 15.89 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005891/0.619, allocations: 2.701 MB / 0.5114 GB, free: 15.17 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009783/0.62, allocations: 0.5695 MB / 0.512 GB, free: 15.13 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001653/0.6202, allocations: 88.64 kB / 0.512 GB, free: 15.04 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.115e-05/0.6202, allocations: 46.72 kB / 0.5121 GB, free: 14.99 MB / 362.7 MB Notification: Performance of pre-optimization done (n=46): time 2.184e-06/0.6202, allocations: 0 / 0.5121 GB, free: 14.99 MB / 362.7 MB Notification: Performance of matching and sorting (n=50): time 0.005244/0.6255, allocations: 2.327 MB / 0.5144 GB, free: 14.58 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.023e-05/0.6255, allocations: 54.88 kB / 0.5144 GB, free: 14.51 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004203/0.6259, allocations: 324.7 kB / 0.5147 GB, free: 14.4 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.056e-05/0.626, allocations: 34.7 kB / 0.5148 GB, free: 14.37 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001485/0.6262, allocations: 227.1 kB / 0.515 GB, free: 14.24 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001583/0.6263, allocations: 180.7 kB / 0.5151 GB, free: 14.12 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.786e-05/0.6264, allocations: 16 kB / 0.5152 GB, free: 14.12 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001285/0.6265, allocations: 352.9 kB / 0.5155 GB, free: 13.81 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009208/0.6274, allocations: 393 kB / 0.5159 GB, free: 13.8 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000924/0.6284, allocations: 444.1 kB / 0.5163 GB, free: 13.73 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007785/0.6292, allocations: 379.7 kB / 0.5167 GB, free: 13.71 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.198e-06/0.6292, allocations: 5.703 kB / 0.5167 GB, free: 13.71 MB / 362.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001845/0.631, allocations: 0.907 MB / 0.5176 GB, free: 13.61 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.805e-05/0.6311, allocations: 6.469 kB / 0.5176 GB, free: 13.61 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.478e-06/0.6311, allocations: 3.906 kB / 0.5176 GB, free: 13.61 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.426e-05/0.6311, allocations: 8 kB / 0.5176 GB, free: 13.61 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006626/0.6378, allocations: 1.283 MB / 0.5188 GB, free: 13.54 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003355/0.6381, allocations: 0.5934 MB / 0.5194 GB, free: 12.96 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007377/0.6389, allocations: 77.28 kB / 0.5195 GB, free: 12.95 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.018e-05/0.6389, allocations: 18.5 kB / 0.5195 GB, free: 12.95 MB / 362.7 MB Warning: Assuming fixed start value for the following 5 variables: H.Ec:VARIABLE(fixed = true ) type: Real H.Tfo:VARIABLE(min = 0.0 start = H.Tstart unit = "K" fixed = true nominal = 300.0 ) "outlet fluid temp" type: Real stank.Tcold:VARIABLE(min = 0.0 start = stank.Tcoldstart unit = "K" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) type: Real stank.Thot:VARIABLE(min = 0.0 start = stank.Thotstart unit = "K" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) type: Real stank.lcold:VARIABLE(start = stank.lcoldstart unit = "m" fixed = true stateSelect=StateSelect.prefer ) "cold height" 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): 65 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000425/0.6394, allocations: 206.9 kB / 0.5197 GB, free: 12.81 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.126e-05/0.6395, allocations: 42.81 kB / 0.5197 GB, free: 12.79 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002278/0.6417, allocations: 0.8857 MB / 0.5206 GB, free: 28.72 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.464e-06/0.6418, allocations: 3.875 kB / 0.5206 GB, free: 28.72 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.582e-06/0.6418, allocations: 0 / 0.5206 GB, free: 28.72 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.422e-06/0.6418, allocations: 6.531 kB / 0.5206 GB, free: 28.72 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003199/0.645, allocations: 1.837 MB / 0.5224 GB, free: 28.3 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.477e-06/0.645, allocations: 0 / 0.5224 GB, free: 28.3 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006553/0.6516, allocations: 1.274 MB / 0.5236 GB, free: 28.23 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.656e-05/0.6516, allocations: 0 / 0.5236 GB, free: 28.23 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.74e-05/0.6517, allocations: 19.91 kB / 0.5237 GB, free: 28.23 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004415/0.6521, allocations: 0.5858 MB / 0.5242 GB, free: 27.65 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.6522, allocations: 8.031 kB / 0.5242 GB, free: 27.64 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002618/0.6548, allocations: 1.354 MB / 0.5256 GB, free: 27.43 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002426/0.655, allocations: 123.5 kB / 0.5257 GB, free: 27.31 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.201e-05/0.6551, allocations: 18.42 kB / 0.5257 GB, free: 27.31 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005206/0.6557, allocations: 66.06 kB / 0.5258 GB, free: 27.3 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002206/0.6559, allocations: 75.44 kB / 0.5258 GB, free: 27.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.228e-05/0.656, allocations: 18.73 kB / 0.5259 GB, free: 27.3 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003791/0.6563, allocations: 256.4 kB / 0.5261 GB, free: 27.21 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.6564, allocations: 3.938 kB / 0.5261 GB, free: 27.21 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006511/0.657, allocations: 146.3 kB / 0.5262 GB, free: 27.21 MB / 378.7 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 (50): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002455/0.6573, allocations: 129.2 kB / 0.5264 GB, free: 27.1 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002679/0.66, allocations: 0.9677 MB / 0.5273 GB, free: 27.06 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.66, allocations: 0 / 0.5273 GB, free: 27.06 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001768/0.6617, allocations: 0.5544 MB / 0.5279 GB, free: 27.04 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004514/0.6622, allocations: 92.23 kB / 0.5279 GB, free: 27.03 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004038/0.6663, allocations: 2.199 MB / 0.5301 GB, free: 26 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000427/0.6667, allocations: 0.861 MB / 0.5309 GB, free: 25.29 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004107/0.6671, allocations: 100.8 kB / 0.531 GB, free: 25.27 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002147/0.6673, allocations: 45.84 kB / 0.5311 GB, free: 25.27 MB / 378.7 MB Notification: Performance of SimCode: time 4.4e-07/0.6673, allocations: 0 / 0.5311 GB, free: 25.27 MB / 378.7 MB Notification: Performance of Templates: time 0.01179/0.6791, allocations: 7.164 MB / 0.5381 GB, free: 22.77 MB / 378.7 MB make -j1 -f AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.makefile (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 & ./AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001 -abortSlowSimulation -alarm=480 -lv=LOG_STATS -s=dassl -lv LOG_STATS > AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.pipe 2>&1)