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/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_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") [/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.1109/0.1109, allocations: 21.44 MB / 36.4 MB, free: 1.223 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.001279/0.001279, allocations: 186 kB / 42.62 MB, free: 3.961 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.639/1.639, allocations: 205.4 MB / 254.1 MB, free: 15.47 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.0009189/0.000919, allocations: 93.09 kB / 307.8 MB, free: 11.32 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002965/0.0002966, allocations: 6.406 kB / 373.2 MB, free: 59.29 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09356/0.09387, allocations: 52.96 MB / 426.2 MB, free: 13.33 MB / 298.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload): time 0.002382/0.0963, allocations: 2.694 MB / 428.9 MB, free: 10.62 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0014/0.09773, allocations: 1.026 MB / 429.9 MB, free: 9.586 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001838/0.09793, allocations: 11.88 kB / 429.9 MB, free: 9.574 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001599/0.0981, allocations: 55.53 kB / 430 MB, free: 9.52 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000238/0.09835, allocations: 171.5 kB / 430.1 MB, free: 9.352 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004985/0.09886, allocations: 135.8 kB / 430.3 MB, free: 9.219 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004091/0.09928, allocations: 464.2 kB / 430.7 MB, free: 8.766 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004299/0.09972, allocations: 341 kB / 431.1 MB, free: 8.43 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002365/0.09997, allocations: 251.3 kB / 431.3 MB, free: 8.184 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003133/0.1003, allocations: 327 kB / 431.6 MB, free: 7.863 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.463e-05/0.1004, allocations: 44 kB / 431.7 MB, free: 7.82 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000136/0.1005, allocations: 75.95 kB / 431.7 MB, free: 7.746 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001029/0.1006, allocations: 159.6 kB / 431.9 MB, free: 7.59 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.277e-05/0.1007, allocations: 129.4 kB / 432 MB, free: 7.457 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003796/0.1011, allocations: 0.5843 MB / 432.6 MB, free: 6.871 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.1011, allocations: 0 / 432.6 MB, free: 6.871 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.1011, allocations: 0 / 432.6 MB, free: 6.871 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.027e-05/0.1011, allocations: 0 / 432.6 MB, free: 6.871 MB / 298.7 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.001576/0.1027, allocations: 0.8028 MB / 433.4 MB, free: 6.02 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.328e-05/0.1028, allocations: 12.03 kB / 433.4 MB, free: 6.008 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001365/0.1029, allocations: 59.34 kB / 433.5 MB, free: 5.949 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005162/0.1034, allocations: 383 kB / 433.9 MB, free: 5.531 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001256/0.1036, allocations: 108.4 kB / 434 MB, free: 5.414 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.947e-05/0.1037, allocations: 63.88 kB / 434 MB, free: 5.352 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001346/0.105, allocations: 0.7091 MB / 434.7 MB, free: 4.637 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.688e-05/0.1051, allocations: 0 / 434.7 MB, free: 4.637 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.594e-05/0.1051, allocations: 20 kB / 434.7 MB, free: 4.617 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.395e-05/0.1052, allocations: 12 kB / 434.8 MB, free: 4.605 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00125/0.1064, allocations: 0.644 MB / 435.4 MB, free: 3.961 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004349/0.1108, allocations: 2.668 MB / 438.1 MB, free: 1.227 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001058/0.1119, allocations: 0.571 MB / 438.6 MB, free: 0.6484 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001655/0.112, allocations: 98.23 kB / 438.7 MB, free: 0.5352 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.222e-05/0.1121, allocations: 35 kB / 438.8 MB, free: 0.4922 MB / 298.7 MB Notification: Performance of pre-optimization done (n=48): time 3.828e-06/0.1121, allocations: 3.938 kB / 438.8 MB, free: 500 kB / 298.7 MB Notification: Performance of matching and sorting (n=52): time 0.005813/0.1179, allocations: 2.354 MB / 441.1 MB, free: 14.09 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.684e-05/0.118, allocations: 55.84 kB / 441.2 MB, free: 14.02 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003952/0.1184, allocations: 353.6 kB / 441.5 MB, free: 13.66 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.346e-05/0.1185, allocations: 33.7 kB / 441.6 MB, free: 13.62 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001808/0.1186, allocations: 228.4 kB / 441.8 MB, free: 13.39 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000171/0.1188, allocations: 181.3 kB / 442 MB, free: 13.21 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.727e-05/0.1189, allocations: 12 kB / 442 MB, free: 13.2 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001556/0.119, allocations: 354.8 kB / 442.3 MB, free: 12.85 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008664/0.1199, allocations: 401.7 kB / 442.7 MB, free: 12.45 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008988/0.1208, allocations: 439.1 kB / 443.1 MB, free: 12 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008792/0.1217, allocations: 400 kB / 443.5 MB, free: 11.61 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.906e-06/0.1217, allocations: 0 / 443.5 MB, free: 11.61 MB / 314.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001989/0.1237, allocations: 0.9045 MB / 444.4 MB, free: 10.7 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.269e-05/0.1238, allocations: 4.094 kB / 444.4 MB, free: 10.7 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.025e-05/0.1238, allocations: 8 kB / 444.4 MB, free: 10.69 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.93e-05/0.1238, allocations: 4 kB / 444.5 MB, free: 10.69 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007526/0.1313, allocations: 1.292 MB / 445.7 MB, free: 9.395 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005282/0.1319, allocations: 0.5976 MB / 446.3 MB, free: 8.773 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006913/0.1326, allocations: 76.02 kB / 446.4 MB, free: 8.699 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.192e-05/0.1327, allocations: 20 kB / 446.4 MB, free: 8.68 MB / 314.7 MB Warning: Assuming fixed start value for the following 5 variables: H.Ec:VARIABLE(flow=false 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: 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): 66 * 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.0004303/0.1331, allocations: 205.1 kB / 446.6 MB, free: 8.473 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.382e-05/0.1332, allocations: 47.44 kB / 446.7 MB, free: 8.426 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002014/0.1352, allocations: 0.8913 MB / 447.6 MB, free: 7.527 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.558e-06/0.1353, allocations: 8 kB / 447.6 MB, free: 7.52 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.638e-06/0.1353, allocations: 0 / 447.6 MB, free: 7.52 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.526e-06/0.1353, allocations: 3.984 kB / 447.6 MB, free: 7.516 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00342/0.1387, allocations: 1.818 MB / 449.4 MB, free: 5.633 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.798e-06/0.1387, allocations: 0 / 449.4 MB, free: 5.633 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007137/0.1459, allocations: 1.292 MB / 450.7 MB, free: 4.34 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.018e-05/0.1459, allocations: 4 kB / 450.7 MB, free: 4.336 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.982e-05/0.146, allocations: 15.98 kB / 450.7 MB, free: 4.32 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003445/0.1463, allocations: 0.5899 MB / 451.3 MB, free: 3.707 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.1463, allocations: 0 / 451.3 MB, free: 3.707 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002759/0.1491, allocations: 1.376 MB / 452.7 MB, free: 2.312 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001261/0.1492, allocations: 116.6 kB / 452.8 MB, free: 2.18 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.168e-05/0.1493, allocations: 12 kB / 452.8 MB, free: 2.168 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000541/0.1499, allocations: 79.86 kB / 452.9 MB, free: 2.09 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001645/0.15, allocations: 72.27 kB / 453 MB, free: 2.02 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.403e-05/0.1501, allocations: 19.98 kB / 453 MB, free: 2 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002812/0.1504, allocations: 251.2 kB / 453.2 MB, free: 1.758 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1504, allocations: 0 / 453.2 MB, free: 1.758 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005332/0.1509, allocations: 144 kB / 453.4 MB, free: 1.617 MB / 314.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: 1 (H.ON) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 51 * 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.0002189/0.1512, allocations: 142.9 kB / 453.5 MB, free: 1.469 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.003032/0.1542, allocations: 0.974 MB / 454.5 MB, free: 496 kB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.1542, allocations: 3.938 kB / 454.5 MB, free: 492 kB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002079/0.1563, allocations: 0.5686 MB / 455 MB, free: 15.91 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004728/0.1568, allocations: 93.5 kB / 455.1 MB, free: 15.82 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0039/0.1607, allocations: 2.118 MB / 457.3 MB, free: 13.67 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004152/0.1611, allocations: 0.8591 MB / 458.1 MB, free: 12.78 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0004597/0.1616, allocations: 104.3 kB / 458.2 MB, free: 12.68 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002133/0.1618, allocations: 43.42 kB / 458.3 MB, free: 12.64 MB / 330.7 MB Notification: Performance of SimCode: time 8.71e-07/0.1618, allocations: 0 / 458.3 MB, free: 12.64 MB / 330.7 MB Notification: Performance of Templates: time 0.01209/0.1739, allocations: 7.256 MB / 465.5 MB, free: 5.383 MB / 330.7 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 -abortSlowSimulation -alarm=480 -lv=LOG_STATS -s=dassl -lv LOG_STATS > AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload.pipe 2>&1)