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.005204/0.005204, allocations: 102.4 kB / 15.73 MB, free: 6.051 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.001207/0.001207, allocations: 199.5 kB / 16.68 MB, free: 5.969 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.392/1.392, allocations: 222.9 MB / 240.4 MB, free: 4.172 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2325/0.2325, allocations: 22.35 MB / 312.9 MB, free: 12.42 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00133/0.001331, allocations: 67.86 kB / 436.6 MB, free: 34.14 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1019/0.1032, allocations: 54.97 MB / 491.5 MB, free: 1.699 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.02993/0.1332, allocations: 21.83 MB / 0.5013 GB, free: 12 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007339/0.134, allocations: 223.2 kB / 0.5016 GB, free: 11.78 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002177/0.1342, allocations: 15.94 kB / 0.5016 GB, free: 11.76 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001062/0.1343, allocations: 27.66 kB / 0.5016 GB, free: 11.73 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002514/0.1346, allocations: 91.23 kB / 0.5017 GB, free: 11.64 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001646/0.1347, allocations: 55.88 kB / 0.5017 GB, free: 11.59 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002851/0.135, allocations: 282.6 kB / 0.502 GB, free: 11.31 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002512/0.1353, allocations: 153.2 kB / 0.5022 GB, free: 11.16 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002204/0.1355, allocations: 131.5 kB / 0.5023 GB, free: 11.04 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001543/0.1357, allocations: 103.5 kB / 0.5024 GB, free: 10.93 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.155e-05/0.1357, allocations: 16 kB / 0.5024 GB, free: 10.92 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.262e-05/0.1358, allocations: 12 kB / 0.5024 GB, free: 10.91 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.296e-05/0.1358, allocations: 47.77 kB / 0.5025 GB, free: 10.86 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001033/0.1359, allocations: 107.4 kB / 0.5026 GB, free: 10.75 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002314/0.1362, allocations: 227.1 kB / 0.5028 GB, free: 10.53 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.1362, allocations: 0 / 0.5028 GB, free: 10.53 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.1362, allocations: 0 / 0.5028 GB, free: 10.53 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.436e-06/0.1362, allocations: 4 kB / 0.5028 GB, free: 10.53 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.0007343/0.1369, allocations: 0.5143 MB / 0.5033 GB, free: 9.957 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.506e-05/0.137, allocations: 8.031 kB / 0.5033 GB, free: 9.949 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.457e-05/0.137, allocations: 46.73 kB / 0.5033 GB, free: 9.895 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.807e-05/0.1371, allocations: 28.66 kB / 0.5034 GB, free: 9.867 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003359/0.1374, allocations: 275.4 kB / 0.5036 GB, free: 9.559 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.833e-05/0.1375, allocations: 16.64 kB / 0.5036 GB, free: 9.543 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.124e-05/0.1375, allocations: 12.38 kB / 0.5036 GB, free: 9.531 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003396/0.1378, allocations: 200.7 kB / 0.5038 GB, free: 9.316 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.189e-05/0.1379, allocations: 3.938 kB / 0.5038 GB, free: 9.312 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.973e-05/0.1379, allocations: 8 kB / 0.5039 GB, free: 9.305 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.843e-06/0.1379, allocations: 7.938 kB / 0.5039 GB, free: 9.297 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002879/0.1382, allocations: 120.5 kB / 0.504 GB, free: 9.18 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009047/0.1391, allocations: 0.8482 MB / 0.5048 GB, free: 8.266 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001769/0.1393, allocations: 82.55 kB / 0.5049 GB, free: 8.176 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001236/0.1394, allocations: 52.84 kB / 0.5049 GB, free: 8.121 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.396e-05/0.1395, allocations: 4 kB / 0.5049 GB, free: 8.117 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.624e-05/0.1395, allocations: 38.55 kB / 0.505 GB, free: 8.07 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 1.563e-06/0.1395, allocations: 0 / 0.505 GB, free: 8.07 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004477/0.1399, allocations: 185.5 kB / 0.5051 GB, free: 7.883 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.191e-05/0.14, allocations: 59.41 kB / 0.5052 GB, free: 7.812 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001936/0.1402, allocations: 225 kB / 0.5054 GB, free: 7.582 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.789e-05/0.1402, allocations: 25.7 kB / 0.5054 GB, free: 7.551 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.189e-05/0.1403, allocations: 140.2 kB / 0.5056 GB, free: 7.406 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.995e-05/0.1403, allocations: 55.2 kB / 0.5056 GB, free: 7.352 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.848e-05/0.1404, allocations: 29.7 kB / 0.5057 GB, free: 7.316 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001035/0.1405, allocations: 334.8 kB / 0.506 GB, free: 6.98 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001114/0.1406, allocations: 43.97 kB / 0.506 GB, free: 6.938 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001213/0.1408, allocations: 60.66 kB / 0.5061 GB, free: 6.871 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007506/0.1415, allocations: 222.6 kB / 0.5063 GB, free: 6.645 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.1415, allocations: 0 / 0.5063 GB, free: 6.645 MB / 382.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003225/0.1419, allocations: 179.9 kB / 0.5065 GB, free: 6.465 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.634e-05/0.1419, allocations: 6.5 kB / 0.5065 GB, free: 6.461 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.1419, allocations: 0 / 0.5065 GB, free: 6.461 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.03e-05/0.1419, allocations: 4 kB / 0.5065 GB, free: 6.457 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002023/0.1421, allocations: 35.92 kB / 0.5065 GB, free: 6.422 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.009e-06/0.1421, allocations: 0 / 0.5065 GB, free: 6.422 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001191/0.1423, allocations: 19.83 kB / 0.5065 GB, free: 6.402 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.093e-05/0.1423, allocations: 4 kB / 0.5065 GB, free: 6.398 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.0001591/0.1424, allocations: 143.1 kB / 0.5067 GB, free: 6.25 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.719e-05/0.1425, allocations: 19.72 kB / 0.5067 GB, free: 6.23 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.727e-05/0.1425, allocations: 37.75 kB / 0.5067 GB, free: 6.191 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.833e-06/0.1426, allocations: 0 / 0.5067 GB, free: 6.191 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.077e-06/0.1426, allocations: 0 / 0.5067 GB, free: 6.191 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.545e-06/0.1426, allocations: 0 / 0.5067 GB, free: 6.191 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002565/0.1428, allocations: 265.4 kB / 0.507 GB, free: 5.879 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.1428, allocations: 4 kB / 0.507 GB, free: 5.875 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002107/0.1431, allocations: 35.92 kB / 0.507 GB, free: 5.84 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.806e-06/0.1431, allocations: 0 / 0.507 GB, free: 5.84 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.436e-05/0.1431, allocations: 4 kB / 0.507 GB, free: 5.836 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.1431, allocations: 0 / 0.507 GB, free: 5.836 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.1431, allocations: 0 / 0.507 GB, free: 5.836 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004716/0.1436, allocations: 307.2 kB / 0.5073 GB, free: 5.52 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.328e-05/0.1436, allocations: 96.81 kB / 0.5074 GB, free: 5.406 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.327e-05/0.1437, allocations: 4 kB / 0.5074 GB, free: 5.402 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001217/0.1438, allocations: 4 kB / 0.5074 GB, free: 5.398 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.92e-05/0.1439, allocations: 15.92 kB / 0.5074 GB, free: 5.383 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.085e-06/0.1439, allocations: 4 kB / 0.5074 GB, free: 5.379 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001324/0.144, allocations: 164.5 kB / 0.5076 GB, free: 5.219 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.144, allocations: 3.938 kB / 0.5076 GB, free: 5.215 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002715/0.1443, allocations: 43.94 kB / 0.5076 GB, free: 5.172 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.0006936/0.145, allocations: 0.8294 MB / 0.5084 GB, free: 4.316 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00028/0.1453, allocations: 120.1 kB / 0.5086 GB, free: 4.199 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.1453, allocations: 0 / 0.5086 GB, free: 4.199 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001191/0.1454, allocations: 55.92 kB / 0.5086 GB, free: 4.145 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003686/0.1458, allocations: 44.41 kB / 0.5087 GB, free: 4.098 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002751/0.1486, allocations: 2.283 MB / 0.5109 GB, free: 1.723 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002815/0.1489, allocations: 0.7363 MB / 0.5116 GB, free: 0.9609 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001187/0.149, allocations: 34.27 kB / 0.5116 GB, free: 0.9297 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001018/0.1491, allocations: 71.42 kB / 0.5117 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1491, allocations: 0 / 0.5117 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0213/0.1704, allocations: 4.679 MB / 0.5163 GB, free: 12.26 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.578/7.748, allocations: 19.75 kB / 0.5163 GB, free: 12.24 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)