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.001317/0.001317, allocations: 100.3 kB / 15.05 MB, free: 1.105 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.001651/0.001651, allocations: 177.3 kB / 15.95 MB, free: 216 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.442/1.442, allocations: 223.2 MB / 239.9 MB, free: 5.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2378/0.2378, allocations: 22.34 MB / 313.3 MB, free: 13.16 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000501/0.0005011, allocations: 11.98 kB / 381.8 MB, free: 10.65 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3822/0.3827, allocations: 55.96 MB / 437.8 MB, free: 39.26 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Interfaces/flowTwoPorts_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/flowTwoPorts_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_003): time 0.002745/0.3855, allocations: 2.443 MB / 440.2 MB, free: 37.49 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008963/0.3864, allocations: 474.3 kB / 440.7 MB, free: 37.15 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001804/0.3866, allocations: 12.28 kB / 440.7 MB, free: 37.14 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 7.839e-05/0.3867, allocations: 34.94 kB / 440.8 MB, free: 37.13 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004156/0.3871, allocations: 182 kB / 440.9 MB, free: 37 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001959/0.3873, allocations: 64.53 kB / 441 MB, free: 36.96 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002837/0.3876, allocations: 294.6 kB / 441.3 MB, free: 36.8 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003131/0.3879, allocations: 192.3 kB / 441.5 MB, free: 36.74 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002459/0.3882, allocations: 196.7 kB / 441.7 MB, free: 36.64 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001954/0.3884, allocations: 160.7 kB / 441.8 MB, free: 36.57 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.529e-05/0.3884, allocations: 18.41 kB / 441.8 MB, free: 36.57 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001174/0.3886, allocations: 48.39 kB / 441.9 MB, free: 36.57 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.401e-05/0.3886, allocations: 58.92 kB / 441.9 MB, free: 36.53 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.854e-05/0.3887, allocations: 85.52 kB / 442 MB, free: 36.47 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002717/0.389, allocations: 285.7 kB / 442.3 MB, free: 36.4 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.845e-06/0.389, allocations: 0 / 442.3 MB, free: 36.4 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.389, allocations: 0 / 442.3 MB, free: 36.4 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.733e-06/0.389, allocations: 0 / 442.3 MB, free: 36.4 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: 57 * Number of variables: 57 Notification: Performance of Generate backend data structure: time 0.0008725/0.3899, allocations: 0.5772 MB / 442.9 MB, free: 35.91 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.029e-05/0.3899, allocations: 8.938 kB / 442.9 MB, free: 35.91 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.661e-05/0.39, allocations: 33.28 kB / 442.9 MB, free: 35.9 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003347/0.3903, allocations: 316.7 kB / 443.2 MB, free: 35.63 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.694e-05/0.3904, allocations: 17.62 kB / 443.3 MB, free: 35.62 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.785e-05/0.3904, allocations: 26.72 kB / 443.3 MB, free: 35.61 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000413/0.3909, allocations: 262.3 kB / 443.5 MB, free: 35.47 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.097e-05/0.3909, allocations: 0 / 443.5 MB, free: 35.47 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.085e-05/0.3909, allocations: 14.64 kB / 443.5 MB, free: 35.46 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.688e-06/0.3909, allocations: 13.44 kB / 443.6 MB, free: 35.45 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003222/0.3913, allocations: 198.7 kB / 443.8 MB, free: 35.38 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001181/0.3925, allocations: 0.9103 MB / 444.7 MB, free: 34.73 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003346/0.3928, allocations: 168.2 kB / 444.8 MB, free: 34.65 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.448e-05/0.3928, allocations: 4 kB / 444.8 MB, free: 34.64 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.828e-05/0.3929, allocations: 37.66 kB / 444.9 MB, free: 34.6 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0001888/0.3931, allocations: 30 kB / 444.9 MB, free: 34.59 MB / 350.1 MB Notification: Performance of pre-optimization done (n=18): time 1.533e-06/0.3931, allocations: 2.844 kB / 444.9 MB, free: 34.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=18): time 0.001248/0.3943, allocations: 450.5 kB / 445.3 MB, free: 34.34 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.576e-05/0.3944, allocations: 54.28 kB / 445.4 MB, free: 34.28 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002529/0.3946, allocations: 301 kB / 445.7 MB, free: 34.11 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.94e-05/0.3947, allocations: 29.7 kB / 445.7 MB, free: 34.08 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.878e-05/0.3948, allocations: 178.9 kB / 445.9 MB, free: 33.93 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.188e-05/0.3948, allocations: 66.2 kB / 446 MB, free: 33.88 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.273e-05/0.3948, allocations: 4 kB / 446 MB, free: 33.87 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.109e-05/0.3949, allocations: 339.7 kB / 446.3 MB, free: 33.55 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001084/0.395, allocations: 62.83 kB / 446.4 MB, free: 33.52 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001181/0.3952, allocations: 97.08 kB / 446.4 MB, free: 33.47 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000144/0.3953, allocations: 79.89 kB / 446.5 MB, free: 33.43 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.3953, allocations: 0 / 446.5 MB, free: 33.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0007/0.396, allocations: 310.6 kB / 446.8 MB, free: 33.29 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.845e-05/0.3961, allocations: 9.25 kB / 446.8 MB, free: 33.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.3961, allocations: 0 / 446.8 MB, free: 33.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000787/0.3969, allocations: 102.2 kB / 446.9 MB, free: 33.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002441/0.3971, allocations: 49.02 kB / 447 MB, free: 33.26 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003235/0.3974, allocations: 0.5762 MB / 447.6 MB, free: 32.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001541/0.3976, allocations: 11.03 kB / 447.6 MB, free: 32.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.199e-05/0.3976, allocations: 13.17 kB / 447.6 MB, free: 32.7 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: 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0002376/0.3979, allocations: 143.5 kB / 447.7 MB, free: 32.56 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.774e-05/0.3979, allocations: 29.62 kB / 447.8 MB, free: 32.55 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008256/0.3988, allocations: 371.3 kB / 448.1 MB, free: 32.38 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.691e-06/0.3988, allocations: 3.062 kB / 448.1 MB, free: 32.38 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.511e-06/0.3988, allocations: 0 / 448.1 MB, free: 32.38 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.27e-06/0.3988, allocations: 7.375 kB / 448.1 MB, free: 32.38 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003353/0.3992, allocations: 343.9 kB / 448.5 MB, free: 32.11 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.824e-06/0.3992, allocations: 0 / 448.5 MB, free: 32.11 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002372/0.3994, allocations: 43.75 kB / 448.5 MB, free: 32.11 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005421/0.4, allocations: 102.8 kB / 448.6 MB, free: 32.09 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.905e-05/0.4, allocations: 7.938 kB / 448.6 MB, free: 32.08 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002574/0.4003, allocations: 0.5909 MB / 449.2 MB, free: 31.52 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.4003, allocations: 3.953 kB / 449.2 MB, free: 31.52 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007652/0.401, allocations: 0.4904 MB / 449.7 MB, free: 31.24 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.936e-05/0.4011, allocations: 98.58 kB / 449.8 MB, free: 31.13 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.939e-05/0.4012, allocations: 10.02 kB / 449.8 MB, free: 31.12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001511/0.4013, allocations: 4 kB / 449.8 MB, free: 31.12 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.068e-05/0.4014, allocations: 18.95 kB / 449.8 MB, free: 31.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.484e-05/0.4014, allocations: 9.984 kB / 449.8 MB, free: 31.11 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001632/0.4016, allocations: 216.3 kB / 450.1 MB, free: 31 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4016, allocations: 0 / 450.1 MB, free: 31 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003143/0.4019, allocations: 71.31 kB / 450.1 MB, free: 30.98 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 (21): * Single equations (assignments): 20 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001364/0.402, allocations: 108.8 kB / 450.2 MB, free: 30.89 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004416/0.4025, allocations: 210.4 kB / 450.4 MB, free: 30.82 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.4025, allocations: 0 / 450.4 MB, free: 30.82 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002214/0.4027, allocations: 118.4 kB / 450.5 MB, free: 30.78 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003286/0.4031, allocations: 70.31 kB / 450.6 MB, free: 30.75 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001033/0.4041, allocations: 0.8205 MB / 451.4 MB, free: 30.22 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002023/0.4043, allocations: 0.7838 MB / 452.2 MB, free: 29.52 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001678/0.4045, allocations: 46.27 kB / 452.3 MB, free: 29.51 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.064e-05/0.4046, allocations: 34.77 kB / 452.3 MB, free: 29.5 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.4046, allocations: 0 / 452.3 MB, free: 29.5 MB / 350.1 MB Notification: Performance of Templates: time 0.006712/0.4113, allocations: 3.69 MB / 456 MB, free: 29.25 MB / 350.1 MB make -j1 -f AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: