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.001563/0.001563, allocations: 109.9 kB / 16.41 MB, free: 6.508 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.001347/0.001348, 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.308/1.308, 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.08929/0.08929, allocations: 22.32 MB / 313.5 MB, free: 8.906 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001387/0.001387, allocations: 55.91 kB / 437.7 MB, free: 11.78 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1062/0.1076, allocations: 54.96 MB / 492.7 MB, free: 4.773 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.48/0.5876, allocations: 21.82 MB / 0.5024 GB, free: 5.77 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006979/0.5883, allocations: 218 kB / 0.5027 GB, free: 5.77 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000162/0.5885, allocations: 12.41 kB / 0.5027 GB, free: 5.77 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 8.463e-05/0.5886, allocations: 33.66 kB / 0.5027 GB, free: 5.77 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002222/0.5888, allocations: 98.36 kB / 0.5028 GB, free: 5.77 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00014/0.5889, allocations: 38.06 kB / 0.5028 GB, free: 5.77 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002805/0.5892, allocations: 297.4 kB / 0.5031 GB, free: 5.73 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002763/0.5895, allocations: 147.9 kB / 0.5032 GB, free: 5.727 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001816/0.5897, allocations: 133.1 kB / 0.5034 GB, free: 5.703 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001497/0.5899, allocations: 101.8 kB / 0.5035 GB, free: 5.672 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.24e-05/0.5899, allocations: 15.25 kB / 0.5035 GB, free: 5.672 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.16e-05/0.59, allocations: 14.28 kB / 0.5035 GB, free: 5.672 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.483e-05/0.59, allocations: 38.88 kB / 0.5035 GB, free: 5.664 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.699e-05/0.5901, allocations: 111.1 kB / 0.5036 GB, free: 5.629 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002164/0.5903, allocations: 233 kB / 0.5039 GB, free: 5.59 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.5903, allocations: 0 / 0.5039 GB, free: 5.59 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.5903, allocations: 2.656 kB / 0.5039 GB, free: 5.59 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.107e-05/0.5904, allocations: 3.938 kB / 0.5039 GB, free: 5.586 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.0006374/0.591, allocations: 0.5126 MB / 0.5044 GB, free: 5.148 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.725e-05/0.591, allocations: 12.78 kB / 0.5044 GB, free: 5.148 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.841e-05/0.5911, allocations: 24.72 kB / 0.5044 GB, free: 5.137 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002645/0.5914, allocations: 270.8 kB / 0.5047 GB, free: 4.906 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.152e-05/0.5914, allocations: 12.77 kB / 0.5047 GB, free: 4.906 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.736e-05/0.5915, allocations: 18.84 kB / 0.5047 GB, free: 4.906 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003318/0.5918, allocations: 190 kB / 0.5049 GB, free: 4.832 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.211e-05/0.5918, allocations: 6.781 kB / 0.5049 GB, free: 4.828 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.439e-05/0.5918, allocations: 19.81 kB / 0.5049 GB, free: 4.824 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.514e-06/0.5919, allocations: 3.969 kB / 0.5049 GB, free: 4.824 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003105/0.5922, allocations: 114 kB / 0.505 GB, free: 4.82 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008541/0.593, allocations: 0.8452 MB / 0.5058 GB, free: 4.188 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001789/0.5932, allocations: 80.89 kB / 0.5059 GB, free: 4.164 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001327/0.5934, allocations: 61.2 kB / 0.506 GB, free: 4.156 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.42e-05/0.5934, allocations: 3.594 kB / 0.506 GB, free: 4.156 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.839e-05/0.5934, allocations: 30.81 kB / 0.506 GB, free: 4.117 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 1.283e-06/0.5934, allocations: 0 / 0.506 GB, free: 4.117 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004686/0.5939, allocations: 186.6 kB / 0.5062 GB, free: 4.066 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.941e-05/0.5939, allocations: 53.53 kB / 0.5062 GB, free: 4.004 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002014/0.5941, allocations: 232.4 kB / 0.5065 GB, free: 3.895 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.293e-05/0.5942, allocations: 25.7 kB / 0.5065 GB, free: 3.863 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.134e-05/0.5942, allocations: 141.7 kB / 0.5066 GB, free: 3.766 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.479e-05/0.5943, allocations: 55.83 kB / 0.5067 GB, free: 3.734 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.672e-05/0.5943, allocations: 26.31 kB / 0.5067 GB, free: 3.719 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.05e-05/0.5944, allocations: 340.8 kB / 0.507 GB, free: 3.402 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001117/0.5945, allocations: 41.02 kB / 0.5071 GB, free: 3.398 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000123/0.5946, allocations: 69.52 kB / 0.5071 GB, free: 3.375 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007837/0.5954, allocations: 224.7 kB / 0.5073 GB, free: 3.344 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.5954, allocations: 0 / 0.5073 GB, free: 3.344 MB / 382.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003025/0.5957, allocations: 169.7 kB / 0.5075 GB, free: 3.293 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.67e-05/0.5958, allocations: 7.156 kB / 0.5075 GB, free: 3.293 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5e-06/0.5958, allocations: 2.656 kB / 0.5075 GB, free: 3.293 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.639e-05/0.5958, allocations: 2.531 kB / 0.5075 GB, free: 3.293 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002015/0.596, allocations: 45.84 kB / 0.5076 GB, free: 3.289 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.635e-06/0.596, allocations: 0.8438 kB / 0.5076 GB, free: 3.289 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001064/0.5961, allocations: 13.39 kB / 0.5076 GB, free: 3.281 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.028e-05/0.5962, allocations: 4.875 kB / 0.5076 GB, free: 3.281 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.0001339/0.5963, allocations: 138.6 kB / 0.5077 GB, free: 3.164 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.977e-05/0.5963, allocations: 21.81 kB / 0.5077 GB, free: 3.152 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.014e-05/0.5964, allocations: 28.58 kB / 0.5078 GB, free: 3.145 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.075e-06/0.5964, allocations: 2.375 kB / 0.5078 GB, free: 3.145 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.5964, allocations: 0 / 0.5078 GB, free: 3.145 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.878e-06/0.5964, allocations: 4.922 kB / 0.5078 GB, free: 3.141 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002428/0.5967, allocations: 265.2 kB / 0.508 GB, free: 2.945 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.5967, allocations: 0 / 0.508 GB, free: 2.945 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001959/0.5969, allocations: 27.92 kB / 0.508 GB, free: 2.945 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.305e-06/0.5969, allocations: 5.25 kB / 0.5081 GB, free: 2.945 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.36e-05/0.5969, allocations: 7.219 kB / 0.5081 GB, free: 2.945 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/0.5969, allocations: 2.812 kB / 0.5081 GB, free: 2.945 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.5969, allocations: 0 / 0.5081 GB, free: 2.945 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004257/0.5974, allocations: 296.7 kB / 0.5083 GB, free: 2.797 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.729e-05/0.5974, allocations: 100.8 kB / 0.5084 GB, free: 2.688 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.283e-05/0.5974, allocations: 4.562 kB / 0.5084 GB, free: 2.688 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001194/0.5976, allocations: 5.531 kB / 0.5084 GB, free: 2.688 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.866e-05/0.5976, allocations: 14.89 kB / 0.5085 GB, free: 2.688 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.865e-06/0.5976, allocations: 10.8 kB / 0.5085 GB, free: 2.688 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001095/0.5978, allocations: 160.5 kB / 0.5086 GB, free: 2.609 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5978, allocations: 0 / 0.5086 GB, free: 2.609 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002602/0.598, allocations: 40.72 kB / 0.5087 GB, free: 2.609 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 8.17e-05/0.5981, allocations: 105.1 kB / 0.5088 GB, free: 2.523 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003125/0.5984, allocations: 115.5 kB / 0.5089 GB, free: 2.512 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.5984, allocations: 1.656 kB / 0.5089 GB, free: 2.512 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001232/0.5986, allocations: 60.5 kB / 0.5089 GB, free: 2.508 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003599/0.5989, allocations: 51.33 kB / 0.509 GB, free: 2.504 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009419/0.5999, allocations: 0.5803 MB / 0.5096 GB, free: 2.223 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000181/0.6001, allocations: 0.7357 MB / 0.5103 GB, free: 1.527 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.637e-05/0.6002, allocations: 21.81 kB / 0.5103 GB, free: 1.52 MB / 382.1 MB Notification: Performance of SimCode: time 2.2e-07/0.6002, allocations: 0 / 0.5103 GB, free: 1.52 MB / 382.1 MB Notification: Performance of Templates: time 0.005647/0.6058, allocations: 2.63 MB / 0.5129 GB, free: 1.488 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)