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: "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_003",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_003",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006456/0.006456, allocations: 106.2 kB / 15.73 MB, free: 5.984 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.001427/0.001427, allocations: 194.8 kB / 16.67 MB, free: 5.906 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.379/1.379, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09206/0.09206, allocations: 22.32 MB / 312.9 MB, free: 8.875 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001527/0.001528, allocations: 55.91 kB / 436.5 MB, free: 12.26 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.1106, allocations: 54.96 MB / 491.5 MB, free: 5.258 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.4406/0.5512, allocations: 22.27 MB / 0.5017 GB, free: 5.23 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001221/0.5524, allocations: 415.2 kB / 0.5021 GB, free: 5.23 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001867/0.5526, allocations: 12.81 kB / 0.5021 GB, free: 5.23 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001087/0.5527, allocations: 46.09 kB / 0.5022 GB, free: 5.23 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000336/0.5531, allocations: 144.7 kB / 0.5023 GB, free: 5.23 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001827/0.5533, allocations: 79.89 kB / 0.5024 GB, free: 5.23 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003209/0.5536, allocations: 424.9 kB / 0.5028 GB, free: 5.129 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002955/0.5539, allocations: 247.6 kB / 0.503 GB, free: 5.117 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002009/0.5541, allocations: 197.1 kB / 0.5032 GB, free: 5.078 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000197/0.5543, allocations: 180.9 kB / 0.5034 GB, free: 5.039 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.282e-05/0.5544, allocations: 29.5 kB / 0.5034 GB, free: 5.039 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001157/0.5545, allocations: 57.23 kB / 0.5035 GB, free: 5.039 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.555e-05/0.5545, allocations: 73.64 kB / 0.5035 GB, free: 5.023 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001295/0.5547, allocations: 181.8 kB / 0.5037 GB, free: 4.973 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004013/0.5551, allocations: 400.1 kB / 0.5041 GB, free: 4.902 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.5551, allocations: 0 / 0.5041 GB, free: 4.902 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.5551, allocations: 0 / 0.5041 GB, free: 4.902 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.11e-05/0.5551, allocations: 0 / 0.5041 GB, free: 4.902 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.0008878/0.556, allocations: 0.6404 MB / 0.5047 GB, free: 4.418 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.94e-05/0.5561, allocations: 14.23 kB / 0.5047 GB, free: 4.414 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.826e-05/0.5561, allocations: 57.88 kB / 0.5048 GB, free: 4.375 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.242e-05/0.5562, allocations: 39.11 kB / 0.5048 GB, free: 4.355 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003641/0.5566, allocations: 322.8 kB / 0.5051 GB, free: 4.121 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.394e-05/0.5566, allocations: 14.25 kB / 0.5052 GB, free: 4.121 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.635e-05/0.5567, allocations: 24.73 kB / 0.5052 GB, free: 4.121 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004669/0.5571, allocations: 282 kB / 0.5054 GB, free: 4.051 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.3e-05/0.5571, allocations: 3.938 kB / 0.5055 GB, free: 4.047 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.601e-05/0.5572, allocations: 8.812 kB / 0.5055 GB, free: 4.047 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.876e-06/0.5572, allocations: 6.781 kB / 0.5055 GB, free: 4.047 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003477/0.5575, allocations: 191.4 kB / 0.5056 GB, free: 4.047 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001298/0.5589, allocations: 0.9062 MB / 0.5065 GB, free: 3.551 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003661/0.5592, allocations: 170.6 kB / 0.5067 GB, free: 3.523 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002043/0.5594, allocations: 100.4 kB / 0.5068 GB, free: 3.516 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.755e-05/0.5595, allocations: 6.594 kB / 0.5068 GB, free: 3.516 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.09e-05/0.5595, allocations: 35.16 kB / 0.5068 GB, free: 3.473 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000202/0.5597, allocations: 43.23 kB / 0.5069 GB, free: 3.465 MB / 382.1 MB Notification: Performance of pre-optimization done (n=18): time 1.382e-06/0.5597, allocations: 0 / 0.5069 GB, free: 3.465 MB / 382.1 MB Notification: Performance of matching and sorting (n=18): time 0.00137/0.5611, allocations: 440.2 kB / 0.5073 GB, free: 3.309 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.348e-05/0.5611, allocations: 53.78 kB / 0.5073 GB, free: 3.246 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002507/0.5614, allocations: 300.1 kB / 0.5076 GB, free: 3.137 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.712e-05/0.5614, allocations: 27.39 kB / 0.5077 GB, free: 3.105 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.044e-05/0.5615, allocations: 185.7 kB / 0.5078 GB, free: 2.996 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.708e-05/0.5616, allocations: 65.7 kB / 0.5079 GB, free: 2.957 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.452e-05/0.5616, allocations: 45.75 kB / 0.5079 GB, free: 2.941 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.114e-05/0.5617, allocations: 345.5 kB / 0.5083 GB, free: 2.625 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00012/0.5618, allocations: 63.03 kB / 0.5083 GB, free: 2.625 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001203/0.562, allocations: 91.97 kB / 0.5084 GB, free: 2.605 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004252/0.5662, allocations: 0.6872 MB / 0.5091 GB, free: 2.59 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.5662, allocations: 0 / 0.5091 GB, free: 2.59 MB / 382.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0008188/0.5671, allocations: 309.1 kB / 0.5094 GB, free: 2.523 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.899e-05/0.5671, allocations: 5.719 kB / 0.5094 GB, free: 2.523 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.935e-06/0.5671, allocations: 1.969 kB / 0.5094 GB, free: 2.523 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007833/0.5679, allocations: 114.4 kB / 0.5095 GB, free: 2.512 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002536/0.5681, allocations: 45.88 kB / 0.5095 GB, free: 2.512 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00032/0.5685, allocations: 0.5811 MB / 0.5101 GB, free: 1.984 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001753/0.5687, allocations: 9.188 kB / 0.5101 GB, free: 1.98 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.376e-05/0.5687, allocations: 13.09 kB / 0.5101 GB, free: 1.98 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.0001936/0.5689, allocations: 148.3 kB / 0.5103 GB, free: 1.863 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.48e-05/0.569, allocations: 31.39 kB / 0.5103 GB, free: 1.848 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000848/0.5698, allocations: 350.8 kB / 0.5106 GB, free: 1.781 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.822e-06/0.5698, allocations: 4.562 kB / 0.5106 GB, free: 1.781 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.5698, allocations: 3.938 kB / 0.5106 GB, free: 1.777 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.53e-06/0.5698, allocations: 4 kB / 0.5106 GB, free: 1.777 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001183/0.571, allocations: 0.7303 MB / 0.5114 GB, free: 1.438 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.5711, allocations: 1.406 kB / 0.5114 GB, free: 1.438 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002445/0.5713, allocations: 43.3 kB / 0.5114 GB, free: 1.438 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005456/0.5719, allocations: 98.86 kB / 0.5115 GB, free: 1.43 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.375e-05/0.5719, allocations: 7.969 kB / 0.5115 GB, free: 1.43 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002808/0.5722, allocations: 0.5993 MB / 0.5121 GB, free: 0.9023 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/0.5722, allocations: 3.938 kB / 0.5121 GB, free: 0.8984 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009012/0.5731, allocations: 0.5001 MB / 0.5126 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.029e-05/0.5732, allocations: 111 kB / 0.5127 GB, free: 0.6055 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.705e-05/0.5732, allocations: 7.344 kB / 0.5127 GB, free: 0.6055 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001622/0.5734, allocations: 4.75 kB / 0.5127 GB, free: 0.6055 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.872e-05/0.5735, allocations: 19.08 kB / 0.5127 GB, free: 0.6016 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.614e-05/0.5735, allocations: 16.84 kB / 0.5127 GB, free: 0.6016 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002593/0.5738, allocations: 220.5 kB / 0.5129 GB, free: 0.5156 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.5738, allocations: 0 / 0.5129 GB, free: 0.5156 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003924/0.5742, allocations: 67.59 kB / 0.513 GB, free: 0.5117 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.001026/0.5752, allocations: 1.026 MB / 0.514 GB, free: 15.79 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005606/0.5758, allocations: 206.1 kB / 0.5142 GB, free: 15.78 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.5758, allocations: 3.938 kB / 0.5142 GB, free: 15.78 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002883/0.5761, allocations: 120 kB / 0.5143 GB, free: 15.77 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004654/0.5766, allocations: 70.12 kB / 0.5144 GB, free: 15.76 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004344/0.5809, allocations: 2.982 MB / 0.5173 GB, free: 14.29 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003415/0.5813, allocations: 0.7778 MB / 0.5181 GB, free: 13.59 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001693/0.5815, allocations: 47.08 kB / 0.5181 GB, free: 13.59 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001538/0.5816, allocations: 117.9 kB / 0.5182 GB, free: 13.58 MB / 398.1 MB Notification: Performance of SimCode: time 2.31e-07/0.5816, allocations: 0 / 0.5182 GB, free: 13.58 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0277/0.6093, allocations: 7.385 MB / 0.5254 GB, free: 11.82 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.32/11.93, allocations: 11.17 kB / 0.5254 GB, free: 11.82 MB / 398.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_003_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_003.fmu > AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.pipe 2>&1)