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.001173/0.001173, allocations: 108 kB / 15.6 MB, free: 128 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.0012/0.0012, allocations: 193.9 kB / 16.53 MB, free: 6.672 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.437/1.437, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2298/0.2298, allocations: 22.36 MB / 312.7 MB, free: 12.54 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001704/0.001704, allocations: 59.91 kB / 380.8 MB, free: 10.62 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3112/0.313, allocations: 54.95 MB / 435.8 MB, free: 40 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.03506/0.3481, allocations: 22.29 MB / 458.1 MB, free: 31.86 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001413/0.3495, allocations: 414.6 kB / 458.5 MB, free: 31.56 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001704/0.3497, allocations: 16.53 kB / 458.5 MB, free: 31.55 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001043/0.3498, allocations: 47.5 kB / 458.5 MB, free: 31.53 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003589/0.3502, allocations: 141.8 kB / 458.7 MB, free: 31.43 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001985/0.3504, allocations: 82.97 kB / 458.7 MB, free: 31.38 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003498/0.3507, allocations: 419 kB / 459.2 MB, free: 31.17 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003449/0.3511, allocations: 245.9 kB / 459.4 MB, free: 31.06 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000202/0.3513, allocations: 178.5 kB / 459.6 MB, free: 30.98 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002257/0.3515, allocations: 186.1 kB / 459.7 MB, free: 30.89 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.108e-05/0.3516, allocations: 27.97 kB / 459.8 MB, free: 30.89 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001373/0.3517, allocations: 60.19 kB / 459.8 MB, free: 30.89 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.888e-05/0.3518, allocations: 63.69 kB / 459.9 MB, free: 30.84 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001769/0.352, allocations: 178.7 kB / 460.1 MB, free: 30.74 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003709/0.3524, allocations: 398.2 kB / 460.5 MB, free: 30.58 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.3524, allocations: 0 / 460.5 MB, free: 30.58 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.3524, allocations: 0 / 460.5 MB, free: 30.58 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.977e-06/0.3524, allocations: 1.25 kB / 460.5 MB, free: 30.58 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.0009519/0.3534, allocations: 0.6479 MB / 461.1 MB, free: 30.04 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.952e-05/0.3534, allocations: 9.094 kB / 461.1 MB, free: 30.04 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.654e-05/0.3535, allocations: 38.97 kB / 461.2 MB, free: 30.02 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003692/0.3539, allocations: 306.3 kB / 461.5 MB, free: 29.76 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.277e-05/0.3539, allocations: 19 kB / 461.5 MB, free: 29.75 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.453e-05/0.354, allocations: 27.72 kB / 461.5 MB, free: 29.74 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004678/0.3545, allocations: 275.6 kB / 461.8 MB, free: 29.6 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.499e-05/0.3545, allocations: 1.312 kB / 461.8 MB, free: 29.6 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.943e-05/0.3545, allocations: 13.97 kB / 461.8 MB, free: 29.59 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.636e-05/0.3545, allocations: 5.562 kB / 461.8 MB, free: 29.59 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003902/0.3549, allocations: 191 kB / 462 MB, free: 29.52 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00129/0.3562, allocations: 0.9116 MB / 462.9 MB, free: 28.86 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003523/0.3566, allocations: 167.1 kB / 463.1 MB, free: 28.78 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001966/0.3568, allocations: 103.7 kB / 463.2 MB, free: 28.73 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.42e-05/0.3568, allocations: 1.25 kB / 463.2 MB, free: 28.73 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.798e-05/0.3569, allocations: 39.69 kB / 463.2 MB, free: 28.69 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0001967/0.3571, allocations: 37.41 kB / 463.2 MB, free: 28.67 MB / 350.1 MB Notification: Performance of pre-optimization done (n=18): time 1.553e-06/0.3571, allocations: 0 / 463.2 MB, free: 28.67 MB / 350.1 MB Notification: Performance of matching and sorting (n=18): time 0.001361/0.3584, allocations: 454.8 kB / 463.7 MB, free: 28.43 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.38e-05/0.3585, allocations: 52.78 kB / 463.7 MB, free: 28.36 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002635/0.3587, allocations: 297.8 kB / 464 MB, free: 28.2 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.812e-05/0.3588, allocations: 29.7 kB / 464 MB, free: 28.16 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.011e-05/0.3589, allocations: 180.7 kB / 464.2 MB, free: 28.01 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.061e-05/0.3589, allocations: 66.28 kB / 464.3 MB, free: 27.96 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.892e-05/0.359, allocations: 48.72 kB / 464.3 MB, free: 27.93 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.233e-05/0.3591, allocations: 343.1 kB / 464.7 MB, free: 27.6 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000129/0.3592, allocations: 66.59 kB / 464.7 MB, free: 27.57 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001331/0.3594, allocations: 88.34 kB / 464.8 MB, free: 27.53 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003918/0.3633, allocations: 0.7063 MB / 465.5 MB, free: 27.37 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.3633, allocations: 0 / 465.5 MB, free: 27.37 MB / 350.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0008034/0.3641, allocations: 307.8 kB / 465.8 MB, free: 27.23 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.785e-05/0.3641, allocations: 5.875 kB / 465.8 MB, free: 27.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.64e-06/0.3641, allocations: 0 / 465.8 MB, free: 27.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007614/0.3649, allocations: 112.2 kB / 465.9 MB, free: 27.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002483/0.3652, allocations: 43.5 kB / 466 MB, free: 27.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003217/0.3655, allocations: 0.5874 MB / 466.6 MB, free: 26.64 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001733/0.3657, allocations: 9.031 kB / 466.6 MB, free: 26.63 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.167e-05/0.3657, allocations: 10.62 kB / 466.6 MB, free: 26.63 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.0001965/0.3659, allocations: 139.2 kB / 466.7 MB, free: 26.5 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.916e-05/0.366, allocations: 32.98 kB / 466.8 MB, free: 26.48 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008579/0.3668, allocations: 356.3 kB / 467.1 MB, free: 26.27 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.049e-06/0.3669, allocations: 4 kB / 467.1 MB, free: 26.26 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.862e-06/0.3669, allocations: 0 / 467.1 MB, free: 26.26 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-06/0.3669, allocations: 0 / 467.1 MB, free: 26.26 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001081/0.368, allocations: 0.7451 MB / 467.9 MB, free: 25.56 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.368, allocations: 4.062 kB / 467.9 MB, free: 25.55 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002241/0.3682, allocations: 39.7 kB / 467.9 MB, free: 25.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005036/0.3687, allocations: 98.45 kB / 468 MB, free: 25.45 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.122e-05/0.3688, allocations: 8 kB / 468 MB, free: 25.44 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002548/0.369, allocations: 0.5929 MB / 468.6 MB, free: 24.83 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.369, allocations: 0 / 468.6 MB, free: 24.83 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007682/0.3698, allocations: 0.5108 MB / 469.1 MB, free: 24.33 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.612e-05/0.3699, allocations: 100.7 kB / 469.2 MB, free: 24.21 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.929e-05/0.3699, allocations: 7.469 kB / 469.2 MB, free: 24.21 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00016/0.3701, allocations: 8 kB / 469.2 MB, free: 24.2 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.143e-05/0.3702, allocations: 18.84 kB / 469.2 MB, free: 24.19 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.462e-05/0.3702, allocations: 11.88 kB / 469.3 MB, free: 24.18 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001682/0.3704, allocations: 218.5 kB / 469.5 MB, free: 23.99 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3704, allocations: 3.938 kB / 469.5 MB, free: 23.99 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003365/0.3707, allocations: 71.84 kB / 469.5 MB, free: 23.92 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.0001543/0.3709, allocations: 111.3 kB / 469.6 MB, free: 23.8 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004632/0.3713, allocations: 211.1 kB / 469.9 MB, free: 23.62 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.3714, allocations: 0 / 469.9 MB, free: 23.62 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002206/0.3716, allocations: 122.3 kB / 470 MB, free: 23.51 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004284/0.372, allocations: 67.94 kB / 470 MB, free: 23.46 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00098/0.373, allocations: 0.7004 MB / 470.7 MB, free: 22.76 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001681/0.3732, allocations: 0.7809 MB / 471.5 MB, free: 21.99 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001631/0.3734, allocations: 40.7 kB / 471.6 MB, free: 21.96 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.701e-05/0.3734, allocations: 34.81 kB / 471.6 MB, free: 21.93 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3734, allocations: 0 / 471.6 MB, free: 21.93 MB / 350.1 MB Notification: Performance of Templates: time 0.007803/0.3812, allocations: 4.069 MB / 475.7 MB, free: 19.63 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)