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.001077/0.001077, allocations: 86.72 kB / 15.06 MB, free: 1.09 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.001166/0.001167, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.544/1.544, allocations: 223.3 MB / 240 MB, free: 5.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2736/0.2736, allocations: 22.34 MB / 313.4 MB, free: 13.14 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005211/0.0005212, allocations: 8 kB / 381.9 MB, free: 10.55 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3958/0.3964, allocations: 55.97 MB / 437.9 MB, free: 39.16 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.002987/0.3994, allocations: 2.164 MB / 440.1 MB, free: 37.58 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005765/0.4, allocations: 242.1 kB / 440.3 MB, free: 37.39 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001752/0.4002, allocations: 15.06 kB / 440.3 MB, free: 37.39 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 6.794e-05/0.4003, allocations: 24.66 kB / 440.4 MB, free: 37.38 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003082/0.4006, allocations: 107.2 kB / 440.5 MB, free: 37.3 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001679/0.4008, allocations: 32.72 kB / 440.5 MB, free: 37.29 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003071/0.4011, allocations: 266.8 kB / 440.7 MB, free: 37.15 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002857/0.4014, allocations: 113.8 kB / 440.9 MB, free: 37.11 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002234/0.4016, allocations: 114.5 kB / 441 MB, free: 37.06 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000164/0.4018, allocations: 90.75 kB / 441.1 MB, free: 37.02 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.725e-05/0.4019, allocations: 8.75 kB / 441.1 MB, free: 37.02 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.046e-05/0.4019, allocations: 8 kB / 441.1 MB, free: 37.02 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.812e-05/0.4019, allocations: 31.97 kB / 441.1 MB, free: 37 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.64e-05/0.402, allocations: 67.89 kB / 441.2 MB, free: 36.95 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001917/0.4022, allocations: 156.6 kB / 441.3 MB, free: 36.91 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.004e-06/0.4022, allocations: 0 / 441.3 MB, free: 36.91 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.355e-06/0.4022, allocations: 4 kB / 441.3 MB, free: 36.9 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.893e-06/0.4023, allocations: 0 / 441.3 MB, free: 36.9 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.0006953/0.403, allocations: 487.2 kB / 441.8 MB, free: 36.47 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.735e-05/0.403, allocations: 9.031 kB / 441.8 MB, free: 36.47 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.499e-05/0.4031, allocations: 27.28 kB / 441.8 MB, free: 36.45 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003063/0.4034, allocations: 269.6 kB / 442.1 MB, free: 36.21 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.457e-05/0.4034, allocations: 14.08 kB / 442.1 MB, free: 36.2 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.661e-05/0.4035, allocations: 13.19 kB / 442.1 MB, free: 36.2 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004073/0.4039, allocations: 196.7 kB / 442.3 MB, free: 36.07 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.448e-05/0.4039, allocations: 3.953 kB / 442.3 MB, free: 36.07 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.274e-05/0.404, allocations: 10.61 kB / 442.3 MB, free: 36.06 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.858e-05/0.404, allocations: 2.875 kB / 442.3 MB, free: 36.06 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003391/0.4043, allocations: 123.5 kB / 442.5 MB, free: 36.02 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000916/0.4053, allocations: 0.8412 MB / 443.3 MB, free: 35.29 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002132/0.4055, allocations: 89.66 kB / 443.4 MB, free: 35.24 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001547/0.4057, allocations: 60.98 kB / 443.4 MB, free: 35.21 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.501e-05/0.4057, allocations: 0 / 443.4 MB, free: 35.21 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.383e-05/0.4057, allocations: 38.53 kB / 443.5 MB, free: 35.17 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.262e-06/0.4057, allocations: 0 / 443.5 MB, free: 35.17 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005387/0.4063, allocations: 185 kB / 443.7 MB, free: 35.07 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.065e-05/0.4063, allocations: 53.88 kB / 443.7 MB, free: 35.01 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002125/0.4065, allocations: 224.2 kB / 443.9 MB, free: 34.88 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.293e-05/0.4065, allocations: 25.7 kB / 444 MB, free: 34.84 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.69e-05/0.4066, allocations: 149.3 kB / 444.1 MB, free: 34.71 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.401e-05/0.4067, allocations: 44.39 kB / 444.2 MB, free: 34.68 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.467e-06/0.4067, allocations: 7.938 kB / 444.2 MB, free: 34.67 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.237e-05/0.4068, allocations: 332 kB / 444.5 MB, free: 34.35 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001281/0.4069, allocations: 43.12 kB / 444.5 MB, free: 34.33 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001363/0.407, allocations: 59.97 kB / 444.6 MB, free: 34.29 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001562/0.4072, allocations: 46.27 kB / 444.6 MB, free: 34.27 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.4072, allocations: 0 / 444.6 MB, free: 34.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003693/0.4076, allocations: 170.7 kB / 444.8 MB, free: 34.18 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.813e-05/0.4076, allocations: 7.25 kB / 444.8 MB, free: 34.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.091e-06/0.4076, allocations: 0 / 444.8 MB, free: 34.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.605e-05/0.4077, allocations: 3.781 kB / 444.8 MB, free: 34.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000239/0.4079, allocations: 38.34 kB / 444.8 MB, free: 34.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.805e-06/0.4079, allocations: 0 / 444.8 MB, free: 34.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001348/0.4081, allocations: 17.53 kB / 444.9 MB, free: 34.17 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.3e-05/0.4081, allocations: 2.969 kB / 444.9 MB, free: 34.17 MB / 350.1 MB Warning: Assuming fixed start value for the following 2 variables: HE.Tco:VARIABLE(min = 0.0 start = 299.958408982322 unit = "K" fixed = true nominal = 300.0 ) type: Real HE.Tho:VARIABLE(min = 0.0 start = 339.5666268514094 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002122/0.4083, allocations: 140.5 kB / 445 MB, free: 34.04 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.338e-05/0.4084, allocations: 23.08 kB / 445 MB, free: 34.02 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.04e-05/0.4084, allocations: 23.97 kB / 445 MB, free: 34.01 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.4084, allocations: 2.781 kB / 445.1 MB, free: 34.01 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.532e-06/0.4085, allocations: 3.938 kB / 445.1 MB, free: 34 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.4085, allocations: 0 / 445.1 MB, free: 34 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002976/0.4088, allocations: 270.1 kB / 445.3 MB, free: 33.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.4088, allocations: 0 / 445.3 MB, free: 33.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002453/0.409, allocations: 27.23 kB / 445.3 MB, free: 33.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.03e-06/0.4091, allocations: 3.031 kB / 445.3 MB, free: 33.77 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.021e-05/0.4091, allocations: 7.953 kB / 445.4 MB, free: 33.76 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.4091, allocations: 0 / 445.4 MB, free: 33.76 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.4091, allocations: 0 / 445.4 MB, free: 33.76 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005933/0.4097, allocations: 305.8 kB / 445.7 MB, free: 33.55 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.269e-05/0.4098, allocations: 97.11 kB / 445.8 MB, free: 33.45 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.973e-05/0.4098, allocations: 6.469 kB / 445.8 MB, free: 33.45 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001905/0.41, allocations: 6.672 kB / 445.8 MB, free: 33.44 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.247e-05/0.4101, allocations: 16.38 kB / 445.8 MB, free: 33.44 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.138e-05/0.4101, allocations: 3.344 kB / 445.8 MB, free: 33.44 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001778/0.4103, allocations: 164.9 kB / 445.9 MB, free: 33.34 MB / 350.1 MB Notification: Performance of sort global known variables: time 2e-07/0.4103, allocations: 0 / 445.9 MB, free: 33.34 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004199/0.4108, allocations: 48.12 kB / 446 MB, free: 33.32 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000112/0.4109, allocations: 95.53 kB / 446.1 MB, free: 33.24 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003595/0.4112, allocations: 111.9 kB / 446.2 MB, free: 33.2 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.4113, allocations: 0 / 446.2 MB, free: 33.2 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001498/0.4114, allocations: 54.52 kB / 446.2 MB, free: 33.19 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005086/0.4119, allocations: 57.5 kB / 446.3 MB, free: 33.16 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001224/0.4132, allocations: 0.6639 MB / 447 MB, free: 32.74 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002044/0.4134, allocations: 0.7358 MB / 447.7 MB, free: 32.04 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002054/0.4136, allocations: 31.39 kB / 447.7 MB, free: 32.03 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.073e-05/0.4137, allocations: 22.69 kB / 447.8 MB, free: 32.02 MB / 350.1 MB Notification: Performance of SimCode: time 2.7e-07/0.4137, allocations: 0 / 447.8 MB, free: 32.02 MB / 350.1 MB Notification: Performance of Templates: time 0.005845/0.4195, allocations: 2.083 MB / 449.8 MB, free: 31.87 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)