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.001745/0.001745, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001095/0.001095, allocations: 195.5 kB / 16.53 MB, free: 6.664 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.289/1.289, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1857/0.1857, allocations: 22.35 MB / 312.7 MB, free: 12.59 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001369/0.001369, allocations: 63.89 kB / 380.9 MB, free: 10.51 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2069/0.2083, allocations: 54.94 MB / 435.9 MB, free: 39.68 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002): time 0.002405/0.2107, allocations: 2.564 MB / 438.4 MB, free: 37.85 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004883/0.2112, allocations: 363.8 kB / 438.8 MB, free: 37.59 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001062/0.2113, allocations: 15.47 kB / 438.8 MB, free: 37.58 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.982e-05/0.2114, allocations: 39.34 kB / 438.8 MB, free: 37.55 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002081/0.2116, allocations: 118.7 kB / 439 MB, free: 37.47 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001652/0.2118, allocations: 75.61 kB / 439 MB, free: 37.43 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001842/0.212, allocations: 349.7 kB / 439.4 MB, free: 37.26 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001924/0.2122, allocations: 173 kB / 439.5 MB, free: 37.19 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001242/0.2123, allocations: 143.3 kB / 439.7 MB, free: 37.12 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001215/0.2124, allocations: 127 kB / 439.8 MB, free: 37.06 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.906e-05/0.2125, allocations: 25 kB / 439.8 MB, free: 37.06 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.93e-05/0.2125, allocations: 41.72 kB / 439.9 MB, free: 37.05 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.146e-05/0.2126, allocations: 54 kB / 439.9 MB, free: 37.02 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.397e-05/0.2127, allocations: 135.8 kB / 440.1 MB, free: 36.94 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001887/0.2129, allocations: 307 kB / 440.4 MB, free: 36.82 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.066e-06/0.2129, allocations: 0 / 440.4 MB, free: 36.82 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.2129, allocations: 0 / 440.4 MB, free: 36.82 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.949e-06/0.2129, allocations: 0 / 440.4 MB, free: 36.82 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.0005671/0.2135, allocations: 0.5616 MB / 440.9 MB, free: 36.32 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.738e-05/0.2135, allocations: 8.906 kB / 440.9 MB, free: 36.32 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.348e-05/0.2135, allocations: 55.73 kB / 441 MB, free: 36.27 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.117e-05/0.2136, allocations: 33.38 kB / 441 MB, free: 36.25 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002035/0.2138, allocations: 294.7 kB / 441.3 MB, free: 35.99 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.38e-05/0.2138, allocations: 13.12 kB / 441.3 MB, free: 35.98 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.911e-05/0.2138, allocations: 19.84 kB / 441.3 MB, free: 35.98 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002346/0.2141, allocations: 203.9 kB / 441.5 MB, free: 35.86 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.667e-06/0.2141, allocations: 6.844 kB / 441.5 MB, free: 35.86 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.53e-05/0.2141, allocations: 8 kB / 441.6 MB, free: 35.85 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.255e-06/0.2141, allocations: 5.719 kB / 441.6 MB, free: 35.85 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001847/0.2143, allocations: 126.6 kB / 441.7 MB, free: 35.8 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006771/0.215, allocations: 0.8309 MB / 442.5 MB, free: 35.13 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001908/0.2152, allocations: 93.22 kB / 442.6 MB, free: 35.08 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.092e-05/0.2153, allocations: 48.84 kB / 442.7 MB, free: 35.05 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.568e-05/0.2153, allocations: 2.656 kB / 442.7 MB, free: 35.05 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.066e-05/0.2153, allocations: 38.44 kB / 442.7 MB, free: 35 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.092e-06/0.2153, allocations: 0 / 442.7 MB, free: 35 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002474/0.2156, allocations: 153.2 kB / 442.8 MB, free: 34.92 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.483e-05/0.2156, allocations: 55.19 kB / 442.9 MB, free: 34.86 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001827/0.2158, allocations: 284.9 kB / 443.2 MB, free: 34.69 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.237e-06/0.2158, allocations: 28.77 kB / 443.2 MB, free: 34.66 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.119e-05/0.2159, allocations: 181.9 kB / 443.4 MB, free: 34.5 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.723e-05/0.2159, allocations: 34.73 kB / 443.4 MB, free: 34.48 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.441e-05/0.2159, allocations: 36.67 kB / 443.5 MB, free: 34.45 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.29e-05/0.216, allocations: 335.6 kB / 443.8 MB, free: 34.12 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.236e-05/0.2161, allocations: 33.86 kB / 443.8 MB, free: 34.11 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.507e-05/0.2161, allocations: 58.89 kB / 443.9 MB, free: 34.07 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001036/0.2172, allocations: 262.4 kB / 444.1 MB, free: 33.98 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.2172, allocations: 0 / 444.1 MB, free: 33.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002083/0.2174, allocations: 170.1 kB / 444.3 MB, free: 33.88 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.037e-05/0.2174, allocations: 12.42 kB / 444.3 MB, free: 33.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.409e-06/0.2174, allocations: 4 kB / 444.3 MB, free: 33.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.306e-05/0.2174, allocations: 10.97 kB / 444.3 MB, free: 33.87 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001845/0.2176, allocations: 36.39 kB / 444.4 MB, free: 33.87 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.999e-06/0.2176, allocations: 3.141 kB / 444.4 MB, free: 33.87 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001073/0.2177, allocations: 13.72 kB / 444.4 MB, free: 33.86 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.03e-05/0.2178, allocations: 6.875 kB / 444.4 MB, free: 33.86 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.0001377/0.2179, allocations: 137.8 kB / 444.5 MB, free: 33.73 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.962e-05/0.218, allocations: 27.06 kB / 444.5 MB, free: 33.71 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002427/0.2182, allocations: 162.9 kB / 444.7 MB, free: 33.62 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/0.2182, allocations: 2.875 kB / 444.7 MB, free: 33.62 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.036e-06/0.2182, allocations: 4 kB / 444.7 MB, free: 33.62 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-06/0.2182, allocations: 0 / 444.7 MB, free: 33.62 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001923/0.2184, allocations: 278.4 kB / 445 MB, free: 33.38 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.2184, allocations: 3.969 kB / 445 MB, free: 33.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001669/0.2186, allocations: 27.61 kB / 445 MB, free: 33.38 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.2186, allocations: 0 / 445 MB, free: 33.38 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.192e-05/0.2186, allocations: 10.84 kB / 445 MB, free: 33.37 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.923e-06/0.2186, allocations: 0 / 445 MB, free: 33.37 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.2186, allocations: 4.312 kB / 445 MB, free: 33.37 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002455/0.2189, allocations: 275.9 kB / 445.3 MB, free: 33.17 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.89e-05/0.2189, allocations: 108.4 kB / 445.4 MB, free: 33.06 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.461e-05/0.219, allocations: 3.938 kB / 445.4 MB, free: 33.05 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001147/0.2191, allocations: 10.75 kB / 445.4 MB, free: 33.05 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.24e-05/0.2191, allocations: 6.062 kB / 445.4 MB, free: 33.05 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.482e-06/0.2191, allocations: 2.812 kB / 445.4 MB, free: 33.05 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001305/0.2193, allocations: 209.8 kB / 445.6 MB, free: 32.93 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2193, allocations: 0 / 445.6 MB, free: 32.93 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002549/0.2195, allocations: 53.41 kB / 445.7 MB, free: 32.93 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.0003686/0.2199, allocations: 0.8168 MB / 446.5 MB, free: 32.2 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001857/0.2201, allocations: 115.8 kB / 446.6 MB, free: 32.15 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.482e-06/0.2201, allocations: 0 / 446.6 MB, free: 32.15 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.288e-05/0.2202, allocations: 47.39 kB / 446.7 MB, free: 32.14 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003389/0.2205, allocations: 63.08 kB / 446.7 MB, free: 32.11 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001971/0.2225, allocations: 2.516 MB / 449.2 MB, free: 30.35 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001163/0.2226, allocations: 0.7578 MB / 450 MB, free: 29.64 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001262/0.2228, allocations: 33.34 kB / 450 MB, free: 29.64 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.5e-05/0.2229, allocations: 92.59 kB / 450.1 MB, free: 29.57 MB / 350.1 MB Notification: Performance of SimCode: time 2.1e-07/0.2229, allocations: 0 / 450.1 MB, free: 29.57 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.394/2.617, allocations: 5.374 MB / 455.5 MB, free: 29.05 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.16/15.77, allocations: 25.03 kB / 455.5 MB, free: 29.04 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)