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: "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_003",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_003",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005746/0.005746, allocations: 102 kB / 15.73 MB, free: 6.051 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.001331/0.001331, allocations: 195 kB / 16.68 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.425/1.425, allocations: 222.9 MB / 240.4 MB, free: 4.125 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2515/0.2515, allocations: 22.37 MB / 312.9 MB, free: 12.43 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001358/0.001358, allocations: 64.19 kB / 436.6 MB, free: 33.93 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.121/0.1224, allocations: 54.98 MB / 491.6 MB, free: 1.645 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.03104/0.1535, allocations: 22.28 MB / 0.5018 GB, free: 11.49 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001376/0.1549, allocations: 422.4 kB / 0.5022 GB, free: 11.08 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003027/0.1552, allocations: 11.94 kB / 0.5022 GB, free: 11.07 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000192/0.1554, allocations: 47.5 kB / 0.5023 GB, free: 11.02 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005045/0.1559, allocations: 142.8 kB / 0.5024 GB, free: 10.88 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003252/0.1562, allocations: 83.83 kB / 0.5025 GB, free: 10.8 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005243/0.1568, allocations: 422 kB / 0.5029 GB, free: 10.38 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004544/0.1572, allocations: 247 kB / 0.5031 GB, free: 10.14 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003172/0.1576, allocations: 199.3 kB / 0.5033 GB, free: 9.945 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002847/0.1579, allocations: 191.2 kB / 0.5035 GB, free: 9.758 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.761e-05/0.1579, allocations: 28 kB / 0.5035 GB, free: 9.73 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000137/0.1581, allocations: 55.97 kB / 0.5036 GB, free: 9.676 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.466e-05/0.1581, allocations: 67.77 kB / 0.5036 GB, free: 9.609 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001644/0.1583, allocations: 179.1 kB / 0.5038 GB, free: 9.434 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004258/0.1588, allocations: 414.4 kB / 0.5042 GB, free: 9.027 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.1588, allocations: 0 / 0.5042 GB, free: 9.027 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.1588, allocations: 0 / 0.5042 GB, free: 9.027 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.142e-05/0.1588, allocations: 0 / 0.5042 GB, free: 9.027 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.001077/0.1599, allocations: 0.6272 MB / 0.5048 GB, free: 8.348 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.137e-05/0.1599, allocations: 12.03 kB / 0.5048 GB, free: 8.336 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001056/0.16, allocations: 58.72 kB / 0.5049 GB, free: 8.27 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.099e-05/0.1601, allocations: 36.47 kB / 0.5049 GB, free: 8.234 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004051/0.1605, allocations: 323.3 kB / 0.5052 GB, free: 7.879 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.193e-05/0.1606, allocations: 20.94 kB / 0.5052 GB, free: 7.859 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.271e-05/0.1606, allocations: 16.38 kB / 0.5053 GB, free: 7.844 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004863/0.1611, allocations: 276.8 kB / 0.5055 GB, free: 7.559 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.193e-05/0.1611, allocations: 11.88 kB / 0.5055 GB, free: 7.547 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.63e-05/0.1612, allocations: 12 kB / 0.5055 GB, free: 7.535 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.518e-06/0.1612, allocations: 8 kB / 0.5055 GB, free: 7.527 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003976/0.1616, allocations: 193.6 kB / 0.5057 GB, free: 7.34 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001383/0.163, allocations: 0.9005 MB / 0.5066 GB, free: 6.375 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003564/0.1633, allocations: 166.7 kB / 0.5068 GB, free: 6.203 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002058/0.1636, allocations: 100.8 kB / 0.5069 GB, free: 6.102 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.915e-05/0.1636, allocations: 0 / 0.5069 GB, free: 6.102 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.785e-05/0.1636, allocations: 42.5 kB / 0.5069 GB, free: 6.051 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002573/0.1639, allocations: 43.81 kB / 0.5069 GB, free: 6.008 MB / 382.1 MB Notification: Performance of pre-optimization done (n=18): time 1.393e-06/0.1639, allocations: 0 / 0.5069 GB, free: 6.008 MB / 382.1 MB Notification: Performance of matching and sorting (n=18): time 0.001454/0.1654, allocations: 438.9 kB / 0.5074 GB, free: 5.547 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.54e-05/0.1654, allocations: 55.41 kB / 0.5074 GB, free: 5.48 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000356/0.1658, allocations: 300.6 kB / 0.5077 GB, free: 5.176 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.328e-05/0.1658, allocations: 29.7 kB / 0.5077 GB, free: 5.141 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001239/0.1659, allocations: 184 kB / 0.5079 GB, free: 4.957 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.85e-05/0.166, allocations: 59.11 kB / 0.508 GB, free: 4.898 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.712e-05/0.1661, allocations: 45.69 kB / 0.508 GB, free: 4.848 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001405/0.1663, allocations: 350.7 kB / 0.5083 GB, free: 4.496 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001605/0.1664, allocations: 67.91 kB / 0.5084 GB, free: 4.43 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000135/0.1666, allocations: 81.69 kB / 0.5085 GB, free: 4.344 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004049/0.1707, allocations: 0.6937 MB / 0.5092 GB, free: 3.648 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.1707, allocations: 0 / 0.5092 GB, free: 3.648 MB / 382.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0008618/0.1715, allocations: 313.7 kB / 0.5095 GB, free: 3.332 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.917e-05/0.1716, allocations: 8 kB / 0.5095 GB, free: 3.324 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.885e-06/0.1716, allocations: 0 / 0.5095 GB, free: 3.324 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007845/0.1724, allocations: 112.7 kB / 0.5096 GB, free: 3.211 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002384/0.1726, allocations: 39.97 kB / 0.5096 GB, free: 3.172 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000453/0.1731, allocations: 0.5912 MB / 0.5102 GB, free: 2.555 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001921/0.1733, allocations: 4.031 kB / 0.5102 GB, free: 2.551 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.967e-05/0.1733, allocations: 8 kB / 0.5102 GB, free: 2.543 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.0002267/0.1736, allocations: 151.4 kB / 0.5104 GB, free: 2.387 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.343e-05/0.1736, allocations: 27.62 kB / 0.5104 GB, free: 2.359 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009258/0.1746, allocations: 352.6 kB / 0.5107 GB, free: 2.008 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.793e-06/0.1746, allocations: 7.984 kB / 0.5107 GB, free: 2 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.572e-06/0.1746, allocations: 0 / 0.5107 GB, free: 2 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.572e-06/0.1746, allocations: 4 kB / 0.5107 GB, free: 1.996 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001344/0.176, allocations: 0.7362 MB / 0.5114 GB, free: 1.195 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.176, allocations: 3.938 kB / 0.5114 GB, free: 1.191 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002445/0.1762, allocations: 43.97 kB / 0.5115 GB, free: 1.148 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005929/0.1768, allocations: 92.84 kB / 0.5116 GB, free: 1.055 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.299e-05/0.1769, allocations: 11.98 kB / 0.5116 GB, free: 1.043 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004534/0.1773, allocations: 0.5952 MB / 0.5122 GB, free: 432 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.1773, allocations: 64 / 0.5122 GB, free: 432 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001032/0.1784, allocations: 0.508 MB / 0.5127 GB, free: 15.89 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001026/0.1785, allocations: 104.8 kB / 0.5128 GB, free: 15.77 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.428e-05/0.1786, allocations: 8 kB / 0.5128 GB, free: 15.76 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001781/0.1788, allocations: 4 kB / 0.5128 GB, free: 15.76 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.886e-05/0.1788, allocations: 27.84 kB / 0.5128 GB, free: 15.73 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.742e-05/0.1789, allocations: 8 kB / 0.5128 GB, free: 15.72 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002952/0.1792, allocations: 211.1 kB / 0.513 GB, free: 15.52 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1792, allocations: 64 / 0.513 GB, free: 15.52 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003677/0.1796, allocations: 83.84 kB / 0.5131 GB, free: 15.43 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.0011/0.1807, allocations: 1.016 MB / 0.5141 GB, free: 14.38 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005589/0.1812, allocations: 211.9 kB / 0.5143 GB, free: 14.18 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.1813, allocations: 0 / 0.5143 GB, free: 14.18 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002408/0.1815, allocations: 119.7 kB / 0.5144 GB, free: 14.06 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004089/0.1819, allocations: 71.19 kB / 0.5145 GB, free: 13.99 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004555/0.1865, allocations: 2.972 MB / 0.5174 GB, free: 10.91 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003362/0.1868, allocations: 0.7832 MB / 0.5181 GB, free: 10.11 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001875/0.187, allocations: 46.94 kB / 0.5182 GB, free: 10.06 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001674/0.1872, allocations: 115.4 kB / 0.5183 GB, free: 9.949 MB / 398.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1872, allocations: 0 / 0.5183 GB, free: 9.949 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03086/0.2181, allocations: 7.368 MB / 0.5255 GB, free: 2.695 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.15/11.36, allocations: 19.38 kB / 0.5255 GB, free: 2.676 MB / 398.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_003_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_003.fmu > AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.pipe 2>&1)