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.001027/0.001027, allocations: 112.9 kB / 16.37 MB, free: 6.344 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.001088/0.001088, allocations: 189.4 kB / 17.3 MB, free: 5.898 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.259/1.259, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08804/0.08804, allocations: 22.32 MB / 313.5 MB, free: 8.887 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001234/0.001234, allocations: 63.91 kB / 437.7 MB, free: 11.77 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1087/0.1099, allocations: 54.96 MB / 492.6 MB, free: 4.766 MB / 366.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.4719/0.5819, allocations: 21.62 MB / 0.5022 GB, free: 6.387 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006215/0.5825, allocations: 222.2 kB / 0.5024 GB, free: 6.387 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001219/0.5826, allocations: 11.47 kB / 0.5024 GB, free: 6.387 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 8.064e-05/0.5827, allocations: 31.95 kB / 0.5024 GB, free: 6.387 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000215/0.583, allocations: 101.6 kB / 0.5025 GB, free: 6.387 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000135/0.5831, allocations: 37.11 kB / 0.5026 GB, free: 6.387 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002333/0.5833, allocations: 291.1 kB / 0.5029 GB, free: 6.348 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002281/0.5836, allocations: 154.1 kB / 0.503 GB, free: 6.344 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001421/0.5837, allocations: 117.2 kB / 0.5031 GB, free: 6.316 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00013/0.5839, allocations: 98.19 kB / 0.5032 GB, free: 6.289 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.507e-05/0.5839, allocations: 14.62 kB / 0.5032 GB, free: 6.289 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.256e-05/0.5839, allocations: 16.84 kB / 0.5032 GB, free: 6.289 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.412e-05/0.584, allocations: 39.44 kB / 0.5033 GB, free: 6.281 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.168e-05/0.5841, allocations: 112.8 kB / 0.5034 GB, free: 6.242 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001971/0.5843, allocations: 236 kB / 0.5036 GB, free: 6.195 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.5843, allocations: 0 / 0.5036 GB, free: 6.195 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.542e-06/0.5843, allocations: 0 / 0.5036 GB, free: 6.195 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.863e-06/0.5843, allocations: 0 / 0.5036 GB, free: 6.195 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.0006141/0.5849, allocations: 0.5119 MB / 0.5041 GB, free: 5.758 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.544e-05/0.585, allocations: 10.16 kB / 0.5041 GB, free: 5.758 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.038e-05/0.585, allocations: 27.62 kB / 0.5041 GB, free: 5.746 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000262/0.5853, allocations: 278.6 kB / 0.5044 GB, free: 5.516 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.347e-05/0.5853, allocations: 9.953 kB / 0.5044 GB, free: 5.516 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.662e-05/0.5854, allocations: 16.69 kB / 0.5044 GB, free: 5.516 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003297/0.5857, allocations: 197.1 kB / 0.5046 GB, free: 5.438 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.094e-05/0.5857, allocations: 192 / 0.5046 GB, free: 5.438 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.116e-05/0.5857, allocations: 12.47 kB / 0.5046 GB, free: 5.434 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.785e-06/0.5857, allocations: 5.281 kB / 0.5046 GB, free: 5.434 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002933/0.586, allocations: 119.6 kB / 0.5048 GB, free: 5.43 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007714/0.5868, allocations: 0.8491 MB / 0.5056 GB, free: 4.793 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001762/0.587, allocations: 81.19 kB / 0.5057 GB, free: 4.766 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001302/0.5872, allocations: 59.56 kB / 0.5057 GB, free: 4.758 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.188e-05/0.5872, allocations: 0.5625 kB / 0.5057 GB, free: 4.758 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.804e-05/0.5872, allocations: 36.03 kB / 0.5058 GB, free: 4.719 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 1.282e-06/0.5872, allocations: 0 / 0.5058 GB, free: 4.719 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004878/0.5877, allocations: 179.3 kB / 0.5059 GB, free: 4.672 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.477e-05/0.5877, allocations: 62 kB / 0.506 GB, free: 4.609 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002161/0.588, allocations: 224.8 kB / 0.5062 GB, free: 4.5 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.185e-05/0.588, allocations: 25.7 kB / 0.5062 GB, free: 4.469 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.935e-05/0.5881, allocations: 142.4 kB / 0.5064 GB, free: 4.371 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.881e-05/0.5881, allocations: 51.33 kB / 0.5064 GB, free: 4.336 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.828e-05/0.5882, allocations: 33.12 kB / 0.5064 GB, free: 4.316 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.236e-05/0.5882, allocations: 340.1 kB / 0.5068 GB, free: 4 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001107/0.5883, allocations: 37.38 kB / 0.5068 GB, free: 4 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000113/0.5885, allocations: 67.25 kB / 0.5069 GB, free: 3.977 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007608/0.5892, allocations: 226.6 kB / 0.5071 GB, free: 3.945 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.5892, allocations: 0 / 0.5071 GB, free: 3.945 MB / 382.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002952/0.5895, allocations: 169.7 kB / 0.5072 GB, free: 3.895 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.344e-05/0.5896, allocations: 8.125 kB / 0.5072 GB, free: 3.895 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.5896, allocations: 0 / 0.5072 GB, free: 3.895 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.796e-05/0.5896, allocations: 0.5156 kB / 0.5072 GB, free: 3.895 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001988/0.5898, allocations: 41.02 kB / 0.5073 GB, free: 3.895 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.162e-06/0.5898, allocations: 0 / 0.5073 GB, free: 3.895 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001036/0.5899, allocations: 20.75 kB / 0.5073 GB, free: 3.887 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.209e-05/0.5899, allocations: 8.391 kB / 0.5073 GB, free: 3.887 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.0001303/0.5901, allocations: 141.2 kB / 0.5074 GB, free: 3.766 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.639e-05/0.5901, allocations: 21.8 kB / 0.5075 GB, free: 3.754 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.866e-05/0.5902, allocations: 28.45 kB / 0.5075 GB, free: 3.746 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.5902, allocations: 0.7969 kB / 0.5075 GB, free: 3.746 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.528e-06/0.5902, allocations: 2.688 kB / 0.5075 GB, free: 3.746 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.5902, allocations: 2.391 kB / 0.5075 GB, free: 3.746 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002279/0.5904, allocations: 271 kB / 0.5078 GB, free: 3.547 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.5904, allocations: 0 / 0.5078 GB, free: 3.547 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001937/0.5906, allocations: 28.81 kB / 0.5078 GB, free: 3.547 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.096e-06/0.5906, allocations: 1.219 kB / 0.5078 GB, free: 3.547 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.274e-05/0.5907, allocations: 3.75 kB / 0.5078 GB, free: 3.547 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.675e-06/0.5907, allocations: 3.781 kB / 0.5078 GB, free: 3.547 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.5907, allocations: 5.969 kB / 0.5078 GB, free: 3.543 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00041/0.5911, allocations: 299 kB / 0.5081 GB, free: 3.395 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.725e-05/0.5911, allocations: 97.16 kB / 0.5082 GB, free: 3.289 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.719e-05/0.5912, allocations: 0.9844 kB / 0.5082 GB, free: 3.289 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001166/0.5913, allocations: 6.516 kB / 0.5082 GB, free: 3.289 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.153e-05/0.5913, allocations: 14.69 kB / 0.5082 GB, free: 3.289 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.544e-06/0.5914, allocations: 6.594 kB / 0.5082 GB, free: 3.289 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001031/0.5915, allocations: 171.2 kB / 0.5084 GB, free: 3.211 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5915, allocations: 0 / 0.5084 GB, free: 3.211 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002518/0.5917, allocations: 43.81 kB / 0.5084 GB, free: 3.207 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 7.394e-05/0.5918, allocations: 98.69 kB / 0.5085 GB, free: 3.117 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002896/0.5921, allocations: 117.5 kB / 0.5086 GB, free: 3.109 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.5921, allocations: 1.312 kB / 0.5086 GB, free: 3.109 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001177/0.5922, allocations: 57.78 kB / 0.5087 GB, free: 3.109 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003289/0.5926, allocations: 61.06 kB / 0.5087 GB, free: 3.102 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008933/0.5935, allocations: 0.5697 MB / 0.5093 GB, free: 2.824 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001646/0.5936, allocations: 0.737 MB / 0.51 GB, free: 2.129 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.683e-05/0.5937, allocations: 19.44 kB / 0.51 GB, free: 2.121 MB / 382.1 MB Notification: Performance of SimCode: time 2.31e-07/0.5937, allocations: 2.656 kB / 0.51 GB, free: 2.121 MB / 382.1 MB Notification: Performance of Templates: time 0.004954/0.5987, allocations: 2.604 MB / 0.5126 GB, free: 2.098 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)