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.001137/0.001137, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001482/0.001482, allocations: 198.1 kB / 16.14 MB, free: 6.711 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.383/1.383, allocations: 222.9 MB / 239.8 MB, free: 4.625 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2305/0.2305, allocations: 22.35 MB / 312.3 MB, free: 12.67 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001376/0.001376, allocations: 63.91 kB / 380.1 MB, free: 11.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.268/0.2694, allocations: 54.94 MB / 435 MB, free: 39.49 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.03347/0.3029, allocations: 22.63 MB / 457.7 MB, free: 31.12 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001297/0.3042, allocations: 455 kB / 458.1 MB, free: 30.79 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002223/0.3045, allocations: 16.62 kB / 458.1 MB, free: 30.78 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001101/0.3046, allocations: 28.7 kB / 458.2 MB, free: 30.77 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000367/0.305, allocations: 121.8 kB / 458.3 MB, free: 30.69 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001768/0.3052, allocations: 72.58 kB / 458.3 MB, free: 30.64 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003619/0.3055, allocations: 414.5 kB / 458.8 MB, free: 30.43 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000308/0.3058, allocations: 208.6 kB / 459 MB, free: 30.35 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002353/0.3061, allocations: 180.9 kB / 459.1 MB, free: 30.27 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002063/0.3063, allocations: 170.4 kB / 459.3 MB, free: 30.19 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.223e-05/0.3064, allocations: 21.91 kB / 459.3 MB, free: 30.19 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001458/0.3065, allocations: 52.61 kB / 459.4 MB, free: 30.18 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.042e-05/0.3066, allocations: 67.92 kB / 459.4 MB, free: 30.14 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001795/0.3068, allocations: 175.5 kB / 459.6 MB, free: 30.04 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003779/0.3072, allocations: 390.3 kB / 460 MB, free: 29.88 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.3072, allocations: 0 / 460 MB, free: 29.88 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.72e-07/0.3072, allocations: 0 / 460 MB, free: 29.88 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.048e-05/0.3072, allocations: 1.219 kB / 460 MB, free: 29.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: 57 * Number of variables: 57 Notification: Performance of Generate backend data structure: time 0.0009455/0.3081, allocations: 0.635 MB / 460.6 MB, free: 29.36 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.332e-05/0.3082, allocations: 13.59 kB / 460.6 MB, free: 29.35 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.974e-05/0.3083, allocations: 38.5 kB / 460.7 MB, free: 29.33 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003279/0.3086, allocations: 317.8 kB / 461 MB, free: 29.05 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.573e-05/0.3087, allocations: 18.47 kB / 461 MB, free: 29.05 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.755e-05/0.3087, allocations: 28 kB / 461 MB, free: 29.04 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004527/0.3092, allocations: 274.8 kB / 461.3 MB, free: 28.89 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.088e-05/0.3092, allocations: 192 / 461.3 MB, free: 28.89 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.833e-05/0.3092, allocations: 14.19 kB / 461.3 MB, free: 28.88 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.112e-05/0.3092, allocations: 6.688 kB / 461.3 MB, free: 28.88 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003605/0.3096, allocations: 198.6 kB / 461.5 MB, free: 28.81 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001209/0.3108, allocations: 0.8996 MB / 462.4 MB, free: 28.16 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003804/0.3112, allocations: 167.9 kB / 462.6 MB, free: 28.08 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002045/0.3114, allocations: 103 kB / 462.7 MB, free: 28.04 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.371e-05/0.3115, allocations: 5.969 kB / 462.7 MB, free: 28.04 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.055e-05/0.3115, allocations: 43.69 kB / 462.7 MB, free: 27.98 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0001975/0.3117, allocations: 31.17 kB / 462.8 MB, free: 27.97 MB / 350.1 MB Notification: Performance of pre-optimization done (n=18): time 1.453e-06/0.3117, allocations: 0 / 462.8 MB, free: 27.97 MB / 350.1 MB Notification: Performance of matching and sorting (n=18): time 0.001336/0.3131, allocations: 445 kB / 463.2 MB, free: 27.73 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.612e-05/0.3131, allocations: 52.94 kB / 463.2 MB, free: 27.67 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002968/0.3134, allocations: 301.1 kB / 463.5 MB, free: 27.51 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.019e-05/0.3134, allocations: 29.7 kB / 463.6 MB, free: 27.48 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001039/0.3135, allocations: 186.5 kB / 463.8 MB, free: 27.32 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.045e-05/0.3136, allocations: 65.03 kB / 463.8 MB, free: 27.27 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.333e-05/0.3137, allocations: 45.66 kB / 463.9 MB, free: 27.24 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.604e-05/0.3137, allocations: 351.6 kB / 464.2 MB, free: 26.9 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001237/0.3139, allocations: 65.42 kB / 464.3 MB, free: 26.88 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001486/0.314, allocations: 85.44 kB / 464.3 MB, free: 26.84 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003887/0.3179, allocations: 0.6982 MB / 465 MB, free: 26.68 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.3179, allocations: 0 / 465 MB, free: 26.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0007827/0.3187, allocations: 308.7 kB / 465.3 MB, free: 26.54 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.011e-05/0.3188, allocations: 9.562 kB / 465.4 MB, free: 26.54 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.3188, allocations: 0 / 465.4 MB, free: 26.54 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007427/0.3195, allocations: 103.7 kB / 465.5 MB, free: 26.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002411/0.3198, allocations: 52.16 kB / 465.5 MB, free: 26.51 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003073/0.3201, allocations: 0.5744 MB / 466.1 MB, free: 25.96 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001855/0.3203, allocations: 5.438 kB / 466.1 MB, free: 25.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.162e-05/0.3203, allocations: 8.875 kB / 466.1 MB, free: 25.95 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.0001904/0.3205, allocations: 151.1 kB / 466.2 MB, free: 25.81 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.55e-05/0.3206, allocations: 29.44 kB / 466.3 MB, free: 25.79 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008247/0.3214, allocations: 358.4 kB / 466.6 MB, free: 25.64 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.3214, allocations: 11.05 kB / 466.6 MB, free: 25.63 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.62e-06/0.3214, allocations: 1.281 kB / 466.6 MB, free: 25.63 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.489e-06/0.3214, allocations: 0 / 466.6 MB, free: 25.63 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001089/0.3225, allocations: 0.7421 MB / 467.4 MB, free: 25.13 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.3225, allocations: 1.25 kB / 467.4 MB, free: 25.13 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002446/0.3228, allocations: 46.48 kB / 467.4 MB, free: 25.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005831/0.3234, allocations: 106 kB / 467.5 MB, free: 25.1 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.254e-05/0.3234, allocations: 11.47 kB / 467.5 MB, free: 25.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002428/0.3237, allocations: 0.5856 MB / 468.1 MB, free: 24.49 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.3237, allocations: 3.938 kB / 468.1 MB, free: 24.48 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00078/0.3245, allocations: 0.4967 MB / 468.6 MB, free: 24 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.749e-05/0.3245, allocations: 108.2 kB / 468.7 MB, free: 23.88 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.937e-05/0.3246, allocations: 12.06 kB / 468.7 MB, free: 23.87 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001637/0.3248, allocations: 0 / 468.7 MB, free: 23.87 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.854e-05/0.3248, allocations: 18.66 kB / 468.8 MB, free: 23.86 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.622e-05/0.3249, allocations: 15.31 kB / 468.8 MB, free: 23.84 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001654/0.325, allocations: 214.9 kB / 469 MB, free: 23.66 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.325, allocations: 4 kB / 469 MB, free: 23.66 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003268/0.3254, allocations: 75.84 kB / 469.1 MB, free: 23.58 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.0001333/0.3255, allocations: 111.2 kB / 469.2 MB, free: 23.46 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004135/0.3259, allocations: 192.6 kB / 469.4 MB, free: 23.3 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.3259, allocations: 0 / 469.4 MB, free: 23.3 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002127/0.3262, allocations: 118.5 kB / 469.5 MB, free: 23.2 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000437/0.3266, allocations: 78.42 kB / 469.6 MB, free: 23.13 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009783/0.3276, allocations: 0.7998 MB / 470.4 MB, free: 22.34 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001834/0.3278, allocations: 0.7798 MB / 471.1 MB, free: 21.57 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001728/0.328, allocations: 41.41 kB / 471.2 MB, free: 21.54 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.181e-05/0.328, allocations: 30.77 kB / 471.2 MB, free: 21.51 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.328, allocations: 0 / 471.2 MB, free: 21.51 MB / 350.1 MB Notification: Performance of Templates: time 0.006999/0.335, allocations: 3.856 MB / 475.1 MB, free: 19.31 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)