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.00119/0.00119, allocations: 108.1 kB / 16.41 MB, free: 6.496 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.001288/0.001288, allocations: 187 kB / 17.34 MB, free: 5.762 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.397/1.397, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.0878/0.0878, allocations: 22.32 MB / 313.5 MB, free: 8.883 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001477/0.001477, allocations: 67.89 kB / 437.7 MB, free: 11.77 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.111/0.1125, allocations: 54.95 MB / 492.7 MB, free: 4.77 MB / 366.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.4576/0.5702, allocations: 22.29 MB / 0.5029 GB, free: 5.758 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001224/0.5715, allocations: 417.1 kB / 0.5033 GB, free: 5.754 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002022/0.5717, allocations: 13.56 kB / 0.5033 GB, free: 5.754 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001106/0.5718, allocations: 47.59 kB / 0.5033 GB, free: 5.754 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000396/0.5722, allocations: 133.8 kB / 0.5035 GB, free: 5.754 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002373/0.5725, allocations: 90.86 kB / 0.5036 GB, free: 5.754 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003643/0.5728, allocations: 420.4 kB / 0.504 GB, free: 5.648 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003486/0.5732, allocations: 247.8 kB / 0.5042 GB, free: 5.637 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002408/0.5734, allocations: 198.7 kB / 0.5044 GB, free: 5.598 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002183/0.5737, allocations: 181 kB / 0.5046 GB, free: 5.559 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.641e-05/0.5737, allocations: 27.44 kB / 0.5046 GB, free: 5.559 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001469/0.5739, allocations: 58.47 kB / 0.5046 GB, free: 5.559 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.64e-05/0.5739, allocations: 75.59 kB / 0.5047 GB, free: 5.543 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001592/0.5741, allocations: 177.7 kB / 0.5049 GB, free: 5.492 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004844/0.5746, allocations: 399.2 kB / 0.5053 GB, free: 5.422 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/0.5746, allocations: 1.062 kB / 0.5053 GB, free: 5.422 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.5746, allocations: 0 / 0.5053 GB, free: 5.422 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.684e-06/0.5746, allocations: 0 / 0.5053 GB, free: 5.422 MB / 382.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.0009719/0.5756, allocations: 0.6373 MB / 0.5059 GB, free: 4.938 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.171e-05/0.5757, allocations: 15.19 kB / 0.5059 GB, free: 4.934 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.231e-05/0.5757, allocations: 45.06 kB / 0.5059 GB, free: 4.914 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003488/0.5761, allocations: 317.1 kB / 0.5062 GB, free: 4.68 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.15e-05/0.5761, allocations: 15.84 kB / 0.5063 GB, free: 4.68 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.703e-05/0.5762, allocations: 24.75 kB / 0.5063 GB, free: 4.68 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004217/0.5766, allocations: 275.8 kB / 0.5065 GB, free: 4.613 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.273e-05/0.5766, allocations: 192 / 0.5065 GB, free: 4.613 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.856e-05/0.5767, allocations: 14.62 kB / 0.5066 GB, free: 4.609 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.995e-06/0.5767, allocations: 5.594 kB / 0.5066 GB, free: 4.609 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003399/0.577, allocations: 193.3 kB / 0.5067 GB, free: 4.609 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001207/0.5782, allocations: 0.9002 MB / 0.5076 GB, free: 4.117 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003434/0.5786, allocations: 172.9 kB / 0.5078 GB, free: 4.086 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000193/0.5788, allocations: 97.77 kB / 0.5079 GB, free: 4.078 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.122e-05/0.5788, allocations: 3.047 kB / 0.5079 GB, free: 4.078 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.827e-05/0.5789, allocations: 37.69 kB / 0.5079 GB, free: 4.035 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0001978/0.5791, allocations: 42.28 kB / 0.508 GB, free: 4.027 MB / 382.1 MB Notification: Performance of pre-optimization done (n=18): time 1.663e-06/0.5791, allocations: 0 / 0.508 GB, free: 4.027 MB / 382.1 MB Notification: Performance of matching and sorting (n=18): time 0.001332/0.5804, allocations: 443.1 kB / 0.5084 GB, free: 3.871 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.02e-05/0.5805, allocations: 54.25 kB / 0.5084 GB, free: 3.809 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002798/0.5807, allocations: 299.1 kB / 0.5087 GB, free: 3.699 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.046e-05/0.5808, allocations: 29.52 kB / 0.5087 GB, free: 3.668 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.712e-05/0.5809, allocations: 182.6 kB / 0.5089 GB, free: 3.555 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.816e-05/0.5809, allocations: 63.28 kB / 0.509 GB, free: 3.516 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.584e-05/0.581, allocations: 45.23 kB / 0.509 GB, free: 3.5 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.791e-05/0.5811, allocations: 343.6 kB / 0.5094 GB, free: 3.184 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001268/0.5812, allocations: 66.33 kB / 0.5094 GB, free: 3.184 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001365/0.5814, allocations: 86.83 kB / 0.5095 GB, free: 3.168 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003975/0.5853, allocations: 0.6924 MB / 0.5102 GB, free: 3.148 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.5854, allocations: 0 / 0.5102 GB, free: 3.148 MB / 382.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0008604/0.5862, allocations: 314 kB / 0.5105 GB, free: 3.082 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.113e-05/0.5863, allocations: 7.438 kB / 0.5105 GB, free: 3.082 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.616e-06/0.5863, allocations: 1.25 kB / 0.5105 GB, free: 3.082 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007654/0.5871, allocations: 107.8 kB / 0.5106 GB, free: 3.074 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002635/0.5873, allocations: 49.08 kB / 0.5106 GB, free: 3.07 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003264/0.5877, allocations: 0.5772 MB / 0.5112 GB, free: 2.547 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000204/0.5879, allocations: 4.531 kB / 0.5112 GB, free: 2.547 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.22e-05/0.5879, allocations: 19.94 kB / 0.5112 GB, free: 2.539 MB / 382.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.0002199/0.5881, allocations: 146.2 kB / 0.5114 GB, free: 2.422 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.758e-05/0.5882, allocations: 29.84 kB / 0.5114 GB, free: 2.406 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008855/0.5891, allocations: 359.3 kB / 0.5117 GB, free: 2.34 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.132e-06/0.5891, allocations: 4.188 kB / 0.5117 GB, free: 2.34 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.033e-06/0.5891, allocations: 2.656 kB / 0.5117 GB, free: 2.34 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.043e-06/0.5891, allocations: 2.172 kB / 0.5117 GB, free: 2.34 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001257/0.5904, allocations: 0.7264 MB / 0.5124 GB, free: 2 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.24e-06/0.5904, allocations: 2.219 kB / 0.5125 GB, free: 2 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002344/0.5907, allocations: 48.16 kB / 0.5125 GB, free: 1.996 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005477/0.5912, allocations: 98.44 kB / 0.5126 GB, free: 1.988 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.768e-05/0.5912, allocations: 7.375 kB / 0.5126 GB, free: 1.988 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002907/0.5915, allocations: 0.6008 MB / 0.5132 GB, free: 1.461 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.5916, allocations: 0 / 0.5132 GB, free: 1.461 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000906/0.5925, allocations: 0.5011 MB / 0.5137 GB, free: 1.281 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.147e-05/0.5926, allocations: 110.7 kB / 0.5138 GB, free: 1.168 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.709e-05/0.5926, allocations: 6.406 kB / 0.5138 GB, free: 1.168 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001663/0.5928, allocations: 6.625 kB / 0.5138 GB, free: 1.168 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.749e-05/0.5929, allocations: 18.42 kB / 0.5138 GB, free: 1.168 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.048e-05/0.5929, allocations: 13.67 kB / 0.5138 GB, free: 1.164 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002244/0.5931, allocations: 214.5 kB / 0.514 GB, free: 1.082 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5931, allocations: 0 / 0.514 GB, free: 1.082 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003929/0.5935, allocations: 71.34 kB / 0.5141 GB, free: 1.078 MB / 382.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.0001549/0.5937, allocations: 113.4 kB / 0.5142 GB, free: 0.9844 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000578/0.5943, allocations: 195.6 kB / 0.5144 GB, free: 0.9805 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.387e-06/0.5943, allocations: 0 / 0.5144 GB, free: 0.9805 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002728/0.5946, allocations: 135.8 kB / 0.5145 GB, free: 0.957 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000466/0.5951, allocations: 60.75 kB / 0.5146 GB, free: 0.957 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00129/0.5964, allocations: 0.7198 MB / 0.5153 GB, free: 0.6055 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003061/0.5967, allocations: 0.7775 MB / 0.516 GB, free: 15.91 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001035/0.5968, allocations: 31.23 kB / 0.5161 GB, free: 15.9 MB / 398.1 MB Notification: Performance of SimCode: time 4.21e-07/0.5968, allocations: 0 / 0.5161 GB, free: 15.9 MB / 398.1 MB Notification: Performance of Templates: time 0.01129/0.6081, allocations: 5.055 MB / 0.521 GB, free: 15.05 MB / 398.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)