Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.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_001,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_001",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_001",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.006965/0.006965, allocations: 101.5 kB / 15.73 MB, free: 5.98 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.001664/0.001664, allocations: 190.5 kB / 16.67 MB, free: 5.918 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.299/1.299, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09517/0.09517, allocations: 22.33 MB / 312.9 MB, free: 8.895 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001227/0.001228, allocations: 68.08 kB / 436.5 MB, free: 12.27 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08518/0.08642, allocations: 54.96 MB / 491.5 MB, free: 5.27 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Interfaces/flowOnePort_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/flowOnePort_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_001): time 0.344/0.4305, allocations: 21.88 MB / 0.5014 GB, free: 4.887 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.000573/0.4311, allocations: 221.6 kB / 0.5016 GB, free: 4.887 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001178/0.4312, allocations: 11.88 kB / 0.5016 GB, free: 4.887 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 7.023e-05/0.4313, allocations: 31.73 kB / 0.5016 GB, free: 4.887 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002019/0.4315, allocations: 94.61 kB / 0.5017 GB, free: 4.887 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001222/0.4316, allocations: 41.75 kB / 0.5017 GB, free: 4.887 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001956/0.4318, allocations: 297.5 kB / 0.502 GB, free: 4.852 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001978/0.432, allocations: 151 kB / 0.5022 GB, free: 4.848 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000133/0.4322, allocations: 113.4 kB / 0.5023 GB, free: 4.824 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001185/0.4323, allocations: 103.9 kB / 0.5024 GB, free: 4.797 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.526e-05/0.4323, allocations: 17.25 kB / 0.5024 GB, free: 4.797 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.259e-05/0.4323, allocations: 15.84 kB / 0.5024 GB, free: 4.797 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.211e-05/0.4324, allocations: 35.33 kB / 0.5024 GB, free: 4.789 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.87e-05/0.4325, allocations: 113 kB / 0.5025 GB, free: 4.75 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001964/0.4327, allocations: 233.3 kB / 0.5028 GB, free: 4.707 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.086e-06/0.4327, allocations: 0 / 0.5028 GB, free: 4.707 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.4327, allocations: 0 / 0.5028 GB, free: 4.707 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.044e-05/0.4327, allocations: 2.688 kB / 0.5028 GB, free: 4.707 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: 39 * Number of variables: 39 Notification: Performance of Generate backend data structure: time 0.00059/0.4333, allocations: 0.5072 MB / 0.5033 GB, free: 4.27 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.549e-05/0.4334, allocations: 12.97 kB / 0.5033 GB, free: 4.27 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.632e-05/0.4334, allocations: 52.72 kB / 0.5033 GB, free: 4.23 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.103e-05/0.4334, allocations: 25.78 kB / 0.5034 GB, free: 4.219 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002384/0.4337, allocations: 273.4 kB / 0.5036 GB, free: 3.988 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.638e-05/0.4337, allocations: 10.86 kB / 0.5036 GB, free: 3.988 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.245e-05/0.4337, allocations: 20.72 kB / 0.5036 GB, free: 3.988 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000297/0.4341, allocations: 195.7 kB / 0.5038 GB, free: 3.91 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.132e-05/0.4341, allocations: 8.094 kB / 0.5038 GB, free: 3.906 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.695e-05/0.4341, allocations: 7.375 kB / 0.5038 GB, free: 3.906 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.823e-06/0.4341, allocations: 4.25 kB / 0.5039 GB, free: 3.906 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002856/0.4344, allocations: 116.6 kB / 0.504 GB, free: 3.902 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007303/0.4351, allocations: 0.8531 MB / 0.5048 GB, free: 3.262 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001817/0.4353, allocations: 84.3 kB / 0.5049 GB, free: 3.234 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001434/0.4355, allocations: 59.02 kB / 0.5049 GB, free: 3.227 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.569e-05/0.4355, allocations: 5.219 kB / 0.5049 GB, free: 3.227 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.395e-05/0.4355, allocations: 30.56 kB / 0.505 GB, free: 3.188 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 1.884e-06/0.4355, allocations: 0.6094 kB / 0.505 GB, free: 3.188 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004518/0.436, allocations: 180.1 kB / 0.5051 GB, free: 3.145 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.781e-05/0.436, allocations: 58.72 kB / 0.5052 GB, free: 3.078 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001671/0.4362, allocations: 226.8 kB / 0.5054 GB, free: 2.969 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.037e-05/0.4362, allocations: 25.7 kB / 0.5054 GB, free: 2.938 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.839e-05/0.4363, allocations: 142.7 kB / 0.5056 GB, free: 2.84 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.808e-05/0.4363, allocations: 52.25 kB / 0.5056 GB, free: 2.805 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.313e-05/0.4364, allocations: 31.94 kB / 0.5057 GB, free: 2.789 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.456e-05/0.4364, allocations: 337.2 kB / 0.506 GB, free: 2.473 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001192/0.4365, allocations: 38 kB / 0.506 GB, free: 2.473 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001223/0.4367, allocations: 70.2 kB / 0.5061 GB, free: 2.449 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007929/0.4375, allocations: 227.4 kB / 0.5063 GB, free: 2.414 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.4375, allocations: 0 / 0.5063 GB, free: 2.414 MB / 382.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003115/0.4378, allocations: 168.1 kB / 0.5065 GB, free: 2.363 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.173e-05/0.4378, allocations: 6.766 kB / 0.5065 GB, free: 2.363 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.908e-06/0.4378, allocations: 0 / 0.5065 GB, free: 2.363 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.273e-05/0.4378, allocations: 5.219 kB / 0.5065 GB, free: 2.363 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002031/0.438, allocations: 36.84 kB / 0.5065 GB, free: 2.363 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.052e-06/0.4381, allocations: 2.031 kB / 0.5065 GB, free: 2.363 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000108/0.4382, allocations: 16.83 kB / 0.5065 GB, free: 2.355 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.059e-05/0.4382, allocations: 6.062 kB / 0.5065 GB, free: 2.355 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: 3 * 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 (18): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001278/0.4383, allocations: 148.7 kB / 0.5067 GB, free: 2.234 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.97e-05/0.4384, allocations: 20.73 kB / 0.5067 GB, free: 2.223 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.813e-05/0.4384, allocations: 27.91 kB / 0.5067 GB, free: 2.215 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-06/0.4384, allocations: 3.219 kB / 0.5067 GB, free: 2.215 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.4384, allocations: 0.8906 kB / 0.5067 GB, free: 2.215 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.496e-06/0.4384, allocations: 0.9844 kB / 0.5067 GB, free: 2.215 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002045/0.4386, allocations: 264 kB / 0.507 GB, free: 2.02 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.083e-06/0.4387, allocations: 0 / 0.507 GB, free: 2.02 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001998/0.4389, allocations: 33.34 kB / 0.507 GB, free: 2.016 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.535e-06/0.4389, allocations: 4.031 kB / 0.507 GB, free: 2.016 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.29e-05/0.4389, allocations: 7 kB / 0.507 GB, free: 2.016 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.874e-06/0.4389, allocations: 0 / 0.507 GB, free: 2.016 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.414e-06/0.4389, allocations: 3.703 kB / 0.507 GB, free: 2.016 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004245/0.4393, allocations: 297 kB / 0.5073 GB, free: 1.867 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.764e-05/0.4394, allocations: 99.09 kB / 0.5074 GB, free: 1.762 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.842e-05/0.4394, allocations: 0 / 0.5074 GB, free: 1.762 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001286/0.4396, allocations: 10.66 kB / 0.5074 GB, free: 1.762 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.072e-05/0.4396, allocations: 15.12 kB / 0.5074 GB, free: 1.758 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.514e-06/0.4396, allocations: 6.219 kB / 0.5074 GB, free: 1.758 MB / 382.1 MB Notification: Performance of sorting global known variables: time 9.665e-05/0.4397, allocations: 164 kB / 0.5076 GB, free: 1.68 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4397, allocations: 0 / 0.5076 GB, free: 1.68 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002672/0.44, allocations: 43.69 kB / 0.5076 GB, free: 1.676 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (14): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005394/0.4406, allocations: 0.8344 MB / 0.5084 GB, free: 1 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002917/0.4409, allocations: 120.6 kB / 0.5086 GB, free: 0.9922 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.4409, allocations: 0 / 0.5086 GB, free: 0.9922 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001279/0.441, allocations: 60.41 kB / 0.5086 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003355/0.4413, allocations: 46.05 kB / 0.5087 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002462/0.4438, allocations: 2.287 MB / 0.5109 GB, free: 15.64 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002811/0.4441, allocations: 0.7364 MB / 0.5116 GB, free: 14.95 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001206/0.4442, allocations: 29.3 kB / 0.5116 GB, free: 14.95 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.227e-05/0.4443, allocations: 71.69 kB / 0.5117 GB, free: 14.94 MB / 398.1 MB Notification: Performance of SimCode: time 2.9e-07/0.4443, allocations: 0 / 0.5117 GB, free: 14.94 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02165/0.466, allocations: 4.615 MB / 0.5162 GB, free: 14.62 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.796/8.262, allocations: 16.25 kB / 0.5162 GB, free: 14.62 MB / 398.1 MB (rm -f AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_001_fmu --startTime=0 --stopTime=5000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_001.fmu > AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.pipe 2>&1)