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.009435/0.009435, allocations: 101.8 kB / 15.73 MB, free: 6.441 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.002018/0.002018, allocations: 196 kB / 16.67 MB, free: 6.352 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.37/1.37, allocations: 222.9 MB / 240.4 MB, free: 4.285 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2017/0.2017, allocations: 22.37 MB / 312.9 MB, free: 12.48 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001252/0.001252, allocations: 63.69 kB / 436.6 MB, free: 34.07 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09972/0.101, allocations: 54.97 MB / 491.6 MB, free: 1.688 MB / 350.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.02932/0.1303, allocations: 21.9 MB / 0.5014 GB, free: 11.92 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006445/0.131, allocations: 219.2 kB / 0.5016 GB, free: 11.7 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001289/0.1311, allocations: 11.94 kB / 0.5017 GB, free: 11.69 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 8.551e-05/0.1312, allocations: 31.66 kB / 0.5017 GB, free: 11.66 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002117/0.1315, allocations: 103.2 kB / 0.5018 GB, free: 11.56 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001365/0.1316, allocations: 51.88 kB / 0.5018 GB, free: 11.51 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002485/0.1319, allocations: 282.6 kB / 0.5021 GB, free: 11.23 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002494/0.1321, allocations: 157.2 kB / 0.5022 GB, free: 11.08 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001695/0.1323, allocations: 131.5 kB / 0.5024 GB, free: 10.95 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001333/0.1324, allocations: 103.5 kB / 0.5025 GB, free: 10.85 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.067e-05/0.1325, allocations: 16 kB / 0.5025 GB, free: 10.83 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.993e-05/0.1325, allocations: 16 kB / 0.5025 GB, free: 10.82 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.944e-05/0.1326, allocations: 39.78 kB / 0.5025 GB, free: 10.78 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000102/0.1327, allocations: 111.4 kB / 0.5026 GB, free: 10.67 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002475/0.1329, allocations: 226.9 kB / 0.5029 GB, free: 10.45 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.1329, allocations: 0 / 0.5029 GB, free: 10.45 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.1329, allocations: 4 kB / 0.5029 GB, free: 10.44 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.301e-06/0.133, allocations: 0 / 0.5029 GB, free: 10.44 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.0007211/0.1337, allocations: 0.5142 MB / 0.5034 GB, free: 9.871 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.967e-05/0.1337, allocations: 8.031 kB / 0.5034 GB, free: 9.863 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.753e-05/0.1338, allocations: 50.73 kB / 0.5034 GB, free: 9.805 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.848e-05/0.1338, allocations: 28.75 kB / 0.5035 GB, free: 9.777 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003097/0.1342, allocations: 275.6 kB / 0.5037 GB, free: 9.469 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.665e-05/0.1342, allocations: 16.7 kB / 0.5037 GB, free: 9.453 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.724e-05/0.1342, allocations: 12.38 kB / 0.5037 GB, free: 9.441 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003467/0.1346, allocations: 196.6 kB / 0.5039 GB, free: 9.23 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.36e-05/0.1346, allocations: 7.922 kB / 0.5039 GB, free: 9.223 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.831e-05/0.1346, allocations: 8 kB / 0.5039 GB, free: 9.215 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.263e-06/0.1346, allocations: 4 kB / 0.5039 GB, free: 9.211 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002978/0.1349, allocations: 128.5 kB / 0.5041 GB, free: 9.086 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008957/0.1358, allocations: 0.8561 MB / 0.5049 GB, free: 8.164 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001995/0.1361, allocations: 82.48 kB / 0.505 GB, free: 8.074 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001455/0.1362, allocations: 56.84 kB / 0.505 GB, free: 8.016 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.59e-05/0.1362, allocations: 4 kB / 0.505 GB, free: 8.012 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.251e-05/0.1363, allocations: 38.55 kB / 0.5051 GB, free: 7.965 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 1.262e-06/0.1363, allocations: 0 / 0.5051 GB, free: 7.965 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004794/0.1368, allocations: 178.1 kB / 0.5053 GB, free: 7.785 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.899e-05/0.1368, allocations: 55.41 kB / 0.5053 GB, free: 7.719 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002014/0.137, allocations: 225 kB / 0.5055 GB, free: 7.488 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.789e-05/0.137, allocations: 33.7 kB / 0.5056 GB, free: 7.449 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.567e-05/0.1371, allocations: 140.3 kB / 0.5057 GB, free: 7.305 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.733e-05/0.1372, allocations: 59.53 kB / 0.5057 GB, free: 7.246 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.991e-05/0.1372, allocations: 25.72 kB / 0.5058 GB, free: 7.215 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001072/0.1373, allocations: 334.8 kB / 0.5061 GB, free: 6.879 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001217/0.1375, allocations: 39.97 kB / 0.5061 GB, free: 6.84 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001248/0.1376, allocations: 66.55 kB / 0.5062 GB, free: 6.766 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007994/0.1384, allocations: 233.1 kB / 0.5064 GB, free: 6.531 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.1384, allocations: 0 / 0.5064 GB, free: 6.531 MB / 382.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003306/0.1387, allocations: 165.4 kB / 0.5066 GB, free: 6.363 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.436e-05/0.1388, allocations: 4 kB / 0.5066 GB, free: 6.359 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.619e-06/0.1388, allocations: 0 / 0.5066 GB, free: 6.359 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.871e-05/0.1388, allocations: 4 kB / 0.5066 GB, free: 6.355 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002054/0.139, allocations: 31.98 kB / 0.5066 GB, free: 6.324 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.52e-06/0.139, allocations: 8 kB / 0.5066 GB, free: 6.316 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001156/0.1392, allocations: 19.83 kB / 0.5066 GB, free: 6.297 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.122e-05/0.1392, allocations: 8 kB / 0.5066 GB, free: 6.289 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.0001674/0.1393, allocations: 134.6 kB / 0.5068 GB, free: 6.148 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.26e-05/0.1394, allocations: 19.86 kB / 0.5068 GB, free: 6.129 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.316e-05/0.1395, allocations: 33.83 kB / 0.5068 GB, free: 6.094 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.1395, allocations: 3.938 kB / 0.5068 GB, free: 6.09 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.1395, allocations: 0 / 0.5068 GB, free: 6.09 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.966e-06/0.1395, allocations: 0 / 0.5068 GB, free: 6.09 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000274/0.1398, allocations: 265.4 kB / 0.5071 GB, free: 5.777 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.223e-06/0.1398, allocations: 0 / 0.5071 GB, free: 5.777 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002121/0.14, allocations: 31.92 kB / 0.5071 GB, free: 5.746 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.335e-06/0.14, allocations: 0 / 0.5071 GB, free: 5.746 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.999e-05/0.14, allocations: 8 kB / 0.5071 GB, free: 5.738 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.14, allocations: 0 / 0.5071 GB, free: 5.738 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.14, allocations: 4 kB / 0.5071 GB, free: 5.734 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005063/0.1405, allocations: 299.3 kB / 0.5074 GB, free: 5.426 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.894e-05/0.1406, allocations: 101 kB / 0.5075 GB, free: 5.309 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.982e-05/0.1406, allocations: 3.938 kB / 0.5075 GB, free: 5.305 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001319/0.1408, allocations: 8 kB / 0.5075 GB, free: 5.297 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.865e-05/0.1408, allocations: 11.98 kB / 0.5075 GB, free: 5.285 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.086e-06/0.1409, allocations: 8.062 kB / 0.5075 GB, free: 5.277 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001342/0.141, allocations: 168.4 kB / 0.5077 GB, free: 5.113 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.141, allocations: 0 / 0.5077 GB, free: 5.113 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002782/0.1413, allocations: 47.89 kB / 0.5077 GB, free: 5.066 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.0007589/0.142, allocations: 0.8334 MB / 0.5086 GB, free: 4.207 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000306/0.1424, allocations: 115.9 kB / 0.5087 GB, free: 4.094 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.1424, allocations: 0 / 0.5087 GB, free: 4.094 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001336/0.1425, allocations: 51.92 kB / 0.5087 GB, free: 4.043 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004048/0.1429, allocations: 52.58 kB / 0.5088 GB, free: 3.988 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002703/0.1456, allocations: 2.298 MB / 0.511 GB, free: 1.602 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002658/0.1459, allocations: 0.7323 MB / 0.5117 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001262/0.1461, allocations: 34.27 kB / 0.5118 GB, free: 0.8125 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001038/0.1462, allocations: 67.42 kB / 0.5118 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of SimCode: time 5.11e-07/0.1462, allocations: 0 / 0.5118 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02329/0.1695, allocations: 4.616 MB / 0.5163 GB, free: 12.21 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.625/7.795, allocations: 9.938 kB / 0.5163 GB, free: 12.2 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 & python3 -m fmpy simulate --output-file AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001_res.csv --start-time 0 --stop-time 5000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 50 AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_001.fmu > AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.pipe 2>&1)