Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.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_component_models.HeatExchanger_1vol_case_003,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003") translateModel(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005578/0.005578, allocations: 101.1 kB / 15.73 MB, free: 6.039 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.001121/0.001121, allocations: 190.4 kB / 16.67 MB, free: 5.977 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.426/1.426, allocations: 222.9 MB / 240.4 MB, free: 4.188 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2028/0.2028, allocations: 22.35 MB / 312.9 MB, free: 12.43 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00124/0.00124, allocations: 67.14 kB / 437.1 MB, free: 33.8 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1324/0.1337, allocations: 54.97 MB / 492 MB, free: 1.215 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Liquid/HE_LiquidLiquid_1vol.mo:4:3-4:45:writable] Warning: An inner declaration for outer component system could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Liquid/HE_LiquidLiquid_1vol.mo:4:3-4:45:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer "system" component but an inner "system" component is not defined. Drag AES.ProcessComponents.Thermal.System_settings.System_liquid into your model to specify the working fluid properties. Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003): time 0.03263/0.1664, allocations: 22.36 MB / 0.5023 GB, free: 10.98 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001647/0.168, allocations: 418.5 kB / 0.5027 GB, free: 10.57 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002096/0.1683, allocations: 11.94 kB / 0.5027 GB, free: 10.56 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001304/0.1684, allocations: 47.5 kB / 0.5028 GB, free: 10.52 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004638/0.1689, allocations: 150.8 kB / 0.5029 GB, free: 10.37 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002237/0.1691, allocations: 75.84 kB / 0.503 GB, free: 10.29 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003865/0.1695, allocations: 430 kB / 0.5034 GB, free: 9.871 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003685/0.1699, allocations: 254.9 kB / 0.5037 GB, free: 9.621 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002535/0.1701, allocations: 199.3 kB / 0.5038 GB, free: 9.426 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002298/0.1704, allocations: 179.3 kB / 0.504 GB, free: 9.25 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.582e-05/0.1705, allocations: 31.94 kB / 0.504 GB, free: 9.219 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001235/0.1706, allocations: 59.97 kB / 0.5041 GB, free: 9.16 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.127e-05/0.1707, allocations: 67.7 kB / 0.5042 GB, free: 9.094 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001657/0.1708, allocations: 183.1 kB / 0.5043 GB, free: 8.914 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004027/0.1713, allocations: 398.6 kB / 0.5047 GB, free: 8.523 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.1713, allocations: 0 / 0.5047 GB, free: 8.523 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.1713, allocations: 0 / 0.5047 GB, free: 8.523 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.416e-06/0.1713, allocations: 0 / 0.5047 GB, free: 8.523 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: 57 * Number of variables: 57 Notification: Performance of Generate backend data structure: time 0.001123/0.1724, allocations: 0.635 MB / 0.5053 GB, free: 7.836 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.896e-05/0.1725, allocations: 8.031 kB / 0.5054 GB, free: 7.828 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.227e-05/0.1726, allocations: 36.47 kB / 0.5054 GB, free: 7.793 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004055/0.173, allocations: 327.3 kB / 0.5057 GB, free: 7.434 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.387e-05/0.173, allocations: 24.88 kB / 0.5057 GB, free: 7.41 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.841e-05/0.1731, allocations: 24.38 kB / 0.5057 GB, free: 7.387 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004503/0.1735, allocations: 264.8 kB / 0.506 GB, free: 7.113 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.158e-05/0.1735, allocations: 4.125 kB / 0.506 GB, free: 7.109 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.826e-05/0.1736, allocations: 11.94 kB / 0.506 GB, free: 7.098 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.967e-06/0.1736, allocations: 8 kB / 0.506 GB, free: 7.09 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003693/0.174, allocations: 197.6 kB / 0.5062 GB, free: 6.898 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001411/0.1754, allocations: 0.9005 MB / 0.5071 GB, free: 5.93 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003942/0.1758, allocations: 170.5 kB / 0.5073 GB, free: 5.754 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002109/0.176, allocations: 100.9 kB / 0.5073 GB, free: 5.652 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.55e-05/0.1761, allocations: 0 / 0.5073 GB, free: 5.652 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.604e-05/0.1761, allocations: 42.5 kB / 0.5074 GB, free: 5.602 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002054/0.1763, allocations: 39.81 kB / 0.5074 GB, free: 5.562 MB / 382.1 MB Notification: Performance of pre-optimization done (n=18): time 1.542e-06/0.1763, allocations: 0 / 0.5074 GB, free: 5.562 MB / 382.1 MB Notification: Performance of matching and sorting (n=18): time 0.001466/0.1778, allocations: 445.2 kB / 0.5079 GB, free: 5.102 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.232e-05/0.1779, allocations: 55.41 kB / 0.5079 GB, free: 5.035 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003228/0.1782, allocations: 300.5 kB / 0.5082 GB, free: 4.73 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.113e-05/0.1782, allocations: 37.7 kB / 0.5082 GB, free: 4.688 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001334/0.1784, allocations: 180.1 kB / 0.5084 GB, free: 4.508 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.88e-05/0.1784, allocations: 59.11 kB / 0.5085 GB, free: 4.449 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.844e-05/0.1785, allocations: 49.69 kB / 0.5085 GB, free: 4.395 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001513/0.1787, allocations: 338.8 kB / 0.5088 GB, free: 4.055 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001272/0.1788, allocations: 63.97 kB / 0.5089 GB, free: 3.992 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001408/0.1789, allocations: 85.67 kB / 0.509 GB, free: 3.902 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003856/0.1828, allocations: 0.6973 MB / 0.5096 GB, free: 3.203 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.165e-06/0.1828, allocations: 0 / 0.5096 GB, free: 3.203 MB / 382.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0007722/0.1836, allocations: 313.8 kB / 0.5099 GB, free: 2.887 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.991e-05/0.1836, allocations: 4 kB / 0.51 GB, free: 2.883 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.338e-06/0.1836, allocations: 4 kB / 0.51 GB, free: 2.879 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007613/0.1844, allocations: 104.8 kB / 0.5101 GB, free: 2.773 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002521/0.1847, allocations: 51.91 kB / 0.5101 GB, free: 2.723 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000421/0.1851, allocations: 0.5757 MB / 0.5107 GB, free: 2.121 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001627/0.1853, allocations: 7.984 kB / 0.5107 GB, free: 2.113 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.365e-05/0.1853, allocations: 11.98 kB / 0.5107 GB, free: 2.102 MB / 382.1 MB Warning: Assuming fixed start value for the following 2 variables: HE.Tho:VARIABLE(min = 0.0 start = 339.5666268514094 unit = "K" fixed = true nominal = 300.0 ) type: Real HE.Tco:VARIABLE(min = 0.0 start = 299.958408982322 unit = "K" fixed = true nominal = 300.0 ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0002187/0.1855, allocations: 150.5 kB / 0.5108 GB, free: 1.945 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.939e-05/0.1856, allocations: 31.61 kB / 0.5109 GB, free: 1.914 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008539/0.1865, allocations: 348.7 kB / 0.5112 GB, free: 1.566 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.751e-06/0.1865, allocations: 4 kB / 0.5112 GB, free: 1.562 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.96e-06/0.1865, allocations: 7.938 kB / 0.5112 GB, free: 1.555 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.021e-06/0.1865, allocations: 3.984 kB / 0.5112 GB, free: 1.551 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001182/0.1877, allocations: 0.7362 MB / 0.5119 GB, free: 0.75 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.1877, allocations: 0 / 0.5119 GB, free: 0.75 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002388/0.188, allocations: 43.92 kB / 0.512 GB, free: 0.707 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005301/0.1885, allocations: 96.83 kB / 0.5121 GB, free: 0.6094 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.125e-05/0.1885, allocations: 8 kB / 0.5121 GB, free: 0.6016 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004083/0.1889, allocations: 0.5952 MB / 0.5127 GB, free: 15.98 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.367e-06/0.189, allocations: 3.984 kB / 0.5127 GB, free: 15.98 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009787/0.1899, allocations: 0.5031 MB / 0.5131 GB, free: 15.45 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.954e-05/0.19, allocations: 104.8 kB / 0.5132 GB, free: 15.33 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.967e-05/0.1901, allocations: 7.984 kB / 0.5133 GB, free: 15.32 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001709/0.1903, allocations: 8 kB / 0.5133 GB, free: 15.31 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.805e-05/0.1903, allocations: 15.98 kB / 0.5133 GB, free: 15.3 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.122e-05/0.1904, allocations: 15.98 kB / 0.5133 GB, free: 15.28 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002325/0.1906, allocations: 219.1 kB / 0.5135 GB, free: 15.07 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1906, allocations: 0 / 0.5135 GB, free: 15.07 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003577/0.191, allocations: 71.84 kB / 0.5136 GB, free: 15 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (HE.Tho,HE.Tco) * 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 (21): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001763/0.1911, allocations: 111.2 kB / 0.5137 GB, free: 14.88 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005468/0.1917, allocations: 201 kB / 0.5139 GB, free: 14.68 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.1917, allocations: 0 / 0.5139 GB, free: 14.68 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002844/0.192, allocations: 127.6 kB / 0.514 GB, free: 14.56 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004564/0.1925, allocations: 65.23 kB / 0.5141 GB, free: 14.5 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001322/0.1938, allocations: 0.6862 MB / 0.5147 GB, free: 13.78 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003788/0.1942, allocations: 0.7717 MB / 0.5155 GB, free: 12.98 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001964/0.1944, allocations: 50.94 kB / 0.5155 GB, free: 12.93 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.815e-05/0.1945, allocations: 27.44 kB / 0.5155 GB, free: 12.9 MB / 398.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1945, allocations: 0 / 0.5155 GB, free: 12.9 MB / 398.1 MB Notification: Performance of Templates: time 0.009174/0.2037, allocations: 4.134 MB / 0.5196 GB, free: 8.793 MB / 398.1 MB make -j1 -f AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.makefile (rm -f AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.sim & ./AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.pipe 2>&1)