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.0008/0.0008, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.005229/0.005229, allocations: 169 kB / 16.26 MB, free: 6.66 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.55/1.55, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2249/0.2249, allocations: 22.34 MB / 313.8 MB, free: 13.06 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003431/0.0003433, allocations: 12 kB / 382.6 MB, free: 10.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3687/0.369, allocations: 55.98 MB / 438.6 MB, free: 39.34 MB / 350.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.0335/0.4026, allocations: 21.61 MB / 460.2 MB, free: 31.6 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001166/0.4038, allocations: 246.8 kB / 460.4 MB, free: 31.41 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001886/0.404, allocations: 12.16 kB / 460.4 MB, free: 31.41 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 8.373e-05/0.4041, allocations: 25.12 kB / 460.5 MB, free: 31.4 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002932/0.4044, allocations: 89.23 kB / 460.5 MB, free: 31.34 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002144/0.4046, allocations: 34.83 kB / 460.6 MB, free: 31.31 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004223/0.405, allocations: 273.3 kB / 460.8 MB, free: 31.18 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003803/0.4054, allocations: 124.4 kB / 461 MB, free: 31.13 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002557/0.4057, allocations: 124.7 kB / 461.1 MB, free: 31.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001862/0.4059, allocations: 87.03 kB / 461.2 MB, free: 31.03 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.267e-05/0.4059, allocations: 8.688 kB / 461.2 MB, free: 31.03 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.403e-05/0.406, allocations: 8.438 kB / 461.2 MB, free: 31.03 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.139e-05/0.406, allocations: 35.86 kB / 461.2 MB, free: 31 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001616/0.4062, allocations: 119.6 kB / 461.3 MB, free: 30.92 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003055/0.4065, allocations: 224.9 kB / 461.6 MB, free: 30.84 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.843e-06/0.4065, allocations: 0 / 461.6 MB, free: 30.84 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.946e-06/0.4065, allocations: 0 / 461.6 MB, free: 30.84 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.811e-06/0.4065, allocations: 3.938 kB / 461.6 MB, free: 30.84 MB / 350.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.000758/0.4073, allocations: 488.1 kB / 462 MB, free: 30.39 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.815e-05/0.4074, allocations: 9.312 kB / 462.1 MB, free: 30.39 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.182e-05/0.4075, allocations: 36.11 kB / 462.1 MB, free: 30.37 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000329/0.4078, allocations: 264 kB / 462.3 MB, free: 30.12 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.182e-05/0.4078, allocations: 11.33 kB / 462.4 MB, free: 30.12 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.464e-05/0.4079, allocations: 18.47 kB / 462.4 MB, free: 30.11 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004137/0.4083, allocations: 192.8 kB / 462.6 MB, free: 30 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.26e-05/0.4083, allocations: 1.25 kB / 462.6 MB, free: 30 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.669e-05/0.4084, allocations: 18.16 kB / 462.6 MB, free: 29.98 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.25e-05/0.4084, allocations: 8.344 kB / 462.6 MB, free: 29.98 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003543/0.4087, allocations: 114.4 kB / 462.7 MB, free: 29.94 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001039/0.4098, allocations: 0.8527 MB / 463.6 MB, free: 29.21 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002357/0.41, allocations: 76.47 kB / 463.6 MB, free: 29.16 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001973/0.4102, allocations: 59.66 kB / 463.7 MB, free: 29.14 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.161e-05/0.4103, allocations: 2.812 kB / 463.7 MB, free: 29.14 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.557e-05/0.4103, allocations: 34.56 kB / 463.7 MB, free: 29.09 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.753e-06/0.4103, allocations: 4 kB / 463.7 MB, free: 29.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0006258/0.411, allocations: 182.7 kB / 463.9 MB, free: 29.01 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.922e-05/0.411, allocations: 53.5 kB / 464 MB, free: 28.95 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002951/0.4113, allocations: 226 kB / 464.2 MB, free: 28.81 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.131e-05/0.4114, allocations: 29.7 kB / 464.2 MB, free: 28.77 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001139/0.4115, allocations: 141.7 kB / 464.3 MB, free: 28.64 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.826e-05/0.4115, allocations: 48.73 kB / 464.4 MB, free: 28.61 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.647e-05/0.4116, allocations: 25.58 kB / 464.4 MB, free: 28.58 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001002/0.4117, allocations: 333.9 kB / 464.7 MB, free: 28.26 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001189/0.4118, allocations: 38.38 kB / 464.8 MB, free: 28.25 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001387/0.412, allocations: 69.72 kB / 464.8 MB, free: 28.2 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008297/0.4128, allocations: 221.7 kB / 465.1 MB, free: 28.11 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.4128, allocations: 4 kB / 465.1 MB, free: 28.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003436/0.4132, allocations: 171.3 kB / 465.2 MB, free: 28.02 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.794e-05/0.4132, allocations: 5.094 kB / 465.2 MB, free: 28.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.086e-06/0.4132, allocations: 1.125 kB / 465.2 MB, free: 28.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.538e-05/0.4132, allocations: 1.031 kB / 465.2 MB, free: 28.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002034/0.4134, allocations: 38.03 kB / 465.3 MB, free: 28.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.874e-06/0.4134, allocations: 2.125 kB / 465.3 MB, free: 28.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001033/0.4135, allocations: 16.56 kB / 465.3 MB, free: 28.01 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.305e-05/0.4136, allocations: 7.5 kB / 465.3 MB, free: 28 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: 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.0001802/0.4138, allocations: 135.4 kB / 465.4 MB, free: 27.88 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.2e-05/0.4138, allocations: 21.84 kB / 465.5 MB, free: 27.86 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.113e-05/0.4139, allocations: 34.64 kB / 465.5 MB, free: 27.84 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.384e-06/0.4139, allocations: 5.219 kB / 465.5 MB, free: 27.84 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.122e-06/0.4139, allocations: 1.156 kB / 465.5 MB, free: 27.84 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.956e-06/0.4139, allocations: 0 / 465.5 MB, free: 27.84 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002312/0.4141, allocations: 265.2 kB / 465.8 MB, free: 27.6 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.4141, allocations: 0 / 465.8 MB, free: 27.6 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001984/0.4143, allocations: 31.66 kB / 465.8 MB, free: 27.6 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.326e-06/0.4143, allocations: 1.438 kB / 465.8 MB, free: 27.6 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.606e-05/0.4144, allocations: 5.406 kB / 465.8 MB, free: 27.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/0.4144, allocations: 0 / 465.8 MB, free: 27.59 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.4144, allocations: 1.406 kB / 465.8 MB, free: 27.59 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005013/0.4149, allocations: 301 kB / 466.1 MB, free: 27.39 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.693e-05/0.415, allocations: 101.8 kB / 466.2 MB, free: 27.28 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.1e-05/0.415, allocations: 1.438 kB / 466.2 MB, free: 27.28 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001162/0.4151, allocations: 6.719 kB / 466.2 MB, free: 27.28 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.503e-05/0.4152, allocations: 16.28 kB / 466.2 MB, free: 27.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.354e-06/0.4152, allocations: 5.562 kB / 466.2 MB, free: 27.27 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001671/0.4154, allocations: 167 kB / 466.4 MB, free: 27.16 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4154, allocations: 0 / 466.4 MB, free: 27.16 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002959/0.4157, allocations: 48.44 kB / 466.4 MB, free: 27.15 MB / 350.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 0.00014/0.4158, allocations: 99.11 kB / 466.5 MB, free: 27.07 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003879/0.4162, allocations: 112.8 kB / 466.6 MB, free: 27.03 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.4162, allocations: 128 / 466.6 MB, free: 27.03 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001547/0.4164, allocations: 66.88 kB / 466.7 MB, free: 27.01 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004276/0.4168, allocations: 49.88 kB / 466.8 MB, free: 26.99 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001259/0.4181, allocations: 0.6818 MB / 467.4 MB, free: 26.55 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002414/0.4184, allocations: 0.7309 MB / 468.2 MB, free: 25.86 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001604/0.4185, allocations: 33.94 kB / 468.2 MB, free: 25.84 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.53e-05/0.4186, allocations: 19.78 kB / 468.2 MB, free: 25.83 MB / 350.1 MB Notification: Performance of SimCode: time 5.41e-07/0.4186, allocations: 0 / 468.2 MB, free: 25.83 MB / 350.1 MB Notification: Performance of Templates: time 0.005864/0.4245, allocations: 2.154 MB / 470.4 MB, free: 25.3 MB / 350.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)