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.0008242/0.0008239, allocations: 98.88 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.0009127/0.0009127, allocations: 188.4 kB / 16.93 MB, free: 6.766 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.341/1.341, allocations: 223.3 MB / 241 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2217/0.2217, allocations: 22.35 MB / 314.4 MB, free: 13.1 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003307/0.0003306, allocations: 8 kB / 383.3 MB, free: 10.21 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2805/0.2808, allocations: 55.99 MB / 439.2 MB, free: 39.36 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.02172/0.3026, allocations: 22.13 MB / 461.4 MB, free: 31.23 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001196/0.3038, allocations: 449.7 kB / 461.8 MB, free: 30.9 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000169/0.304, allocations: 13.12 kB / 461.8 MB, free: 30.9 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 7.352e-05/0.304, allocations: 32.31 kB / 461.9 MB, free: 30.88 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003285/0.3044, allocations: 117.7 kB / 462 MB, free: 30.8 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001657/0.3045, allocations: 72.75 kB / 462 MB, free: 30.76 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003542/0.3049, allocations: 413.4 kB / 462.4 MB, free: 30.55 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003171/0.3052, allocations: 203.6 kB / 462.6 MB, free: 30.47 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002172/0.3055, allocations: 174.9 kB / 462.8 MB, free: 30.39 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002044/0.3057, allocations: 170.6 kB / 463 MB, free: 30.31 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.112e-05/0.3057, allocations: 22.31 kB / 463 MB, free: 30.31 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001173/0.3058, allocations: 46.69 kB / 463 MB, free: 30.3 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.616e-05/0.3059, allocations: 63.62 kB / 463.1 MB, free: 30.26 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001471/0.3061, allocations: 194.9 kB / 463.3 MB, free: 30.14 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002625/0.3063, allocations: 286.9 kB / 463.6 MB, free: 30.07 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.3063, allocations: 4 kB / 463.6 MB, free: 30.06 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.3063, allocations: 0 / 463.6 MB, free: 30.06 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.54e-06/0.3064, allocations: 1.031 kB / 463.6 MB, free: 30.06 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.0008065/0.3072, allocations: 0.584 MB / 464.2 MB, free: 29.56 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.729e-05/0.3072, allocations: 12.94 kB / 464.2 MB, free: 29.56 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.485e-05/0.3073, allocations: 34.66 kB / 464.2 MB, free: 29.54 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002765/0.3076, allocations: 317.5 kB / 464.5 MB, free: 29.27 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.973e-05/0.3076, allocations: 23.03 kB / 464.5 MB, free: 29.26 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.63e-05/0.3076, allocations: 23.06 kB / 464.6 MB, free: 29.25 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003812/0.308, allocations: 275.2 kB / 464.8 MB, free: 29.11 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.03e-05/0.3081, allocations: 192 / 464.8 MB, free: 29.11 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.494e-05/0.3081, allocations: 10.5 kB / 464.8 MB, free: 29.1 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.196e-06/0.3081, allocations: 5.156 kB / 464.9 MB, free: 29.1 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003193/0.3084, allocations: 195.5 kB / 465 MB, free: 29.03 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001079/0.3095, allocations: 0.905 MB / 465.9 MB, free: 28.38 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003181/0.3098, allocations: 174.4 kB / 466.1 MB, free: 28.29 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001828/0.31, allocations: 96.95 kB / 466.2 MB, free: 28.25 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.684e-05/0.3101, allocations: 1.156 kB / 466.2 MB, free: 28.25 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.486e-05/0.3101, allocations: 43.72 kB / 466.3 MB, free: 28.2 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000193/0.3103, allocations: 33.11 kB / 466.3 MB, free: 28.19 MB / 350.1 MB Notification: Performance of pre-optimization done (n=18): time 1.442e-06/0.3103, allocations: 4 kB / 466.3 MB, free: 28.19 MB / 350.1 MB Notification: Performance of matching and sorting (n=18): time 0.001253/0.3116, allocations: 444.2 kB / 466.7 MB, free: 27.95 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.239e-05/0.3116, allocations: 53.44 kB / 466.8 MB, free: 27.89 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002524/0.3118, allocations: 296.1 kB / 467.1 MB, free: 27.73 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.793e-05/0.3119, allocations: 30.89 kB / 467.1 MB, free: 27.69 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.984e-05/0.312, allocations: 181.7 kB / 467.3 MB, free: 27.54 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.764e-05/0.312, allocations: 68.88 kB / 467.3 MB, free: 27.48 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.708e-05/0.312, allocations: 31.62 kB / 467.4 MB, free: 27.46 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.649e-05/0.3121, allocations: 343.7 kB / 467.7 MB, free: 27.13 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001156/0.3122, allocations: 60.77 kB / 467.8 MB, free: 27.11 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001219/0.3124, allocations: 89.08 kB / 467.9 MB, free: 27.06 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003769/0.3161, allocations: 0.6985 MB / 468.6 MB, free: 26.91 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.3161, allocations: 1 kB / 468.6 MB, free: 26.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0007394/0.3169, allocations: 322.2 kB / 468.9 MB, free: 26.75 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.523e-05/0.3169, allocations: 5.031 kB / 468.9 MB, free: 26.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.3169, allocations: 5.25 kB / 468.9 MB, free: 26.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007846/0.3177, allocations: 101.2 kB / 469 MB, free: 26.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002392/0.318, allocations: 48.45 kB / 469 MB, free: 26.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000318/0.3183, allocations: 0.5785 MB / 469.6 MB, free: 26.17 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001751/0.3185, allocations: 5.344 kB / 469.6 MB, free: 26.17 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.207e-05/0.3185, allocations: 9.719 kB / 469.6 MB, free: 26.17 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: 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001816/0.3187, allocations: 147 kB / 469.8 MB, free: 26.03 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.167e-05/0.3188, allocations: 33.66 kB / 469.8 MB, free: 26.01 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008299/0.3196, allocations: 364.7 kB / 470.2 MB, free: 25.85 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.833e-06/0.3196, allocations: 7.188 kB / 470.2 MB, free: 25.84 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.3196, allocations: 64 / 470.2 MB, free: 25.84 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.3196, allocations: 9.094 kB / 470.2 MB, free: 25.84 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00102/0.3207, allocations: 0.7325 MB / 470.9 MB, free: 25.17 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.3207, allocations: 0 / 470.9 MB, free: 25.17 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002158/0.3209, allocations: 38.52 kB / 470.9 MB, free: 25.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005705/0.3215, allocations: 108.4 kB / 471 MB, free: 25.05 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.917e-05/0.3215, allocations: 11.19 kB / 471.1 MB, free: 25.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002274/0.3217, allocations: 0.5901 MB / 471.6 MB, free: 24.44 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.3217, allocations: 4.031 kB / 471.6 MB, free: 24.43 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007525/0.3225, allocations: 0.5046 MB / 472.2 MB, free: 23.95 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.03e-05/0.3226, allocations: 108.7 kB / 472.3 MB, free: 23.82 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.237e-05/0.3226, allocations: 7.938 kB / 472.3 MB, free: 23.81 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001697/0.3228, allocations: 7.281 kB / 472.3 MB, free: 23.81 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.528e-05/0.3229, allocations: 18.61 kB / 472.3 MB, free: 23.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.422e-05/0.3229, allocations: 7.938 kB / 472.3 MB, free: 23.79 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001493/0.323, allocations: 222.3 kB / 472.5 MB, free: 23.6 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.323, allocations: 0 / 472.5 MB, free: 23.6 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003151/0.3234, allocations: 75.84 kB / 472.6 MB, free: 23.52 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001277/0.3235, allocations: 106.5 kB / 472.7 MB, free: 23.41 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003993/0.3239, allocations: 189.3 kB / 472.9 MB, free: 23.25 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.3239, allocations: 0 / 472.9 MB, free: 23.25 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002153/0.3241, allocations: 127.3 kB / 473 MB, free: 23.14 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004379/0.3246, allocations: 67.3 kB / 473.1 MB, free: 23.08 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009175/0.3255, allocations: 0.8943 MB / 474 MB, free: 22.23 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001504/0.3257, allocations: 0.7807 MB / 474.7 MB, free: 21.46 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.843e-05/0.3258, allocations: 30.67 kB / 474.8 MB, free: 21.43 MB / 350.1 MB Notification: Performance of SimCode: time 8.92e-07/0.3258, allocations: 0 / 474.8 MB, free: 21.43 MB / 350.1 MB Notification: Performance of Templates: time 0.006274/0.332, allocations: 4.997 MB / 479.8 MB, free: 18.68 MB / 350.1 MB make -j1 -f AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.makefile (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)