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.001306/0.001306, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.00756/0.00756, allocations: 171.1 kB / 16.26 MB, free: 6.676 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.099/1.099, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1535/0.1535, allocations: 22.35 MB / 313.8 MB, free: 13.06 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002398/0.0002399, allocations: 8 kB / 382.7 MB, free: 10.05 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2021/0.2024, allocations: 55.97 MB / 438.7 MB, free: 39.52 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002): time 0.001636/0.204, allocations: 2.501 MB / 441.2 MB, free: 37.68 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004937/0.2045, allocations: 407.1 kB / 441.6 MB, free: 37.38 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001009/0.2047, allocations: 12.28 kB / 441.6 MB, free: 37.38 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.39e-05/0.2047, allocations: 27.88 kB / 441.6 MB, free: 37.36 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002012/0.2049, allocations: 98.25 kB / 441.7 MB, free: 37.3 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001371/0.2051, allocations: 69.44 kB / 441.8 MB, free: 37.25 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001796/0.2052, allocations: 344.1 kB / 442.1 MB, free: 37.08 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001732/0.2054, allocations: 147.2 kB / 442.3 MB, free: 37.02 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001222/0.2056, allocations: 130.5 kB / 442.4 MB, free: 36.96 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001134/0.2057, allocations: 122.4 kB / 442.5 MB, free: 36.91 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.216e-05/0.2057, allocations: 11.88 kB / 442.5 MB, free: 36.91 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.849e-05/0.2058, allocations: 42.66 kB / 442.6 MB, free: 36.9 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.411e-05/0.2058, allocations: 44.3 kB / 442.6 MB, free: 36.87 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.778e-05/0.2059, allocations: 155.4 kB / 442.8 MB, free: 36.77 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000172/0.2061, allocations: 285.9 kB / 443 MB, free: 36.67 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.2061, allocations: 0 / 443 MB, free: 36.67 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.2061, allocations: 0 / 443 MB, free: 36.67 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.098e-06/0.2061, allocations: 0 / 443 MB, free: 36.67 MB / 350.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.0004903/0.2066, allocations: 0.5246 MB / 443.6 MB, free: 36.2 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.904e-05/0.2066, allocations: 15.84 kB / 443.6 MB, free: 36.19 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.229e-05/0.2067, allocations: 49.11 kB / 443.6 MB, free: 36.14 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.632e-05/0.2067, allocations: 38.77 kB / 443.7 MB, free: 36.12 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001899/0.2069, allocations: 290.2 kB / 444 MB, free: 35.86 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.103e-05/0.2069, allocations: 12.62 kB / 444 MB, free: 35.86 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.771e-05/0.207, allocations: 19.59 kB / 444 MB, free: 35.85 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002327/0.2072, allocations: 206.8 kB / 444.2 MB, free: 35.73 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.498e-06/0.2072, allocations: 6.625 kB / 444.2 MB, free: 35.73 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.466e-05/0.2072, allocations: 7.938 kB / 444.2 MB, free: 35.72 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.751e-06/0.2072, allocations: 6.062 kB / 444.2 MB, free: 35.72 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001739/0.2074, allocations: 128.6 kB / 444.3 MB, free: 35.67 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006285/0.208, allocations: 0.8317 MB / 445.2 MB, free: 35 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001709/0.2082, allocations: 91.19 kB / 445.3 MB, free: 34.95 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.818e-05/0.2083, allocations: 46.97 kB / 445.3 MB, free: 34.93 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.795e-05/0.2083, allocations: 3.094 kB / 445.3 MB, free: 34.93 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.247e-06/0.2083, allocations: 34.5 kB / 445.3 MB, free: 34.88 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.032e-06/0.2083, allocations: 0 / 445.3 MB, free: 34.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002295/0.2086, allocations: 149.2 kB / 445.5 MB, free: 34.8 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.496e-05/0.2086, allocations: 54.47 kB / 445.5 MB, free: 34.74 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001764/0.2088, allocations: 288.7 kB / 445.8 MB, free: 34.57 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.678e-06/0.2088, allocations: 32.64 kB / 445.8 MB, free: 34.54 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.929e-05/0.2089, allocations: 172.8 kB / 446 MB, free: 34.39 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.685e-05/0.2089, allocations: 37.7 kB / 446.1 MB, free: 34.36 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.419e-05/0.2089, allocations: 26.77 kB / 446.1 MB, free: 34.34 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 3.9e-05/0.209, allocations: 334.7 kB / 446.4 MB, free: 34.02 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.793e-05/0.209, allocations: 37.27 kB / 446.4 MB, free: 34 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.998e-05/0.2091, allocations: 57.67 kB / 446.5 MB, free: 33.96 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009522/0.21, allocations: 251.6 kB / 446.7 MB, free: 33.87 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.2101, allocations: 2.656 kB / 446.7 MB, free: 33.87 MB / 350.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0001943/0.2103, allocations: 169.2 kB / 446.9 MB, free: 33.78 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.065e-06/0.2103, allocations: 4.688 kB / 446.9 MB, free: 33.78 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.797e-06/0.2103, allocations: 7.031 kB / 446.9 MB, free: 33.78 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.407e-06/0.2103, allocations: 3.938 kB / 446.9 MB, free: 33.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001706/0.2105, allocations: 45.91 kB / 447 MB, free: 33.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.348e-06/0.2105, allocations: 0 / 447 MB, free: 33.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001013/0.2106, allocations: 17.5 kB / 447 MB, free: 33.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.077e-06/0.2106, allocations: 2.969 kB / 447 MB, free: 33.75 MB / 350.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.0001271/0.2107, allocations: 147.3 kB / 447.1 MB, free: 33.62 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.478e-05/0.2108, allocations: 26.66 kB / 447.2 MB, free: 33.61 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000223/0.211, allocations: 160.6 kB / 447.3 MB, free: 33.51 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.211, allocations: 6.656 kB / 447.3 MB, free: 33.51 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.995e-06/0.211, allocations: 0 / 447.3 MB, free: 33.51 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.325e-06/0.211, allocations: 0 / 447.3 MB, free: 33.51 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001778/0.2112, allocations: 289.2 kB / 447.6 MB, free: 33.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.2112, allocations: 0 / 447.6 MB, free: 33.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001485/0.2114, allocations: 26.77 kB / 447.6 MB, free: 33.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.2114, allocations: 0 / 447.6 MB, free: 33.27 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.041e-05/0.2114, allocations: 7.938 kB / 447.6 MB, free: 33.26 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.2114, allocations: 2.844 kB / 447.6 MB, free: 33.26 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.2114, allocations: 0 / 447.6 MB, free: 33.26 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002239/0.2116, allocations: 279.2 kB / 447.9 MB, free: 33.06 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.677e-05/0.2117, allocations: 104.8 kB / 448 MB, free: 32.95 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.861e-05/0.2117, allocations: 3.938 kB / 448 MB, free: 32.95 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001052/0.2118, allocations: 0 / 448 MB, free: 32.95 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.027e-05/0.2119, allocations: 13.12 kB / 448 MB, free: 32.94 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.931e-06/0.2119, allocations: 3.031 kB / 448 MB, free: 32.94 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001194/0.212, allocations: 210.2 kB / 448.2 MB, free: 32.83 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.212, allocations: 64 / 448.2 MB, free: 32.83 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002371/0.2122, allocations: 62.72 kB / 448.3 MB, free: 32.81 MB / 350.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.000344/0.2126, allocations: 0.8146 MB / 449.1 MB, free: 32.08 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001521/0.2127, allocations: 104.5 kB / 449.2 MB, free: 32.05 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.2128, allocations: 192 / 449.2 MB, free: 32.05 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.718e-05/0.2128, allocations: 50.94 kB / 449.3 MB, free: 32.03 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003202/0.2131, allocations: 57.77 kB / 449.3 MB, free: 32 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001874/0.215, allocations: 2.654 MB / 452 MB, free: 30.15 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00011/0.2151, allocations: 0.7507 MB / 452.7 MB, free: 29.45 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001187/0.2153, allocations: 41.7 kB / 452.8 MB, free: 29.44 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.067e-05/0.2154, allocations: 85.94 kB / 452.9 MB, free: 29.38 MB / 350.1 MB Notification: Performance of SimCode: time 1.8e-07/0.2154, allocations: 0 / 452.9 MB, free: 29.38 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0128/0.2282, allocations: 5.03 MB / 457.9 MB, free: 29.08 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001054/0.2283, allocations: 218.2 kB / 458.1 MB, free: 28.82 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.424/1.652, allocations: 0 / 458.1 MB, free: 28.82 MB / 350.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)