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.001155/0.001155, allocations: 104.3 kB / 16.35 MB, free: 5.824 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.00122/0.00122, allocations: 192.7 kB / 17.29 MB, free: 5.48 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.347/1.347, allocations: 222.9 MB / 241 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09007/0.09007, allocations: 22.33 MB / 313.5 MB, free: 8.891 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001291/0.001291, allocations: 60.89 kB / 382.2 MB, free: 41.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1155/0.1168, allocations: 54.96 MB / 437.2 MB, free: 12.26 MB / 318.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.03236/0.1493, allocations: 22.08 MB / 459.3 MB, free: 6.316 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00137/0.1506, allocations: 418.5 kB / 459.7 MB, free: 5.906 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001853/0.1508, allocations: 11.94 kB / 459.7 MB, free: 5.895 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001103/0.151, allocations: 47.5 kB / 459.7 MB, free: 5.848 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003911/0.1514, allocations: 142.8 kB / 459.9 MB, free: 5.707 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002192/0.1516, allocations: 75.84 kB / 460 MB, free: 5.633 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003902/0.152, allocations: 430 kB / 460.4 MB, free: 5.211 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003642/0.1524, allocations: 239.1 kB / 460.6 MB, free: 4.977 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002213/0.1526, allocations: 179.3 kB / 460.8 MB, free: 4.801 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002386/0.1528, allocations: 183.2 kB / 461 MB, free: 4.621 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.5e-05/0.1529, allocations: 28 kB / 461 MB, free: 4.594 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001236/0.153, allocations: 55.97 kB / 461 MB, free: 4.539 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.05e-05/0.1531, allocations: 75.69 kB / 461.1 MB, free: 4.465 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00016/0.1533, allocations: 175.1 kB / 461.3 MB, free: 4.293 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000398/0.1537, allocations: 414.5 kB / 461.7 MB, free: 3.887 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.1537, allocations: 0 / 461.7 MB, free: 3.887 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.1537, allocations: 0 / 461.7 MB, free: 3.887 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.158e-05/0.1537, allocations: 0 / 461.7 MB, free: 3.887 MB / 334.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.001027/0.1547, allocations: 0.631 MB / 462.3 MB, free: 3.203 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.998e-05/0.1548, allocations: 12.03 kB / 462.3 MB, free: 3.191 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.046e-05/0.1549, allocations: 40.41 kB / 462.4 MB, free: 3.152 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004338/0.1553, allocations: 323.3 kB / 462.7 MB, free: 2.797 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.376e-05/0.1553, allocations: 16.94 kB / 462.7 MB, free: 2.781 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.803e-05/0.1554, allocations: 20.38 kB / 462.7 MB, free: 2.762 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004541/0.1559, allocations: 276.8 kB / 463 MB, free: 2.477 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.471e-05/0.1559, allocations: 4.125 kB / 463 MB, free: 2.473 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.956e-05/0.1559, allocations: 11.94 kB / 463 MB, free: 2.461 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.031e-05/0.1559, allocations: 8 kB / 463 MB, free: 2.453 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003518/0.1563, allocations: 185.7 kB / 463.2 MB, free: 2.27 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001311/0.1576, allocations: 0.9122 MB / 464.1 MB, free: 1.297 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003435/0.158, allocations: 162.8 kB / 464.3 MB, free: 1.129 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001898/0.1582, allocations: 108.8 kB / 464.4 MB, free: 1.02 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.642e-05/0.1582, allocations: 0 / 464.4 MB, free: 1.02 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.43e-05/0.1582, allocations: 38.5 kB / 464.4 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002018/0.1584, allocations: 35.83 kB / 464.5 MB, free: 0.9375 MB / 334.1 MB Notification: Performance of pre-optimization done (n=18): time 1.222e-06/0.1585, allocations: 0 / 464.5 MB, free: 0.9375 MB / 334.1 MB Notification: Performance of matching and sorting (n=18): time 0.001369/0.1598, allocations: 453.1 kB / 464.9 MB, free: 480 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.375e-05/0.1599, allocations: 55.41 kB / 464.9 MB, free: 412 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002694/0.1602, allocations: 296.6 kB / 465.2 MB, free: 100 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.158e-05/0.1602, allocations: 29.7 kB / 465.3 MB, free: 64 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001373/0.1603, allocations: 184.1 kB / 465.4 MB, free: 15.88 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.65e-05/0.1604, allocations: 63.05 kB / 465.5 MB, free: 15.82 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.644e-05/0.1605, allocations: 45.69 kB / 465.6 MB, free: 15.77 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000123/0.1606, allocations: 350.7 kB / 465.9 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001254/0.1607, allocations: 63.97 kB / 466 MB, free: 15.35 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001495/0.1609, allocations: 89.62 kB / 466 MB, free: 15.26 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003877/0.1648, allocations: 0.6993 MB / 466.7 MB, free: 14.55 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.1648, allocations: 4 kB / 466.8 MB, free: 14.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0007699/0.1656, allocations: 301.8 kB / 467 MB, free: 14.25 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.464e-05/0.1656, allocations: 8.031 kB / 467.1 MB, free: 14.24 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.251e-06/0.1656, allocations: 4 kB / 467.1 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007183/0.1663, allocations: 108.8 kB / 467.2 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002524/0.1666, allocations: 47.91 kB / 467.2 MB, free: 14.08 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003778/0.167, allocations: 0.5757 MB / 467.8 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001659/0.1672, allocations: 4 kB / 467.8 MB, free: 13.47 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.517e-05/0.1672, allocations: 12.03 kB / 467.8 MB, free: 13.46 MB / 350.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.0001863/0.1674, allocations: 157.7 kB / 468 MB, free: 13.3 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.776e-05/0.1674, allocations: 31.62 kB / 468 MB, free: 13.27 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008263/0.1683, allocations: 348.6 kB / 468.3 MB, free: 12.92 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.733e-06/0.1683, allocations: 4 kB / 468.3 MB, free: 12.92 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.02e-06/0.1683, allocations: 3.984 kB / 468.3 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.1683, allocations: 0 / 468.3 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001165/0.1695, allocations: 0.7309 MB / 469.1 MB, free: 12.12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.1695, allocations: 0 / 469.1 MB, free: 12.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003317/0.1698, allocations: 43.91 kB / 469.1 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005204/0.1704, allocations: 96.84 kB / 469.2 MB, free: 11.98 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.57e-05/0.1704, allocations: 15.98 kB / 469.2 MB, free: 11.96 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004503/0.1709, allocations: 0.5912 MB / 469.8 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.1709, allocations: 0 / 469.8 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009361/0.1718, allocations: 0.4963 MB / 470.3 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.365e-05/0.1719, allocations: 116.7 kB / 470.4 MB, free: 10.69 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.553e-05/0.172, allocations: 4 kB / 470.4 MB, free: 10.69 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001711/0.1721, allocations: 8 kB / 470.4 MB, free: 10.68 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.199e-05/0.1722, allocations: 20.03 kB / 470.5 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.916e-05/0.1722, allocations: 19.94 kB / 470.5 MB, free: 10.64 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002507/0.1725, allocations: 215.1 kB / 470.7 MB, free: 10.43 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.1725, allocations: 0 / 470.7 MB, free: 10.43 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003445/0.1729, allocations: 75.84 kB / 470.8 MB, free: 10.36 MB / 350.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.0001406/0.173, allocations: 107.2 kB / 470.9 MB, free: 10.25 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00051/0.1735, allocations: 206.7 kB / 471.1 MB, free: 10.05 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.1735, allocations: 0 / 471.1 MB, free: 10.05 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002499/0.1738, allocations: 115.7 kB / 471.2 MB, free: 9.934 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004773/0.1743, allocations: 69.77 kB / 471.2 MB, free: 9.867 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001141/0.1754, allocations: 0.6825 MB / 471.9 MB, free: 9.148 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003526/0.1758, allocations: 0.7832 MB / 472.7 MB, free: 8.34 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001402/0.176, allocations: 46.95 kB / 472.8 MB, free: 8.297 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.757e-05/0.176, allocations: 35.42 kB / 472.8 MB, free: 8.262 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.176, allocations: 0 / 472.8 MB, free: 8.262 MB / 350.1 MB Notification: Performance of Templates: time 0.008192/0.1842, allocations: 4.083 MB / 476.9 MB, free: 4.223 MB / 350.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 -s gbode -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.pipe 2>&1)