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.0009097/0.0009097, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.006242/0.006242, allocations: 168.9 kB / 16.26 MB, free: 6.648 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.424/1.424, allocations: 223.3 MB / 240.3 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.2293/0.2293, allocations: 22.35 MB / 313.8 MB, free: 13.08 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003531/0.0003531, allocations: 8 kB / 382.6 MB, free: 10.15 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3137/0.3141, allocations: 55.98 MB / 438.6 MB, free: 39.48 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.03226/0.3464, allocations: 22.24 MB / 460.8 MB, free: 31.32 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001594/0.348, allocations: 456.6 kB / 461.3 MB, free: 30.99 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004779/0.3485, allocations: 13.66 kB / 461.3 MB, free: 30.99 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001502/0.3487, allocations: 33.78 kB / 461.3 MB, free: 30.97 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007064/0.3494, allocations: 122.5 kB / 461.4 MB, free: 30.89 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002912/0.3497, allocations: 72.22 kB / 461.5 MB, free: 30.84 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006483/0.3504, allocations: 406.7 kB / 461.9 MB, free: 30.64 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003598/0.3508, allocations: 209 kB / 462.1 MB, free: 30.55 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002612/0.351, allocations: 171.2 kB / 462.3 MB, free: 30.48 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002295/0.3513, allocations: 173.1 kB / 462.4 MB, free: 30.4 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.076e-05/0.3513, allocations: 18.44 kB / 462.4 MB, free: 30.4 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001423/0.3515, allocations: 47.11 kB / 462.5 MB, free: 30.39 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.471e-05/0.3515, allocations: 58.06 kB / 462.5 MB, free: 30.36 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001746/0.3517, allocations: 204.4 kB / 462.7 MB, free: 30.23 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003585/0.3521, allocations: 377.9 kB / 463.1 MB, free: 30.1 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.3521, allocations: 0 / 463.1 MB, free: 30.1 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.3521, allocations: 4 kB / 463.1 MB, free: 30.1 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.352e-06/0.3521, allocations: 0 / 463.1 MB, free: 30.1 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.0008466/0.353, allocations: 0.5771 MB / 463.7 MB, free: 29.61 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.654e-05/0.353, allocations: 13.31 kB / 463.7 MB, free: 29.6 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.519e-05/0.3531, allocations: 45.97 kB / 463.8 MB, free: 29.57 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003245/0.3534, allocations: 317.3 kB / 464.1 MB, free: 29.3 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.536e-05/0.3535, allocations: 18.75 kB / 464.1 MB, free: 29.29 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.329e-05/0.3535, allocations: 22.97 kB / 464.1 MB, free: 29.28 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004819/0.354, allocations: 271.7 kB / 464.4 MB, free: 29.14 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.177e-05/0.354, allocations: 192 / 464.4 MB, free: 29.14 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.076e-05/0.3541, allocations: 14.5 kB / 464.4 MB, free: 29.13 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.124e-05/0.3541, allocations: 5.062 kB / 464.4 MB, free: 29.13 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003682/0.3545, allocations: 202.2 kB / 464.6 MB, free: 29.05 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001282/0.3557, allocations: 0.8899 MB / 465.5 MB, free: 28.42 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000341/0.3561, allocations: 183.6 kB / 465.7 MB, free: 28.32 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001906/0.3563, allocations: 99.81 kB / 465.8 MB, free: 28.29 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.099e-05/0.3563, allocations: 2.688 kB / 465.8 MB, free: 28.29 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.893e-05/0.3564, allocations: 43.72 kB / 465.8 MB, free: 28.23 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0001968/0.3566, allocations: 39.84 kB / 465.8 MB, free: 28.21 MB / 350.1 MB Notification: Performance of pre-optimization done (n=18): time 1.292e-06/0.3566, allocations: 0 / 465.8 MB, free: 28.21 MB / 350.1 MB Notification: Performance of matching and sorting (n=18): time 0.001354/0.3579, allocations: 447.3 kB / 466.3 MB, free: 27.98 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.336e-05/0.358, allocations: 53.75 kB / 466.3 MB, free: 27.91 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003085/0.3583, allocations: 296.4 kB / 466.6 MB, free: 27.75 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.209e-05/0.3583, allocations: 31.17 kB / 466.6 MB, free: 27.71 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001036/0.3584, allocations: 192.8 kB / 466.8 MB, free: 27.55 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.423e-05/0.3585, allocations: 68.73 kB / 466.9 MB, free: 27.5 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.897e-05/0.3585, allocations: 24.78 kB / 466.9 MB, free: 27.47 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.343e-05/0.3586, allocations: 345.8 kB / 467.3 MB, free: 27.14 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001327/0.3588, allocations: 63.12 kB / 467.3 MB, free: 27.12 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001384/0.3589, allocations: 88.34 kB / 467.4 MB, free: 27.07 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003997/0.3629, allocations: 0.6975 MB / 468.1 MB, free: 26.92 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.3629, allocations: 1.219 kB / 468.1 MB, free: 26.92 MB / 350.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0008201/0.3638, allocations: 318.7 kB / 468.4 MB, free: 26.77 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.134e-05/0.3638, allocations: 5.312 kB / 468.4 MB, free: 26.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/0.3638, allocations: 1.062 kB / 468.4 MB, free: 26.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008288/0.3646, allocations: 100.9 kB / 468.5 MB, free: 26.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002538/0.3649, allocations: 47.94 kB / 468.6 MB, free: 26.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003669/0.3653, allocations: 0.5799 MB / 469.2 MB, free: 26.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002006/0.3655, allocations: 5.031 kB / 469.2 MB, free: 26.19 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.168e-05/0.3655, allocations: 6.469 kB / 469.2 MB, free: 26.19 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.0002099/0.3657, allocations: 149.2 kB / 469.3 MB, free: 26.04 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.64e-05/0.3658, allocations: 27.62 kB / 469.3 MB, free: 26.01 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008354/0.3666, allocations: 361.5 kB / 469.7 MB, free: 25.71 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-06/0.3667, allocations: 4 kB / 469.7 MB, free: 25.7 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.082e-06/0.3667, allocations: 0 / 469.7 MB, free: 25.7 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.3667, allocations: 3.375 kB / 469.7 MB, free: 25.7 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001142/0.3678, allocations: 0.7351 MB / 470.4 MB, free: 25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/0.3678, allocations: 0 / 470.4 MB, free: 25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002234/0.3681, allocations: 46.72 kB / 470.5 MB, free: 24.96 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005848/0.3687, allocations: 111 kB / 470.6 MB, free: 24.88 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.392e-05/0.3687, allocations: 7.172 kB / 470.6 MB, free: 24.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000274/0.369, allocations: 0.59 MB / 471.2 MB, free: 24.27 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.369, allocations: 0 / 471.2 MB, free: 24.27 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008299/0.3698, allocations: 0.5128 MB / 471.7 MB, free: 23.77 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.093e-05/0.3699, allocations: 104.8 kB / 471.8 MB, free: 23.65 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.437e-05/0.37, allocations: 4 kB / 471.8 MB, free: 23.64 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001682/0.3702, allocations: 4 kB / 471.8 MB, free: 23.64 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.506e-05/0.3702, allocations: 22.83 kB / 471.8 MB, free: 23.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.757e-05/0.3703, allocations: 19.23 kB / 471.8 MB, free: 23.61 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001749/0.3704, allocations: 214.4 kB / 472.1 MB, free: 23.43 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3705, allocations: 0 / 472.1 MB, free: 23.43 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000331/0.3708, allocations: 71.84 kB / 472.1 MB, free: 23.36 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.0001461/0.3709, allocations: 103.2 kB / 472.2 MB, free: 23.25 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004473/0.3714, allocations: 194.8 kB / 472.4 MB, free: 23.08 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.3714, allocations: 11.94 kB / 472.4 MB, free: 23.07 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002349/0.3717, allocations: 120.8 kB / 472.6 MB, free: 22.96 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004547/0.3721, allocations: 63.39 kB / 472.6 MB, free: 22.91 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001065/0.3732, allocations: 0.8645 MB / 473.5 MB, free: 22.1 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001775/0.3734, allocations: 0.7775 MB / 474.3 MB, free: 21.33 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001823/0.3736, allocations: 52.86 kB / 474.3 MB, free: 21.29 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.559e-05/0.3736, allocations: 30.67 kB / 474.3 MB, free: 21.26 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3737, allocations: 0 / 474.3 MB, free: 21.26 MB / 350.1 MB Notification: Performance of Templates: time 0.008052/0.3817, allocations: 3.814 MB / 478.1 MB, free: 19.1 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)