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.00795/0.00795, allocations: 97.62 kB / 15.73 MB, free: 6.004 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.001842/0.001842, allocations: 195 kB / 16.67 MB, free: 5.934 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.306/1.306, allocations: 222.9 MB / 240.4 MB, free: 4.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1906/0.1906, allocations: 22.35 MB / 312.9 MB, free: 12.44 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001232/0.001232, allocations: 69.59 kB / 436.6 MB, free: 33.97 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08692/0.08817, allocations: 54.96 MB / 491.5 MB, free: 1.719 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.02865/0.1169, allocations: 22.37 MB / 0.5019 GB, free: 11.47 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001086/0.118, allocations: 418.5 kB / 0.5023 GB, free: 11.06 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001522/0.1181, allocations: 11.94 kB / 0.5023 GB, free: 11.05 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001027/0.1182, allocations: 43.56 kB / 0.5023 GB, free: 11.01 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003598/0.1186, allocations: 150.8 kB / 0.5025 GB, free: 10.86 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001994/0.1188, allocations: 87.81 kB / 0.5026 GB, free: 10.77 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003535/0.1192, allocations: 422 kB / 0.503 GB, free: 10.36 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003364/0.1195, allocations: 247 kB / 0.5032 GB, free: 10.12 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002279/0.1197, allocations: 199.3 kB / 0.5034 GB, free: 9.922 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002132/0.12, allocations: 183.3 kB / 0.5036 GB, free: 9.742 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.406e-05/0.12, allocations: 28 kB / 0.5036 GB, free: 9.715 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001205/0.1201, allocations: 51.97 kB / 0.5036 GB, free: 9.664 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.401e-05/0.1202, allocations: 75.64 kB / 0.5037 GB, free: 9.59 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000151/0.1204, allocations: 179.1 kB / 0.5039 GB, free: 9.414 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003978/0.1208, allocations: 406.2 kB / 0.5043 GB, free: 9.016 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.1208, allocations: 4 kB / 0.5043 GB, free: 9.012 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1208, allocations: 4 kB / 0.5043 GB, free: 9.008 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.174e-06/0.1208, allocations: 0 / 0.5043 GB, free: 9.008 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.001002/0.1218, allocations: 0.6425 MB / 0.5049 GB, free: 8.312 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.585e-05/0.1219, allocations: 12.03 kB / 0.5049 GB, free: 8.301 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.751e-05/0.1219, allocations: 54.72 kB / 0.505 GB, free: 8.238 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.64e-05/0.122, allocations: 44.7 kB / 0.505 GB, free: 8.195 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003641/0.1224, allocations: 319.6 kB / 0.5053 GB, free: 7.844 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.632e-05/0.1224, allocations: 12.94 kB / 0.5053 GB, free: 7.832 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.459e-05/0.1225, allocations: 24.38 kB / 0.5053 GB, free: 7.809 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004225/0.1229, allocations: 276.8 kB / 0.5056 GB, free: 7.523 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.143e-05/0.1229, allocations: 3.938 kB / 0.5056 GB, free: 7.52 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.462e-05/0.1229, allocations: 12 kB / 0.5056 GB, free: 7.508 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.514e-06/0.1229, allocations: 4 kB / 0.5056 GB, free: 7.504 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003383/0.1233, allocations: 193.6 kB / 0.5058 GB, free: 7.316 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001264/0.1246, allocations: 0.9085 MB / 0.5067 GB, free: 6.344 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003396/0.1249, allocations: 158.8 kB / 0.5068 GB, free: 6.18 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000192/0.1251, allocations: 100.8 kB / 0.5069 GB, free: 6.078 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.49e-05/0.1252, allocations: 11.94 kB / 0.507 GB, free: 6.066 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.158e-05/0.1252, allocations: 38.44 kB / 0.507 GB, free: 6.02 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002052/0.1254, allocations: 47.81 kB / 0.507 GB, free: 5.969 MB / 382.1 MB Notification: Performance of pre-optimization done (n=18): time 1.383e-06/0.1254, allocations: 0 / 0.507 GB, free: 5.969 MB / 382.1 MB Notification: Performance of matching and sorting (n=18): time 0.001313/0.1267, allocations: 443.1 kB / 0.5075 GB, free: 5.508 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.192e-05/0.1268, allocations: 55.41 kB / 0.5075 GB, free: 5.441 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003203/0.1271, allocations: 300.6 kB / 0.5078 GB, free: 5.137 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.5e-05/0.1271, allocations: 25.7 kB / 0.5078 GB, free: 5.105 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001239/0.1273, allocations: 184.3 kB / 0.508 GB, free: 4.922 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.81e-05/0.1273, allocations: 63.44 kB / 0.5081 GB, free: 4.859 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.281e-05/0.1274, allocations: 45.69 kB / 0.5081 GB, free: 4.809 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000125/0.1275, allocations: 350.7 kB / 0.5084 GB, free: 4.457 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001254/0.1277, allocations: 63.97 kB / 0.5085 GB, free: 4.395 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001342/0.1278, allocations: 85.69 kB / 0.5086 GB, free: 4.305 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003898/0.1317, allocations: 0.6938 MB / 0.5093 GB, free: 3.605 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.504e-06/0.1317, allocations: 0 / 0.5093 GB, free: 3.605 MB / 382.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0007942/0.1325, allocations: 313.2 kB / 0.5096 GB, free: 3.293 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.903e-05/0.1326, allocations: 8 kB / 0.5096 GB, free: 3.285 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.131e-06/0.1326, allocations: 0 / 0.5096 GB, free: 3.285 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007529/0.1333, allocations: 112.8 kB / 0.5097 GB, free: 3.172 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002503/0.1336, allocations: 43.91 kB / 0.5097 GB, free: 3.129 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004214/0.134, allocations: 0.568 MB / 0.5103 GB, free: 2.535 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001702/0.1342, allocations: 11.97 kB / 0.5103 GB, free: 2.523 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.7e-05/0.1342, allocations: 15.97 kB / 0.5103 GB, free: 2.508 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.0002189/0.1345, allocations: 162 kB / 0.5105 GB, free: 2.344 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.76e-05/0.1345, allocations: 31.77 kB / 0.5105 GB, free: 2.312 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008386/0.1354, allocations: 356.6 kB / 0.5108 GB, free: 1.957 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-06/0.1354, allocations: 0 / 0.5108 GB, free: 1.957 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.1354, allocations: 0 / 0.5108 GB, free: 1.957 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.391e-06/0.1354, allocations: 3.984 kB / 0.5108 GB, free: 1.953 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001172/0.1366, allocations: 0.7316 MB / 0.5115 GB, free: 1.156 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.1366, allocations: 4 kB / 0.5115 GB, free: 1.152 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000244/0.1368, allocations: 43.91 kB / 0.5116 GB, free: 1.109 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005319/0.1374, allocations: 96.84 kB / 0.5117 GB, free: 1.012 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.336e-05/0.1374, allocations: 7.984 kB / 0.5117 GB, free: 1.004 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003773/0.1378, allocations: 0.5953 MB / 0.5123 GB, free: 392 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.1378, allocations: 3.938 kB / 0.5123 GB, free: 388 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008929/0.1387, allocations: 0.504 MB / 0.5128 GB, free: 15.85 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.971e-05/0.1388, allocations: 108.9 kB / 0.5129 GB, free: 15.73 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.082e-05/0.1389, allocations: 8 kB / 0.5129 GB, free: 15.72 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001661/0.139, allocations: 7.938 kB / 0.5129 GB, free: 15.71 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.835e-05/0.1391, allocations: 15.92 kB / 0.5129 GB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.768e-05/0.1391, allocations: 15.98 kB / 0.5129 GB, free: 15.68 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001898/0.1393, allocations: 215.1 kB / 0.5131 GB, free: 15.47 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1393, allocations: 0 / 0.5131 GB, free: 15.47 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003299/0.1397, allocations: 75.89 kB / 0.5132 GB, free: 15.39 MB / 398.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.0009339/0.1406, allocations: 1.024 MB / 0.5142 GB, free: 14.34 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004737/0.1411, allocations: 207.9 kB / 0.5144 GB, free: 14.13 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.1411, allocations: 3.938 kB / 0.5144 GB, free: 14.13 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002533/0.1414, allocations: 115.9 kB / 0.5145 GB, free: 14.02 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004261/0.1418, allocations: 71.09 kB / 0.5146 GB, free: 13.95 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00403/0.1458, allocations: 2.995 MB / 0.5175 GB, free: 10.85 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002904/0.1461, allocations: 0.7793 MB / 0.5183 GB, free: 10.04 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001571/0.1463, allocations: 42.95 kB / 0.5183 GB, free: 10 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001624/0.1465, allocations: 115.4 kB / 0.5184 GB, free: 9.891 MB / 398.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1465, allocations: 0 / 0.5184 GB, free: 9.891 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02639/0.1729, allocations: 7.224 MB / 0.5255 GB, free: 2.777 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.7/11.87, allocations: 17.27 kB / 0.5255 GB, free: 2.762 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 & python3 -m fmpy simulate --output-file AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003_res.csv --start-time 0 --stop-time 1000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 2 AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_003.fmu > AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.pipe 2>&1)