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.0008554/0.0008554, allocations: 98.8 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009983/0.0009983, allocations: 183.2 kB / 16.92 MB, free: 6.895 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.394/1.394, allocations: 223.3 MB / 241 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.1987/0.1987, allocations: 22.34 MB / 314.4 MB, free: 13.18 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000324/0.0003241, allocations: 15.98 kB / 383.3 MB, free: 10.13 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2728/0.2732, allocations: 55.98 MB / 439.2 MB, free: 39.35 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.02563/0.2988, allocations: 21.61 MB / 460.9 MB, free: 31.61 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007066/0.2995, allocations: 243.6 kB / 461.1 MB, free: 31.43 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000158/0.2997, allocations: 12.78 kB / 461.1 MB, free: 31.43 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 7.486e-05/0.2998, allocations: 24.16 kB / 461.1 MB, free: 31.42 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002071/0.3, allocations: 86.22 kB / 461.2 MB, free: 31.36 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001412/0.3002, allocations: 30.12 kB / 461.2 MB, free: 31.34 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002577/0.3004, allocations: 280.5 kB / 461.5 MB, free: 31.2 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002447/0.3007, allocations: 128.8 kB / 461.6 MB, free: 31.14 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001659/0.3009, allocations: 117.4 kB / 461.8 MB, free: 31.09 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000134/0.301, allocations: 95.19 kB / 461.8 MB, free: 31.04 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.269e-05/0.301, allocations: 8.469 kB / 461.9 MB, free: 31.04 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.464e-05/0.3011, allocations: 9.031 kB / 461.9 MB, free: 31.04 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.094e-05/0.3011, allocations: 28.62 kB / 461.9 MB, free: 31.02 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001046/0.3012, allocations: 127.9 kB / 462 MB, free: 30.94 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001563/0.3014, allocations: 163.9 kB / 462.2 MB, free: 30.89 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.3014, allocations: 3.234 kB / 462.2 MB, free: 30.89 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3014, allocations: 7.938 kB / 462.2 MB, free: 30.88 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.492e-06/0.3014, allocations: 1.156 kB / 462.2 MB, free: 30.88 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.0005714/0.302, allocations: 482.7 kB / 462.7 MB, free: 30.44 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.817e-05/0.302, allocations: 10.31 kB / 462.7 MB, free: 30.44 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.505e-05/0.3021, allocations: 31.53 kB / 462.7 MB, free: 30.43 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002397/0.3023, allocations: 265.1 kB / 463 MB, free: 30.18 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.935e-05/0.3024, allocations: 14.58 kB / 463 MB, free: 30.17 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.421e-05/0.3024, allocations: 19.06 kB / 463 MB, free: 30.16 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003358/0.3028, allocations: 188.7 kB / 463.2 MB, free: 30.05 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.086e-05/0.3028, allocations: 192 / 463.2 MB, free: 30.05 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.979e-05/0.3028, allocations: 17.64 kB / 463.2 MB, free: 30.04 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.805e-06/0.3028, allocations: 4.531 kB / 463.2 MB, free: 30.04 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002975/0.3031, allocations: 122.7 kB / 463.3 MB, free: 29.99 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007685/0.3039, allocations: 0.8476 MB / 464.2 MB, free: 29.26 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001856/0.3041, allocations: 80.5 kB / 464.2 MB, free: 29.21 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000147/0.3042, allocations: 56.42 kB / 464.3 MB, free: 29.19 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.333e-05/0.3043, allocations: 1.438 kB / 464.3 MB, free: 29.19 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.728e-05/0.3043, allocations: 42.95 kB / 464.3 MB, free: 29.14 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.392e-06/0.3043, allocations: 0 / 464.3 MB, free: 29.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004787/0.3048, allocations: 182.4 kB / 464.5 MB, free: 29.05 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.43e-05/0.3048, allocations: 56.38 kB / 464.6 MB, free: 28.99 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001897/0.305, allocations: 225.2 kB / 464.8 MB, free: 28.86 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.242e-05/0.305, allocations: 25.7 kB / 464.8 MB, free: 28.82 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.723e-05/0.3051, allocations: 145.8 kB / 465 MB, free: 28.69 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.91e-05/0.3051, allocations: 48.92 kB / 465 MB, free: 28.65 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.803e-05/0.3052, allocations: 21.61 kB / 465 MB, free: 28.63 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.976e-05/0.3052, allocations: 338 kB / 465.4 MB, free: 28.3 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000114/0.3054, allocations: 43.7 kB / 465.4 MB, free: 28.29 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001208/0.3055, allocations: 61.62 kB / 465.5 MB, free: 28.25 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007733/0.3063, allocations: 229 kB / 465.7 MB, free: 28.16 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.3063, allocations: 3.938 kB / 465.7 MB, free: 28.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003191/0.3066, allocations: 167.2 kB / 465.9 MB, free: 28.07 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.437e-05/0.3066, allocations: 6.344 kB / 465.9 MB, free: 28.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.471e-06/0.3066, allocations: 0 / 465.9 MB, free: 28.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.381e-05/0.3067, allocations: 2.812 kB / 465.9 MB, free: 28.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002009/0.3069, allocations: 41.78 kB / 465.9 MB, free: 28.06 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.66e-06/0.3069, allocations: 1.219 kB / 465.9 MB, free: 28.06 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001063/0.307, allocations: 16.84 kB / 465.9 MB, free: 28.05 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.08e-05/0.307, allocations: 4.25 kB / 465.9 MB, free: 28.05 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.0001493/0.3072, allocations: 138.5 kB / 466.1 MB, free: 27.92 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.06e-05/0.3072, allocations: 21.34 kB / 466.1 MB, free: 27.91 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.034e-05/0.3073, allocations: 26.33 kB / 466.1 MB, free: 27.89 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.416e-06/0.3073, allocations: 1.219 kB / 466.1 MB, free: 27.89 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.3073, allocations: 0.9375 kB / 466.1 MB, free: 27.89 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.3073, allocations: 3.375 kB / 466.1 MB, free: 27.89 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000223/0.3075, allocations: 265.3 kB / 466.4 MB, free: 27.65 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.3075, allocations: 0 / 466.4 MB, free: 27.65 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001924/0.3077, allocations: 31.91 kB / 466.4 MB, free: 27.65 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.567e-06/0.3077, allocations: 4.453 kB / 466.4 MB, free: 27.65 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.162e-05/0.3077, allocations: 1.062 kB / 466.4 MB, free: 27.65 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/0.3078, allocations: 1.219 kB / 466.4 MB, free: 27.65 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.3078, allocations: 0 / 466.4 MB, free: 27.65 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004458/0.3082, allocations: 303 kB / 466.7 MB, free: 27.44 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.145e-05/0.3083, allocations: 98.47 kB / 466.8 MB, free: 27.34 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.869e-05/0.3083, allocations: 4 kB / 466.8 MB, free: 27.33 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001181/0.3084, allocations: 2.688 kB / 466.8 MB, free: 27.33 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.213e-05/0.3085, allocations: 16.08 kB / 466.8 MB, free: 27.33 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.173e-06/0.3085, allocations: 2.688 kB / 466.8 MB, free: 27.33 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000112/0.3086, allocations: 166.6 kB / 467 MB, free: 27.23 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3086, allocations: 0 / 467 MB, free: 27.23 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002648/0.3089, allocations: 51.59 kB / 467 MB, free: 27.21 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 8.706e-05/0.309, allocations: 99.28 kB / 467.1 MB, free: 27.12 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003108/0.3093, allocations: 113.5 kB / 467.3 MB, free: 27.09 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.3093, allocations: 4.969 kB / 467.3 MB, free: 27.08 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001262/0.3094, allocations: 56.19 kB / 467.3 MB, free: 27.07 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003695/0.3098, allocations: 53.14 kB / 467.4 MB, free: 27.04 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009186/0.3107, allocations: 0.7059 MB / 468.1 MB, free: 26.57 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001781/0.3109, allocations: 0.7405 MB / 468.8 MB, free: 25.88 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.879e-05/0.311, allocations: 20.62 kB / 468.8 MB, free: 25.87 MB / 350.1 MB Notification: Performance of SimCode: time 2.8e-07/0.311, allocations: 0 / 468.8 MB, free: 25.87 MB / 350.1 MB Notification: Performance of Templates: time 0.004094/0.3151, allocations: 2.596 MB / 471.4 MB, free: 25.12 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)