Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.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_001,tolerance=1e-06,outputFormat="empty",numberOfIntervals=200,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001") translateModel(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001,tolerance=1e-06,outputFormat="empty",numberOfIntervals=200,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00704/0.007041, allocations: 105 kB / 15.74 MB, free: 6.035 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.001229/0.001229, allocations: 196 kB / 16.67 MB, free: 5.969 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.375/1.375, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2419/0.2419, allocations: 22.35 MB / 312.9 MB, free: 12.46 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001266/0.001266, allocations: 65.59 kB / 437.1 MB, free: 33.86 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1358/0.1371, allocations: 54.96 MB / 492 MB, free: 1.188 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Interfaces/flowOnePort_pwh.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/Interfaces/flowOnePort_pwh.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_001): time 0.03394/0.1711, allocations: 21.85 MB / 0.5018 GB, free: 11.46 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008901/0.172, allocations: 215.2 kB / 0.502 GB, free: 11.25 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001646/0.1722, allocations: 15.94 kB / 0.5021 GB, free: 11.23 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001062/0.1723, allocations: 31.7 kB / 0.5021 GB, free: 11.2 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002495/0.1726, allocations: 99.17 kB / 0.5022 GB, free: 11.11 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001731/0.1727, allocations: 35.95 kB / 0.5022 GB, free: 11.07 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003204/0.1731, allocations: 290.6 kB / 0.5025 GB, free: 10.78 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003013/0.1734, allocations: 153.3 kB / 0.5026 GB, free: 10.63 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000226/0.1736, allocations: 135.5 kB / 0.5028 GB, free: 10.5 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001752/0.1738, allocations: 103.4 kB / 0.5029 GB, free: 10.39 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.393e-05/0.1738, allocations: 19.94 kB / 0.5029 GB, free: 10.38 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.089e-05/0.1739, allocations: 16 kB / 0.5029 GB, free: 10.36 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.24e-05/0.1739, allocations: 35.84 kB / 0.5029 GB, free: 10.32 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001178/0.1741, allocations: 111.4 kB / 0.503 GB, free: 10.21 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002768/0.1743, allocations: 227 kB / 0.5033 GB, free: 9.992 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.663e-06/0.1743, allocations: 3.984 kB / 0.5033 GB, free: 9.988 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1744, allocations: 0 / 0.5033 GB, free: 9.988 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.395e-05/0.1744, allocations: 0 / 0.5033 GB, free: 9.988 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: 39 * Number of variables: 39 Notification: Performance of Generate backend data structure: time 0.000788/0.1752, allocations: 0.5143 MB / 0.5038 GB, free: 9.418 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.847e-05/0.1752, allocations: 8.031 kB / 0.5038 GB, free: 9.41 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.159e-05/0.1753, allocations: 24.66 kB / 0.5038 GB, free: 9.387 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003484/0.1756, allocations: 275.4 kB / 0.5041 GB, free: 9.078 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.882e-05/0.1757, allocations: 16.7 kB / 0.5041 GB, free: 9.062 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.52e-05/0.1757, allocations: 16.38 kB / 0.5041 GB, free: 9.047 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003725/0.1761, allocations: 196.6 kB / 0.5043 GB, free: 8.836 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.068e-05/0.1761, allocations: 4.172 kB / 0.5043 GB, free: 8.832 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.317e-05/0.1761, allocations: 11.94 kB / 0.5043 GB, free: 8.82 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.578e-06/0.1762, allocations: 4 kB / 0.5043 GB, free: 8.816 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002974/0.1765, allocations: 124.6 kB / 0.5044 GB, free: 8.695 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009656/0.1774, allocations: 0.8482 MB / 0.5052 GB, free: 7.781 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001889/0.1776, allocations: 78.55 kB / 0.5053 GB, free: 7.695 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000131/0.1778, allocations: 60.83 kB / 0.5054 GB, free: 7.633 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.644e-05/0.1778, allocations: 4 kB / 0.5054 GB, free: 7.629 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.8e-05/0.1778, allocations: 34.56 kB / 0.5054 GB, free: 7.586 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 1.242e-06/0.1778, allocations: 3.938 kB / 0.5054 GB, free: 7.582 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004862/0.1783, allocations: 181.6 kB / 0.5056 GB, free: 7.398 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.04e-05/0.1784, allocations: 51.41 kB / 0.5056 GB, free: 7.336 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000209/0.1786, allocations: 225 kB / 0.5059 GB, free: 7.105 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.129e-05/0.1786, allocations: 25.7 kB / 0.5059 GB, free: 7.074 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001068/0.1787, allocations: 148.2 kB / 0.506 GB, free: 6.922 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.865e-05/0.1788, allocations: 51.2 kB / 0.5061 GB, free: 6.871 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.389e-05/0.1789, allocations: 33.7 kB / 0.5061 GB, free: 6.832 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000122/0.179, allocations: 334.8 kB / 0.5064 GB, free: 6.496 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000116/0.1791, allocations: 35.98 kB / 0.5065 GB, free: 6.461 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001244/0.1792, allocations: 66.55 kB / 0.5065 GB, free: 6.387 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007909/0.18, allocations: 221.1 kB / 0.5067 GB, free: 6.164 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.1801, allocations: 0 / 0.5067 GB, free: 6.164 MB / 382.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003442/0.1804, allocations: 169.2 kB / 0.5069 GB, free: 5.988 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.07e-05/0.1804, allocations: 4 kB / 0.5069 GB, free: 5.984 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.59e-06/0.1805, allocations: 0 / 0.5069 GB, free: 5.984 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.774e-05/0.1805, allocations: 4 kB / 0.5069 GB, free: 5.98 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002107/0.1807, allocations: 43.84 kB / 0.5069 GB, free: 5.938 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.085e-06/0.1807, allocations: 4.062 kB / 0.5069 GB, free: 5.934 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001129/0.1808, allocations: 15.84 kB / 0.507 GB, free: 5.918 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.345e-05/0.1809, allocations: 4 kB / 0.507 GB, free: 5.914 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: 3 * 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 (18): * Single equations (assignments): 18 * 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.0002006/0.1811, allocations: 142.2 kB / 0.5071 GB, free: 5.766 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.39e-05/0.1811, allocations: 19.72 kB / 0.5071 GB, free: 5.746 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.863e-05/0.1812, allocations: 29.84 kB / 0.5071 GB, free: 5.715 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.1812, allocations: 0 / 0.5071 GB, free: 5.715 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.1812, allocations: 0 / 0.5071 GB, free: 5.715 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.803e-06/0.1812, allocations: 3.984 kB / 0.5072 GB, free: 5.711 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002863/0.1815, allocations: 269.4 kB / 0.5074 GB, free: 5.398 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.524e-06/0.1815, allocations: 3.984 kB / 0.5074 GB, free: 5.395 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002009/0.1817, allocations: 27.98 kB / 0.5074 GB, free: 5.367 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.1817, allocations: 0 / 0.5074 GB, free: 5.367 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.485e-05/0.1817, allocations: 4 kB / 0.5074 GB, free: 5.363 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.1817, allocations: 0 / 0.5074 GB, free: 5.363 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.1818, allocations: 4 kB / 0.5074 GB, free: 5.359 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005156/0.1823, allocations: 313 kB / 0.5077 GB, free: 5.039 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.551e-05/0.1824, allocations: 96.86 kB / 0.5078 GB, free: 4.926 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.369e-05/0.1824, allocations: 0 / 0.5078 GB, free: 4.926 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001244/0.1826, allocations: 7.984 kB / 0.5078 GB, free: 4.918 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.211e-05/0.1826, allocations: 16.05 kB / 0.5079 GB, free: 4.902 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.256e-06/0.1826, allocations: 4 kB / 0.5079 GB, free: 4.898 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001486/0.1828, allocations: 168.5 kB / 0.508 GB, free: 4.734 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1828, allocations: 0 / 0.508 GB, free: 4.734 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003058/0.1831, allocations: 43.94 kB / 0.5081 GB, free: 4.691 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (14): * Single equations (assignments): 14 * 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.0001136/0.1832, allocations: 99.23 kB / 0.5082 GB, free: 4.586 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003332/0.1836, allocations: 112 kB / 0.5083 GB, free: 4.477 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.1836, allocations: 0 / 0.5083 GB, free: 4.477 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001243/0.1837, allocations: 63.91 kB / 0.5083 GB, free: 4.414 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003594/0.1841, allocations: 48.33 kB / 0.5084 GB, free: 4.363 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00104/0.1851, allocations: 0.5506 MB / 0.5089 GB, free: 3.785 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003284/0.1855, allocations: 0.7401 MB / 0.5096 GB, free: 3.02 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000111/0.1856, allocations: 30.28 kB / 0.5097 GB, free: 2.992 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.983e-05/0.1856, allocations: 19.44 kB / 0.5097 GB, free: 2.977 MB / 382.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1857, allocations: 4 kB / 0.5097 GB, free: 2.973 MB / 382.1 MB Notification: Performance of Templates: time 0.006174/0.1918, allocations: 2.426 MB / 0.5121 GB, free: 0.5703 MB / 382.1 MB make -j1 -f AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.makefile (rm -f AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.sim & ./AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.pipe 2>&1)