Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.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_002,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_002",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_002",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.009511/0.009511, allocations: 99.31 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.002244/0.002244, allocations: 188.9 kB / 16.67 MB, free: 5.977 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.436/1.436, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2303/0.2303, allocations: 22.36 MB / 312.9 MB, free: 12.54 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00217/0.00217, allocations: 71.95 kB / 436.6 MB, free: 34.11 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1404/0.1426, allocations: 54.96 MB / 491.5 MB, free: 1.711 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002): time 0.00549/0.1481, allocations: 2.576 MB / 494.1 MB, free: 15.12 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001373/0.1495, allocations: 362.7 kB / 494.5 MB, free: 14.77 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003608/0.15, allocations: 11.94 kB / 494.5 MB, free: 14.75 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001637/0.1501, allocations: 35.64 kB / 494.5 MB, free: 14.72 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000608/0.1508, allocations: 119 kB / 494.6 MB, free: 14.6 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004427/0.1512, allocations: 71.78 kB / 494.7 MB, free: 14.53 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007261/0.152, allocations: 362.2 kB / 495.1 MB, free: 14.18 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005521/0.1525, allocations: 165.6 kB / 495.2 MB, free: 14.01 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004119/0.153, allocations: 163.4 kB / 495.4 MB, free: 13.85 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003137/0.1533, allocations: 123.4 kB / 495.5 MB, free: 13.73 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.265e-05/0.1534, allocations: 20 kB / 495.5 MB, free: 13.71 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002148/0.1536, allocations: 51.97 kB / 495.6 MB, free: 13.66 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.688e-05/0.1537, allocations: 47.78 kB / 495.6 MB, free: 13.61 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002636/0.154, allocations: 147.3 kB / 495.8 MB, free: 13.47 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000612/0.1546, allocations: 303.7 kB / 496.1 MB, free: 13.17 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.1546, allocations: 3.938 kB / 496.1 MB, free: 13.17 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.1546, allocations: 0 / 496.1 MB, free: 13.17 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.372e-05/0.1547, allocations: 0 / 496.1 MB, free: 13.17 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 45 * Number of variables: 45 Notification: Performance of Generate backend data structure: time 0.001336/0.156, allocations: 0.5687 MB / 496.6 MB, free: 12.54 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.947e-05/0.1561, allocations: 8.031 kB / 496.6 MB, free: 12.54 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.608e-05/0.1562, allocations: 58.73 kB / 496.7 MB, free: 12.47 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.744e-05/0.1563, allocations: 28.56 kB / 496.7 MB, free: 12.44 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006416/0.1569, allocations: 298.5 kB / 497 MB, free: 12.11 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.754e-05/0.157, allocations: 12.75 kB / 497 MB, free: 12.1 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.645e-05/0.157, allocations: 20.38 kB / 497.1 MB, free: 12.08 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005071/0.1576, allocations: 212.5 kB / 497.3 MB, free: 11.86 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.874e-05/0.1576, allocations: 3.938 kB / 497.3 MB, free: 11.85 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.065e-05/0.1576, allocations: 8 kB / 497.3 MB, free: 11.84 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.087e-05/0.1576, allocations: 4 kB / 497.3 MB, free: 11.84 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003781/0.158, allocations: 128.8 kB / 497.4 MB, free: 11.71 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001557/0.1596, allocations: 0.8224 MB / 498.2 MB, free: 10.83 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003654/0.16, allocations: 94.67 kB / 498.3 MB, free: 10.73 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001304/0.1601, allocations: 44.84 kB / 498.4 MB, free: 10.68 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.683e-05/0.1602, allocations: 4 kB / 498.4 MB, free: 10.68 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.985e-05/0.1602, allocations: 34.56 kB / 498.4 MB, free: 10.64 MB / 366.1 MB Notification: Performance of pre-optimization done (n=10): time 1.954e-06/0.1602, allocations: 0 / 498.4 MB, free: 10.64 MB / 366.1 MB Notification: Performance of matching and sorting (n=10): time 0.0005238/0.1607, allocations: 149.2 kB / 498.5 MB, free: 10.48 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.941e-05/0.1608, allocations: 55.41 kB / 498.6 MB, free: 10.42 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003148/0.1611, allocations: 288.6 kB / 498.9 MB, free: 10.12 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.545e-05/0.1611, allocations: 29.64 kB / 498.9 MB, free: 10.09 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001231/0.1613, allocations: 175.6 kB / 499.1 MB, free: 9.914 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.382e-05/0.1613, allocations: 43.39 kB / 499.1 MB, free: 9.871 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.052e-05/0.1614, allocations: 33.72 kB / 499.2 MB, free: 9.832 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001251/0.1615, allocations: 334.8 kB / 499.5 MB, free: 9.496 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.702e-05/0.1616, allocations: 39.98 kB / 499.5 MB, free: 9.457 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.437e-05/0.1617, allocations: 61.2 kB / 499.6 MB, free: 9.391 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001264/0.163, allocations: 258.9 kB / 499.8 MB, free: 9.129 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.142e-06/0.163, allocations: 4 kB / 499.8 MB, free: 9.125 MB / 366.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002965/0.1633, allocations: 167.5 kB / 0.4883 GB, free: 8.957 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.177e-05/0.1633, allocations: 8 kB / 0.4883 GB, free: 8.949 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/0.1634, allocations: 3.938 kB / 0.4883 GB, free: 8.945 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.991e-05/0.1634, allocations: 3.938 kB / 0.4883 GB, free: 8.941 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002139/0.1636, allocations: 43.97 kB / 0.4883 GB, free: 8.898 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.305e-06/0.1636, allocations: 4.062 kB / 0.4883 GB, free: 8.895 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001367/0.1638, allocations: 15.78 kB / 0.4884 GB, free: 8.879 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.445e-05/0.1638, allocations: 8 kB / 0.4884 GB, free: 8.871 MB / 366.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.0002108/0.164, allocations: 139.3 kB / 0.4885 GB, free: 8.727 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.823e-05/0.1641, allocations: 27.62 kB / 0.4885 GB, free: 8.699 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003347/0.1644, allocations: 161.7 kB / 0.4887 GB, free: 8.535 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.1644, allocations: 0 / 0.4887 GB, free: 8.535 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.049e-06/0.1644, allocations: 7.938 kB / 0.4887 GB, free: 8.527 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.531e-06/0.1644, allocations: 3.984 kB / 0.4887 GB, free: 8.523 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003196/0.1648, allocations: 273.5 kB / 0.489 GB, free: 8.207 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.365e-06/0.1648, allocations: 4 kB / 0.489 GB, free: 8.203 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001886/0.165, allocations: 27.98 kB / 0.489 GB, free: 8.176 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.098e-06/0.165, allocations: 0 / 0.489 GB, free: 8.176 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.816e-05/0.165, allocations: 11.92 kB / 0.489 GB, free: 8.164 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.92e-06/0.165, allocations: 4 kB / 0.489 GB, free: 8.16 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.165, allocations: 0 / 0.489 GB, free: 8.16 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000366/0.1654, allocations: 271.1 kB / 0.4893 GB, free: 7.879 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.926e-05/0.1655, allocations: 100.9 kB / 0.4894 GB, free: 7.762 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.697e-05/0.1655, allocations: 11.92 kB / 0.4894 GB, free: 7.75 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001193/0.1657, allocations: 0 / 0.4894 GB, free: 7.75 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.951e-05/0.1657, allocations: 11.94 kB / 0.4894 GB, free: 7.738 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.909e-06/0.1657, allocations: 7.984 kB / 0.4894 GB, free: 7.73 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001897/0.1659, allocations: 207.1 kB / 0.4896 GB, free: 7.531 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1659, allocations: 0 / 0.4896 GB, free: 7.531 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002945/0.1662, allocations: 55.84 kB / 0.4896 GB, free: 7.477 MB / 366.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 (13): * Single equations (assignments): 13 * 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.0006154/0.1668, allocations: 0.8176 MB / 0.4904 GB, free: 6.629 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002378/0.1671, allocations: 105.8 kB / 0.4905 GB, free: 6.527 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.1671, allocations: 0 / 0.4905 GB, free: 6.527 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 7.982e-05/0.1672, allocations: 43.98 kB / 0.4906 GB, free: 6.484 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003812/0.1676, allocations: 67.31 kB / 0.4906 GB, free: 6.422 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002762/0.1703, allocations: 2.511 MB / 0.4931 GB, free: 3.824 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002783/0.1706, allocations: 0.7518 MB / 0.4938 GB, free: 3.043 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001311/0.1708, allocations: 42.95 kB / 0.4939 GB, free: 3 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001165/0.1709, allocations: 91.41 kB / 0.494 GB, free: 2.91 MB / 366.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1709, allocations: 0 / 0.494 GB, free: 2.91 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02382/0.1947, allocations: 5.533 MB / 0.4994 GB, free: 13.51 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.676/7.871, allocations: 29.3 kB / 0.4994 GB, free: 13.49 MB / 382.1 MB (rm -f AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_002_fmu --startTime=0 --stopTime=1500 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_002.fmu > AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.pipe 2>&1)