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.005926/0.005926, allocations: 99 kB / 15.73 MB, free: 6.008 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.0012/0.0012, allocations: 196.3 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.367/1.367, allocations: 222.9 MB / 240.4 MB, free: 4.316 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.36 MB / 312.9 MB, free: 12.46 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001191/0.001191, allocations: 63.08 kB / 436.6 MB, free: 34.02 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08583/0.08703, allocations: 54.97 MB / 491.5 MB, free: 1.699 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002): time 0.002864/0.08994, allocations: 2.575 MB / 494.1 MB, free: 15.11 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006799/0.09064, allocations: 358.7 kB / 494.5 MB, free: 14.75 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001196/0.09078, allocations: 11.94 kB / 494.5 MB, free: 14.74 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 8.465e-05/0.09087, allocations: 39.58 kB / 494.5 MB, free: 14.7 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002829/0.09116, allocations: 123 kB / 494.6 MB, free: 14.58 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000216/0.09138, allocations: 71.84 kB / 494.7 MB, free: 14.51 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003049/0.0917, allocations: 366.2 kB / 495.1 MB, free: 14.15 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002558/0.09196, allocations: 169.9 kB / 495.2 MB, free: 13.98 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001857/0.09216, allocations: 155.4 kB / 495.4 MB, free: 13.83 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000163/0.09233, allocations: 135.3 kB / 495.5 MB, free: 13.7 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.422e-05/0.09237, allocations: 20 kB / 495.5 MB, free: 13.68 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001031/0.09248, allocations: 43.97 kB / 495.6 MB, free: 13.64 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 4.298e-05/0.09253, allocations: 47.84 kB / 495.6 MB, free: 13.59 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001251/0.09266, allocations: 143.3 kB / 495.8 MB, free: 13.45 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003288/0.093, allocations: 302.6 kB / 496.1 MB, free: 13.15 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.09301, allocations: 7.938 kB / 496.1 MB, free: 13.14 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.09302, allocations: 0 / 496.1 MB, free: 13.14 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.204e-06/0.09303, allocations: 0 / 496.1 MB, free: 13.14 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.0008847/0.09392, allocations: 0.5723 MB / 496.6 MB, free: 12.52 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.063e-05/0.09397, allocations: 16.03 kB / 496.7 MB, free: 12.5 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.383e-05/0.09403, allocations: 54.67 kB / 496.7 MB, free: 12.44 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.179e-05/0.0941, allocations: 32.75 kB / 496.7 MB, free: 12.41 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003877/0.09449, allocations: 294.8 kB / 497 MB, free: 12.08 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.916e-05/0.09452, allocations: 12.75 kB / 497 MB, free: 12.07 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.989e-05/0.09457, allocations: 20.38 kB / 497.1 MB, free: 12.05 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003249/0.0949, allocations: 212.6 kB / 497.3 MB, free: 11.82 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.321e-05/0.09492, allocations: 7.875 kB / 497.3 MB, free: 11.82 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.051e-05/0.09495, allocations: 4 kB / 497.3 MB, free: 11.81 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.514e-06/0.09496, allocations: 4 kB / 497.3 MB, free: 11.81 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002295/0.09519, allocations: 124.9 kB / 497.4 MB, free: 11.69 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009825/0.09618, allocations: 0.8342 MB / 498.2 MB, free: 10.79 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002629/0.09646, allocations: 90.73 kB / 498.3 MB, free: 10.7 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.204e-05/0.09655, allocations: 48.84 kB / 498.4 MB, free: 10.64 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.485e-05/0.09658, allocations: 3.938 kB / 498.4 MB, free: 10.64 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.905e-05/0.09661, allocations: 30.56 kB / 498.4 MB, free: 10.6 MB / 366.1 MB Notification: Performance of pre-optimization done (n=10): time 1.282e-06/0.09662, allocations: 0 / 498.4 MB, free: 10.6 MB / 366.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003409/0.09696, allocations: 157.3 kB / 498.6 MB, free: 10.44 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.209e-05/0.097, allocations: 51.41 kB / 498.6 MB, free: 10.38 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002773/0.09728, allocations: 288.6 kB / 498.9 MB, free: 10.09 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.785e-05/0.09731, allocations: 33.64 kB / 498.9 MB, free: 10.05 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001048/0.09742, allocations: 175.7 kB / 499.1 MB, free: 9.871 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.944e-05/0.09746, allocations: 35.69 kB / 499.1 MB, free: 9.836 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.611e-05/0.09752, allocations: 33.72 kB / 499.2 MB, free: 9.797 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001115/0.09763, allocations: 342.8 kB / 499.5 MB, free: 9.453 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.513e-05/0.09772, allocations: 31.98 kB / 499.5 MB, free: 9.422 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.073e-05/0.09781, allocations: 61.53 kB / 499.6 MB, free: 9.355 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001205/0.09902, allocations: 259.1 kB / 499.8 MB, free: 9.098 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.497e-06/0.09904, allocations: 4 kB / 499.9 MB, free: 9.094 MB / 366.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002717/0.09932, allocations: 173.3 kB / 0.4883 GB, free: 8.918 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.757e-05/0.09934, allocations: 4 kB / 0.4883 GB, free: 8.914 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.852e-06/0.09936, allocations: 7.938 kB / 0.4883 GB, free: 8.906 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.726e-05/0.09938, allocations: 3.938 kB / 0.4883 GB, free: 8.902 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002241/0.09961, allocations: 43.97 kB / 0.4884 GB, free: 8.859 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.145e-06/0.09963, allocations: 4 kB / 0.4884 GB, free: 8.855 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001234/0.09976, allocations: 11.89 kB / 0.4884 GB, free: 8.844 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.503e-05/0.09978, allocations: 8 kB / 0.4884 GB, free: 8.836 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.0001983/0.09998, allocations: 139.4 kB / 0.4885 GB, free: 8.691 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.254e-05/0.1, allocations: 27.81 kB / 0.4885 GB, free: 8.664 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003088/0.1004, allocations: 162.6 kB / 0.4887 GB, free: 8.5 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.1004, allocations: 0 / 0.4887 GB, free: 8.5 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.658e-06/0.1004, allocations: 0 / 0.4887 GB, free: 8.5 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.152e-06/0.1004, allocations: 11.98 kB / 0.4887 GB, free: 8.488 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002985/0.1007, allocations: 277.5 kB / 0.489 GB, free: 8.168 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.1007, allocations: 0 / 0.489 GB, free: 8.168 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001828/0.1009, allocations: 27.98 kB / 0.489 GB, free: 8.141 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.1009, allocations: 0 / 0.489 GB, free: 8.141 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.769e-05/0.1009, allocations: 11.92 kB / 0.489 GB, free: 8.129 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.637e-06/0.1009, allocations: 0 / 0.489 GB, free: 8.129 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.1009, allocations: 3.938 kB / 0.489 GB, free: 8.125 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003368/0.1013, allocations: 279.4 kB / 0.4893 GB, free: 7.836 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.608e-05/0.1014, allocations: 100.9 kB / 0.4894 GB, free: 7.719 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.098e-05/0.1015, allocations: 15.88 kB / 0.4894 GB, free: 7.703 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001314/0.1016, allocations: 4 kB / 0.4894 GB, free: 7.699 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.105e-05/0.1017, allocations: 7.938 kB / 0.4894 GB, free: 7.691 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.568e-06/0.1017, allocations: 7.984 kB / 0.4894 GB, free: 7.684 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001771/0.1018, allocations: 203.1 kB / 0.4896 GB, free: 7.488 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1019, allocations: 0 / 0.4896 GB, free: 7.488 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002865/0.1021, allocations: 55.94 kB / 0.4897 GB, free: 7.434 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.0006453/0.1028, allocations: 0.8139 MB / 0.4905 GB, free: 6.59 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000244/0.1031, allocations: 106.1 kB / 0.4906 GB, free: 6.488 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.1031, allocations: 0 / 0.4906 GB, free: 6.488 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 8.242e-05/0.1031, allocations: 47.92 kB / 0.4906 GB, free: 6.441 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004177/0.1036, allocations: 71.25 kB / 0.4907 GB, free: 6.375 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002735/0.1063, allocations: 2.523 MB / 0.4931 GB, free: 3.766 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003488/0.1067, allocations: 0.7558 MB / 0.4939 GB, free: 2.98 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001349/0.1068, allocations: 34.97 kB / 0.4939 GB, free: 2.945 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001261/0.107, allocations: 91.41 kB / 0.494 GB, free: 2.855 MB / 366.1 MB Notification: Performance of SimCode: time 5.31e-07/0.107, allocations: 0 / 0.494 GB, free: 2.855 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02324/0.1302, allocations: 5.44 MB / 0.4993 GB, free: 13.55 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.907/8.038, allocations: 22.41 kB / 0.4993 GB, free: 13.53 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 & python3 -m fmpy simulate --output-file AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002_res.csv --start-time 0 --stop-time 1500 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 3 AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_002.fmu > AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.pipe 2>&1)