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.001068/0.001068, allocations: 109 kB / 16.41 MB, free: 6.5 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.001191/0.001191, allocations: 187 kB / 17.34 MB, free: 5.742 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.328/1.328, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09052/0.09052, allocations: 22.33 MB / 313.5 MB, free: 8.883 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001268/0.001268, allocations: 67.89 kB / 437.7 MB, free: 11.75 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09928/0.1006, allocations: 54.95 MB / 492.7 MB, free: 4.742 MB / 366.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.4088/0.5094, allocations: 22.27 MB / 0.5029 GB, free: 5.766 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001097/0.5105, allocations: 410.4 kB / 0.5033 GB, free: 5.762 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001722/0.5107, allocations: 15.78 kB / 0.5033 GB, free: 5.762 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001096/0.5108, allocations: 44.48 kB / 0.5033 GB, free: 5.762 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003586/0.5111, allocations: 139.2 kB / 0.5035 GB, free: 5.762 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001923/0.5114, allocations: 86.86 kB / 0.5035 GB, free: 5.762 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003093/0.5117, allocations: 424.5 kB / 0.5039 GB, free: 5.656 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003071/0.512, allocations: 244.4 kB / 0.5042 GB, free: 5.648 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000221/0.5122, allocations: 198.9 kB / 0.5044 GB, free: 5.605 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002086/0.5124, allocations: 181.1 kB / 0.5045 GB, free: 5.57 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.173e-05/0.5125, allocations: 28.16 kB / 0.5046 GB, free: 5.57 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001289/0.5126, allocations: 57.91 kB / 0.5046 GB, free: 5.57 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.167e-05/0.5127, allocations: 73.11 kB / 0.5047 GB, free: 5.555 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001475/0.5128, allocations: 184.6 kB / 0.5049 GB, free: 5.5 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004336/0.5133, allocations: 399.9 kB / 0.5053 GB, free: 5.43 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.5133, allocations: 0 / 0.5053 GB, free: 5.43 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.5133, allocations: 2.25 kB / 0.5053 GB, free: 5.43 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.655e-06/0.5133, allocations: 0 / 0.5053 GB, free: 5.43 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.0008915/0.5142, allocations: 0.6418 MB / 0.5059 GB, free: 4.945 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.459e-05/0.5142, allocations: 7.156 kB / 0.5059 GB, free: 4.945 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.808e-05/0.5143, allocations: 39 kB / 0.5059 GB, free: 4.926 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003498/0.5147, allocations: 319.2 kB / 0.5062 GB, free: 4.691 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.705e-05/0.5147, allocations: 15.69 kB / 0.5062 GB, free: 4.691 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.826e-05/0.5148, allocations: 29.17 kB / 0.5063 GB, free: 4.688 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004226/0.5152, allocations: 271.9 kB / 0.5065 GB, free: 4.625 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.212e-05/0.5152, allocations: 192 / 0.5065 GB, free: 4.625 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.628e-05/0.5152, allocations: 14.5 kB / 0.5065 GB, free: 4.621 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.115e-06/0.5153, allocations: 5.938 kB / 0.5066 GB, free: 4.621 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003249/0.5156, allocations: 198.5 kB / 0.5067 GB, free: 4.617 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001181/0.5168, allocations: 0.8943 MB / 0.5076 GB, free: 4.129 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000329/0.5171, allocations: 173.8 kB / 0.5078 GB, free: 4.098 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001849/0.5173, allocations: 100.6 kB / 0.5079 GB, free: 4.09 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.963e-05/0.5173, allocations: 4.422 kB / 0.5079 GB, free: 4.09 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.552e-05/0.5174, allocations: 43.09 kB / 0.5079 GB, free: 4.047 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0001933/0.5176, allocations: 37.61 kB / 0.508 GB, free: 4.039 MB / 382.1 MB Notification: Performance of pre-optimization done (n=18): time 1.273e-06/0.5176, allocations: 0 / 0.508 GB, free: 4.039 MB / 382.1 MB Notification: Performance of matching and sorting (n=18): time 0.001274/0.5189, allocations: 442.4 kB / 0.5084 GB, free: 3.883 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.441e-05/0.5189, allocations: 54.38 kB / 0.5084 GB, free: 3.82 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002795/0.5192, allocations: 304.4 kB / 0.5087 GB, free: 3.707 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.78e-05/0.5192, allocations: 26.83 kB / 0.5087 GB, free: 3.676 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001047/0.5193, allocations: 186.3 kB / 0.5089 GB, free: 3.566 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.221e-05/0.5194, allocations: 63.34 kB / 0.509 GB, free: 3.527 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.479e-05/0.5195, allocations: 45.31 kB / 0.509 GB, free: 3.512 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.391e-05/0.5195, allocations: 347.3 kB / 0.5094 GB, free: 3.195 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001329/0.5197, allocations: 62.91 kB / 0.5094 GB, free: 3.195 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001426/0.5198, allocations: 87.22 kB / 0.5095 GB, free: 3.18 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003894/0.5237, allocations: 0.6876 MB / 0.5102 GB, free: 3.164 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.896e-06/0.5237, allocations: 0 / 0.5102 GB, free: 3.164 MB / 382.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0008121/0.5246, allocations: 314.8 kB / 0.5105 GB, free: 3.094 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.897e-05/0.5246, allocations: 8.688 kB / 0.5105 GB, free: 3.094 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.5246, allocations: 0 / 0.5105 GB, free: 3.094 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007378/0.5253, allocations: 105.6 kB / 0.5106 GB, free: 3.086 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002559/0.5256, allocations: 46.16 kB / 0.5106 GB, free: 3.086 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003196/0.5259, allocations: 0.5803 MB / 0.5112 GB, free: 2.559 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001805/0.5261, allocations: 4.969 kB / 0.5112 GB, free: 2.559 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.401e-05/0.5262, allocations: 8.531 kB / 0.5112 GB, free: 2.559 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.0002106/0.5264, allocations: 156.9 kB / 0.5114 GB, free: 2.434 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.63e-05/0.5264, allocations: 33.59 kB / 0.5114 GB, free: 2.418 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008617/0.5273, allocations: 358.8 kB / 0.5117 GB, free: 2.352 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.642e-06/0.5273, allocations: 7.062 kB / 0.5117 GB, free: 2.352 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.608e-06/0.5273, allocations: 3.938 kB / 0.5117 GB, free: 2.348 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/0.5274, allocations: 3.922 kB / 0.5117 GB, free: 2.348 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001192/0.5285, allocations: 0.7298 MB / 0.5125 GB, free: 2.008 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.5286, allocations: 0 / 0.5125 GB, free: 2.008 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002293/0.5288, allocations: 43.44 kB / 0.5125 GB, free: 2.008 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005155/0.5293, allocations: 100.3 kB / 0.5126 GB, free: 1.996 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.199e-05/0.5294, allocations: 8 kB / 0.5126 GB, free: 1.996 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002721/0.5296, allocations: 0.59 MB / 0.5132 GB, free: 1.473 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.806e-06/0.5296, allocations: 1.891 kB / 0.5132 GB, free: 1.473 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008457/0.5305, allocations: 0.5037 MB / 0.5137 GB, free: 1.289 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.497e-05/0.5306, allocations: 111.5 kB / 0.5138 GB, free: 1.176 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.255e-05/0.5306, allocations: 7.297 kB / 0.5138 GB, free: 1.176 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001563/0.5308, allocations: 5.688 kB / 0.5138 GB, free: 1.176 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.117e-05/0.5309, allocations: 18.62 kB / 0.5138 GB, free: 1.176 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.129e-05/0.5309, allocations: 12.11 kB / 0.5138 GB, free: 1.172 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000216/0.5311, allocations: 218.9 kB / 0.514 GB, free: 1.09 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5311, allocations: 0 / 0.514 GB, free: 1.09 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004049/0.5315, allocations: 67.34 kB / 0.5141 GB, free: 1.086 MB / 382.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.0001461/0.5317, allocations: 112.2 kB / 0.5142 GB, free: 0.9922 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005259/0.5322, allocations: 197.9 kB / 0.5144 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.5322, allocations: 0 / 0.5144 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002648/0.5325, allocations: 130.2 kB / 0.5145 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004414/0.533, allocations: 73.14 kB / 0.5146 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001076/0.534, allocations: 0.7193 MB / 0.5153 GB, free: 0.6133 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000245/0.5343, allocations: 0.7737 MB / 0.516 GB, free: 15.91 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.652e-05/0.5344, allocations: 35.91 kB / 0.5161 GB, free: 15.91 MB / 398.1 MB Notification: Performance of SimCode: time 2.5e-07/0.5344, allocations: 2.656 kB / 0.5161 GB, free: 15.91 MB / 398.1 MB Notification: Performance of Templates: time 0.009267/0.5437, allocations: 5.092 MB / 0.5211 GB, free: 15.03 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)