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.001368/0.001368, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001393/0.001393, allocations: 191.9 kB / 16.25 MB, free: 6.633 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.361/1.361, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2014/0.2014, allocations: 22.35 MB / 312.4 MB, free: 12.61 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001289/0.001289, allocations: 71.91 kB / 380.3 MB, free: 10.97 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2511/0.2524, allocations: 54.94 MB / 435.2 MB, free: 39.66 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.03099/0.2834, allocations: 22.63 MB / 457.9 MB, free: 31.29 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001357/0.2848, allocations: 456.7 kB / 458.3 MB, free: 30.96 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003897/0.2852, allocations: 13.09 kB / 458.3 MB, free: 30.95 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000143/0.2853, allocations: 31.89 kB / 458.4 MB, free: 30.94 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004442/0.2858, allocations: 119.3 kB / 458.5 MB, free: 30.86 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000232/0.286, allocations: 68.59 kB / 458.5 MB, free: 30.82 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004177/0.2865, allocations: 435.1 kB / 459 MB, free: 30.59 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003749/0.2869, allocations: 235.9 kB / 459.2 MB, free: 30.49 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003088/0.2872, allocations: 184.4 kB / 459.4 MB, free: 30.41 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002765/0.2875, allocations: 184.1 kB / 459.6 MB, free: 30.32 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.981e-05/0.2875, allocations: 28 kB / 459.6 MB, free: 30.32 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001909/0.2877, allocations: 53.83 kB / 459.6 MB, free: 30.32 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.131e-05/0.2878, allocations: 73.94 kB / 459.7 MB, free: 30.27 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001776/0.288, allocations: 188.6 kB / 459.9 MB, free: 30.16 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003846/0.2884, allocations: 393.6 kB / 460.3 MB, free: 30 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.2884, allocations: 0 / 460.3 MB, free: 30 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.2884, allocations: 1.156 kB / 460.3 MB, free: 30 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.906e-06/0.2884, allocations: 0 / 460.3 MB, free: 30 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.0009289/0.2893, allocations: 0.6375 MB / 460.9 MB, free: 29.47 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.887e-05/0.2894, allocations: 9.062 kB / 460.9 MB, free: 29.47 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.611e-05/0.2895, allocations: 38.5 kB / 461 MB, free: 29.45 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003036/0.2898, allocations: 319.1 kB / 461.3 MB, free: 29.17 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.993e-05/0.2898, allocations: 18.69 kB / 461.3 MB, free: 29.16 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.644e-05/0.2899, allocations: 28.44 kB / 461.3 MB, free: 29.15 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004122/0.2903, allocations: 274.7 kB / 461.6 MB, free: 29.01 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.103e-05/0.2903, allocations: 192 / 461.6 MB, free: 29.01 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.56e-05/0.2903, allocations: 10.03 kB / 461.6 MB, free: 29 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.726e-06/0.2904, allocations: 11 kB / 461.6 MB, free: 29 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003306/0.2907, allocations: 196.1 kB / 461.8 MB, free: 28.93 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001119/0.2918, allocations: 0.8976 MB / 462.7 MB, free: 28.28 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003338/0.2922, allocations: 170.9 kB / 462.9 MB, free: 28.2 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001808/0.2924, allocations: 101.2 kB / 463 MB, free: 28.16 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.611e-05/0.2924, allocations: 6.531 kB / 463 MB, free: 28.15 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.35e-05/0.2924, allocations: 43.91 kB / 463 MB, free: 28.1 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002092/0.2926, allocations: 35.47 kB / 463 MB, free: 28.09 MB / 350.1 MB Notification: Performance of pre-optimization done (n=18): time 1.463e-06/0.2926, allocations: 0 / 463 MB, free: 28.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=18): time 0.001296/0.2939, allocations: 445.2 kB / 463.5 MB, free: 27.85 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.18e-05/0.294, allocations: 54.34 kB / 463.5 MB, free: 27.79 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002444/0.2942, allocations: 299.4 kB / 463.8 MB, free: 27.62 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.844e-05/0.2942, allocations: 29.7 kB / 463.9 MB, free: 27.59 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.8e-05/0.2943, allocations: 184.9 kB / 464 MB, free: 27.43 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.67e-05/0.2944, allocations: 61.98 kB / 464.1 MB, free: 27.38 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.126e-05/0.2945, allocations: 52.22 kB / 464.1 MB, free: 27.35 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.09e-05/0.2945, allocations: 348.3 kB / 464.5 MB, free: 27.02 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001172/0.2946, allocations: 61.67 kB / 464.5 MB, free: 27 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000126/0.2948, allocations: 89.28 kB / 464.6 MB, free: 26.95 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004011/0.2988, allocations: 0.6999 MB / 465.3 MB, free: 26.79 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.2988, allocations: 0 / 465.3 MB, free: 26.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0007798/0.2996, allocations: 311.8 kB / 465.6 MB, free: 26.65 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.587e-05/0.2996, allocations: 5.75 kB / 465.6 MB, free: 26.65 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.2996, allocations: 0 / 465.6 MB, free: 26.65 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007735/0.3004, allocations: 100.1 kB / 465.7 MB, free: 26.63 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002568/0.3007, allocations: 47.66 kB / 465.8 MB, free: 26.63 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002932/0.301, allocations: 0.5832 MB / 466.4 MB, free: 26.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001895/0.3012, allocations: 5.188 kB / 466.4 MB, free: 26.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.145e-05/0.3012, allocations: 8.906 kB / 466.4 MB, free: 26.07 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.0001782/0.3014, allocations: 147 kB / 466.5 MB, free: 25.93 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.901e-05/0.3015, allocations: 33.11 kB / 466.6 MB, free: 25.91 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008633/0.3023, allocations: 352.2 kB / 466.9 MB, free: 25.76 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.681e-06/0.3023, allocations: 3.062 kB / 466.9 MB, free: 25.76 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.162e-06/0.3024, allocations: 8.516 kB / 466.9 MB, free: 25.75 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.438e-06/0.3024, allocations: 0 / 466.9 MB, free: 25.75 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001082/0.3035, allocations: 0.7421 MB / 467.7 MB, free: 25.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.3035, allocations: 64 / 467.7 MB, free: 25.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002468/0.3037, allocations: 54.64 kB / 467.7 MB, free: 25.1 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005385/0.3043, allocations: 95.5 kB / 467.8 MB, free: 25.02 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.56e-05/0.3043, allocations: 11.28 kB / 467.8 MB, free: 25.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002472/0.3046, allocations: 0.5821 MB / 468.4 MB, free: 24.41 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.965e-06/0.3046, allocations: 7.969 kB / 468.4 MB, free: 24.41 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007882/0.3054, allocations: 0.5078 MB / 468.9 MB, free: 23.91 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.088e-05/0.3055, allocations: 103.8 kB / 469 MB, free: 23.8 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.616e-05/0.3055, allocations: 4 kB / 469 MB, free: 23.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001814/0.3057, allocations: 8 kB / 469 MB, free: 23.79 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.062e-05/0.3058, allocations: 17.72 kB / 469 MB, free: 23.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.716e-05/0.3058, allocations: 14.94 kB / 469.1 MB, free: 23.76 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001532/0.306, allocations: 214.1 kB / 469.3 MB, free: 23.58 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.306, allocations: 0 / 469.3 MB, free: 23.58 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000339/0.3063, allocations: 75.91 kB / 469.3 MB, free: 23.5 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.0001222/0.3064, allocations: 110.6 kB / 469.4 MB, free: 23.39 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004616/0.3069, allocations: 199.2 kB / 469.6 MB, free: 23.22 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.3069, allocations: 0 / 469.6 MB, free: 23.22 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002334/0.3072, allocations: 129.4 kB / 469.8 MB, free: 23.11 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000424/0.3076, allocations: 69.75 kB / 469.8 MB, free: 23.05 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00101/0.3086, allocations: 0.8022 MB / 470.6 MB, free: 22.25 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001605/0.3088, allocations: 0.7796 MB / 471.4 MB, free: 21.48 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001897/0.309, allocations: 45.39 kB / 471.5 MB, free: 21.45 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.366e-05/0.3091, allocations: 35.33 kB / 471.5 MB, free: 21.41 MB / 350.1 MB Notification: Performance of SimCode: time 9.92e-07/0.3091, allocations: 0 / 471.5 MB, free: 21.41 MB / 350.1 MB Notification: Performance of Templates: time 0.007317/0.3164, allocations: 4.06 MB / 475.6 MB, free: 19.11 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)