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.006219/0.006219, allocations: 100.7 kB / 15.87 MB, free: 5.867 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.001591/0.001591, allocations: 191.2 kB / 16.79 MB, free: 5.809 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.325/1.325, allocations: 222.9 MB / 240.5 MB, free: 4.57 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1983/0.1983, allocations: 22.34 MB / 313 MB, free: 12.61 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001345/0.001345, allocations: 59.91 kB / 380.7 MB, free: 11.13 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2424/0.2437, allocations: 54.95 MB / 435.7 MB, free: 39.52 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Liquid/HE_LiquidLiquid_1vol.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/Liquid/HE_LiquidLiquid_1vol.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.02864/0.2724, allocations: 22.51 MB / 458.2 MB, free: 31.2 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001103/0.2735, allocations: 474.2 kB / 458.7 MB, free: 30.85 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001645/0.2737, allocations: 13.47 kB / 458.7 MB, free: 30.85 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.372e-05/0.2738, allocations: 28.11 kB / 458.7 MB, free: 30.84 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003157/0.2741, allocations: 125 kB / 458.8 MB, free: 30.75 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000155/0.2743, allocations: 68.22 kB / 458.9 MB, free: 30.71 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002845/0.2746, allocations: 405.9 kB / 459.3 MB, free: 30.5 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000258/0.2749, allocations: 216.3 kB / 459.5 MB, free: 30.42 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001932/0.2751, allocations: 183.8 kB / 459.7 MB, free: 30.33 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001807/0.2752, allocations: 173.2 kB / 459.8 MB, free: 30.25 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.709e-05/0.2753, allocations: 21.62 kB / 459.9 MB, free: 30.25 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001247/0.2754, allocations: 49.73 kB / 459.9 MB, free: 30.25 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.697e-05/0.2755, allocations: 71.16 kB / 460 MB, free: 30.2 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001392/0.2756, allocations: 166.9 kB / 460.2 MB, free: 30.11 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002314/0.2759, allocations: 291.8 kB / 460.4 MB, free: 30.01 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.2759, allocations: 5.031 kB / 460.4 MB, free: 30.01 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.31e-07/0.2759, allocations: 0 / 460.4 MB, free: 30.01 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.29e-06/0.2759, allocations: 0 / 460.4 MB, free: 30.01 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.0008668/0.2768, allocations: 0.6365 MB / 461.1 MB, free: 29.48 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.595e-05/0.2768, allocations: 13.62 kB / 461.1 MB, free: 29.48 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.21e-05/0.2769, allocations: 41.97 kB / 461.1 MB, free: 29.45 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002846/0.2772, allocations: 315 kB / 461.4 MB, free: 29.18 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.199e-05/0.2772, allocations: 17.72 kB / 461.5 MB, free: 29.17 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.249e-05/0.2773, allocations: 23.41 kB / 461.5 MB, free: 29.16 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004097/0.2777, allocations: 272 kB / 461.7 MB, free: 29.03 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.011e-05/0.2777, allocations: 192 / 461.7 MB, free: 29.03 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.723e-05/0.2777, allocations: 14.16 kB / 461.8 MB, free: 29.02 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.708e-06/0.2777, allocations: 6.406 kB / 461.8 MB, free: 29.02 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003329/0.2781, allocations: 198.2 kB / 462 MB, free: 28.94 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00113/0.2792, allocations: 0.906 MB / 462.9 MB, free: 28.29 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003272/0.2796, allocations: 165 kB / 463 MB, free: 28.21 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001784/0.2797, allocations: 103.4 kB / 463.1 MB, free: 28.17 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.784e-05/0.2798, allocations: 6.188 kB / 463.1 MB, free: 28.16 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.479e-05/0.2798, allocations: 36.25 kB / 463.2 MB, free: 28.12 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002025/0.28, allocations: 35.25 kB / 463.2 MB, free: 28.11 MB / 350.1 MB Notification: Performance of pre-optimization done (n=18): time 1.793e-06/0.28, allocations: 7.922 kB / 463.2 MB, free: 28.1 MB / 350.1 MB Notification: Performance of matching and sorting (n=18): time 0.001316/0.2813, allocations: 445.3 kB / 463.6 MB, free: 27.86 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.045e-05/0.2814, allocations: 56.66 kB / 463.7 MB, free: 27.79 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002447/0.2816, allocations: 292.6 kB / 464 MB, free: 27.64 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.741e-05/0.2816, allocations: 29.7 kB / 464 MB, free: 27.6 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.234e-05/0.2817, allocations: 185.6 kB / 464.2 MB, free: 27.45 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.712e-05/0.2818, allocations: 70.22 kB / 464.3 MB, free: 27.39 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.056e-05/0.2819, allocations: 45.33 kB / 464.3 MB, free: 27.36 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.594e-05/0.2819, allocations: 343.4 kB / 464.6 MB, free: 27.04 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001207/0.282, allocations: 62.41 kB / 464.7 MB, free: 27.01 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001228/0.2822, allocations: 84.33 kB / 464.8 MB, free: 26.97 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004047/0.2862, allocations: 0.7 MB / 465.5 MB, free: 26.81 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.2862, allocations: 0 / 465.5 MB, free: 26.81 MB / 350.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0007609/0.287, allocations: 312.8 kB / 465.8 MB, free: 26.67 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.496e-05/0.287, allocations: 5.344 kB / 465.8 MB, free: 26.67 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.287, allocations: 0 / 465.8 MB, free: 26.67 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007602/0.2878, allocations: 106.6 kB / 465.9 MB, free: 26.65 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002532/0.2881, allocations: 55.47 kB / 466 MB, free: 26.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002967/0.2884, allocations: 0.5786 MB / 466.5 MB, free: 26.08 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001734/0.2886, allocations: 5.438 kB / 466.5 MB, free: 26.08 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.127e-05/0.2886, allocations: 9.109 kB / 466.6 MB, free: 26.08 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.0001858/0.2888, allocations: 161.7 kB / 466.7 MB, free: 25.93 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.507e-05/0.2888, allocations: 28.5 kB / 466.7 MB, free: 25.91 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008103/0.2897, allocations: 355.5 kB / 467.1 MB, free: 25.76 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.809e-06/0.2897, allocations: 3.312 kB / 467.1 MB, free: 25.76 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.379e-06/0.2897, allocations: 4 kB / 467.1 MB, free: 25.75 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.2897, allocations: 4.406 kB / 467.1 MB, free: 25.75 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001069/0.2908, allocations: 0.7384 MB / 467.8 MB, free: 25.26 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.2908, allocations: 1.344 kB / 467.8 MB, free: 25.26 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002461/0.291, allocations: 42.92 kB / 467.9 MB, free: 25.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005784/0.2916, allocations: 104 kB / 468 MB, free: 25.23 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.362e-05/0.2917, allocations: 6.719 kB / 468 MB, free: 25.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002746/0.2919, allocations: 0.5861 MB / 468.6 MB, free: 24.67 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.305e-06/0.292, allocations: 1.125 kB / 468.6 MB, free: 24.67 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007992/0.2928, allocations: 0.5085 MB / 469.1 MB, free: 24.21 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.372e-05/0.2928, allocations: 112.1 kB / 469.2 MB, free: 24.08 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.954e-05/0.2929, allocations: 8 kB / 469.2 MB, free: 24.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001704/0.2931, allocations: 0 / 469.2 MB, free: 24.07 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.029e-05/0.2931, allocations: 18.47 kB / 469.2 MB, free: 24.06 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.672e-05/0.2931, allocations: 15.41 kB / 469.2 MB, free: 24.05 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001508/0.2933, allocations: 218.5 kB / 469.4 MB, free: 23.86 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2933, allocations: 64 / 469.4 MB, free: 23.86 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003174/0.2936, allocations: 79.84 kB / 469.5 MB, free: 23.79 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.0001194/0.2937, allocations: 107.2 kB / 469.6 MB, free: 23.67 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000405/0.2942, allocations: 196.7 kB / 469.8 MB, free: 23.5 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.2942, allocations: 0 / 469.8 MB, free: 23.5 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002164/0.2944, allocations: 120.6 kB / 469.9 MB, free: 23.4 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000416/0.2948, allocations: 61.81 kB / 470 MB, free: 23.35 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009274/0.2958, allocations: 0.8383 MB / 470.8 MB, free: 22.51 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001452/0.2959, allocations: 0.7766 MB / 471.6 MB, free: 21.74 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.431e-05/0.296, allocations: 34.91 kB / 471.6 MB, free: 21.71 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.296, allocations: 4 kB / 471.6 MB, free: 21.71 MB / 350.1 MB Notification: Performance of Templates: time 0.005778/0.3018, allocations: 5.007 MB / 476.7 MB, free: 18.94 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)