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.001151/0.001151, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001124/0.001124, allocations: 189.3 kB / 16.25 MB, free: 6.625 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.18/1.18, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1742/0.1742, allocations: 22.37 MB / 312.5 MB, free: 12.66 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001132/0.001132, allocations: 67.84 kB / 380.4 MB, free: 10.87 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2017/0.2029, allocations: 54.93 MB / 435.3 MB, free: 39.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002): time 0.002726/0.2056, allocations: 2.867 MB / 438.2 MB, free: 37.59 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000659/0.2063, allocations: 406.8 kB / 438.6 MB, free: 37.29 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001644/0.2065, allocations: 14.56 kB / 438.6 MB, free: 37.29 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 6.978e-05/0.2065, allocations: 27.31 kB / 438.7 MB, free: 37.28 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002237/0.2068, allocations: 105 kB / 438.8 MB, free: 37.2 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001689/0.207, allocations: 62.39 kB / 438.8 MB, free: 37.16 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001975/0.2072, allocations: 361.1 kB / 439.2 MB, free: 36.98 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001941/0.2074, allocations: 163.2 kB / 439.3 MB, free: 36.92 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001325/0.2075, allocations: 152 kB / 439.5 MB, free: 36.85 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001149/0.2076, allocations: 123.1 kB / 439.6 MB, free: 36.79 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.641e-05/0.2077, allocations: 20.22 kB / 439.6 MB, free: 36.79 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.502e-05/0.2077, allocations: 45.47 kB / 439.7 MB, free: 36.78 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.866e-05/0.2078, allocations: 53.98 kB / 439.7 MB, free: 36.75 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.865e-05/0.2079, allocations: 139.9 kB / 439.9 MB, free: 36.66 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001945/0.2081, allocations: 304 kB / 440.1 MB, free: 36.54 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.016e-06/0.2081, allocations: 0 / 440.1 MB, free: 36.54 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.2081, allocations: 0 / 440.1 MB, free: 36.54 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.039e-06/0.2081, allocations: 0 / 440.1 MB, free: 36.54 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.0005499/0.2086, allocations: 0.5668 MB / 440.7 MB, free: 36.04 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.979e-05/0.2087, allocations: 10.78 kB / 440.7 MB, free: 36.04 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.763e-05/0.2087, allocations: 58.38 kB / 440.8 MB, free: 35.98 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.274e-05/0.2088, allocations: 29.97 kB / 440.8 MB, free: 35.97 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002032/0.209, allocations: 287 kB / 441.1 MB, free: 35.71 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.983e-05/0.209, allocations: 14.88 kB / 441.1 MB, free: 35.71 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.719e-05/0.209, allocations: 16.16 kB / 441.1 MB, free: 35.7 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00025/0.2093, allocations: 210.2 kB / 441.3 MB, free: 35.58 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.125e-06/0.2093, allocations: 3.938 kB / 441.3 MB, free: 35.58 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.662e-05/0.2093, allocations: 8 kB / 441.3 MB, free: 35.57 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.741e-06/0.2093, allocations: 13.84 kB / 441.4 MB, free: 35.56 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001827/0.2095, allocations: 124.9 kB / 441.5 MB, free: 35.52 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006753/0.2102, allocations: 0.8264 MB / 442.3 MB, free: 34.85 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001837/0.2104, allocations: 92.39 kB / 442.4 MB, free: 34.8 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.846e-05/0.2105, allocations: 48.3 kB / 442.4 MB, free: 34.77 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.851e-05/0.2105, allocations: 11.22 kB / 442.4 MB, free: 34.77 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.135e-05/0.2105, allocations: 30.56 kB / 442.5 MB, free: 34.73 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.102e-06/0.2105, allocations: 0 / 442.5 MB, free: 34.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002409/0.2108, allocations: 149.3 kB / 442.6 MB, free: 34.65 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.503e-05/0.2108, allocations: 51.41 kB / 442.7 MB, free: 34.59 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001806/0.211, allocations: 292.3 kB / 443 MB, free: 34.43 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.829e-06/0.211, allocations: 25.7 kB / 443 MB, free: 34.39 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.907e-05/0.211, allocations: 176.3 kB / 443.2 MB, free: 34.24 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.869e-05/0.2111, allocations: 40.75 kB / 443.2 MB, free: 34.21 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.432e-05/0.2111, allocations: 29.69 kB / 443.2 MB, free: 34.19 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.016e-05/0.2112, allocations: 338.3 kB / 443.6 MB, free: 33.86 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.221e-05/0.2112, allocations: 33.53 kB / 443.6 MB, free: 33.85 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.423e-05/0.2113, allocations: 65.31 kB / 443.7 MB, free: 33.81 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001022/0.2123, allocations: 254.8 kB / 443.9 MB, free: 33.71 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.2123, allocations: 0 / 443.9 MB, free: 33.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002005/0.2125, allocations: 173.1 kB / 444.1 MB, free: 33.62 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.788e-06/0.2126, allocations: 5.656 kB / 444.1 MB, free: 33.62 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.308e-06/0.2126, allocations: 7.938 kB / 444.1 MB, free: 33.61 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.117e-05/0.2126, allocations: 6.938 kB / 444.1 MB, free: 33.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001838/0.2128, allocations: 39.7 kB / 444.1 MB, free: 33.61 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.959e-06/0.2128, allocations: 2.875 kB / 444.1 MB, free: 33.61 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001052/0.2129, allocations: 14.78 kB / 444.1 MB, free: 33.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.143e-05/0.2129, allocations: 9.281 kB / 444.2 MB, free: 33.59 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.000132/0.2131, allocations: 130.9 kB / 444.3 MB, free: 33.46 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.748e-05/0.2131, allocations: 31.34 kB / 444.3 MB, free: 33.45 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002316/0.2133, allocations: 162.5 kB / 444.5 MB, free: 33.36 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.2133, allocations: 2.969 kB / 444.5 MB, free: 33.36 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.307e-06/0.2134, allocations: 0 / 444.5 MB, free: 33.36 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.425e-06/0.2134, allocations: 4 kB / 444.5 MB, free: 33.35 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001835/0.2135, allocations: 283 kB / 444.8 MB, free: 33.11 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.2136, allocations: 384 / 444.8 MB, free: 33.11 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001687/0.2137, allocations: 29.55 kB / 444.8 MB, free: 33.11 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.384e-06/0.2137, allocations: 2.844 kB / 444.8 MB, free: 33.11 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.159e-05/0.2138, allocations: 3.938 kB / 444.8 MB, free: 33.11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.724e-06/0.2138, allocations: 6.984 kB / 444.8 MB, free: 33.1 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.2138, allocations: 0 / 444.8 MB, free: 33.1 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000249/0.214, allocations: 280.2 kB / 445.1 MB, free: 32.91 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.721e-05/0.2141, allocations: 98.48 kB / 445.2 MB, free: 32.8 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.45e-05/0.2141, allocations: 10.91 kB / 445.2 MB, free: 32.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001158/0.2142, allocations: 3.234 kB / 445.2 MB, free: 32.79 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.781e-05/0.2143, allocations: 9.203 kB / 445.2 MB, free: 32.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.472e-06/0.2143, allocations: 2.938 kB / 445.2 MB, free: 32.79 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000127/0.2144, allocations: 213.7 kB / 445.4 MB, free: 32.67 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2144, allocations: 0 / 445.4 MB, free: 32.67 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002495/0.2147, allocations: 52.59 kB / 445.5 MB, free: 32.66 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.0003534/0.215, allocations: 0.8222 MB / 446.3 MB, free: 31.93 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001779/0.2152, allocations: 111.7 kB / 446.4 MB, free: 31.89 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.423e-06/0.2152, allocations: 0 / 446.4 MB, free: 31.89 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.272e-05/0.2153, allocations: 44.12 kB / 446.4 MB, free: 31.88 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003185/0.2156, allocations: 62.5 kB / 446.5 MB, free: 31.84 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00196/0.2176, allocations: 2.592 MB / 449.1 MB, free: 30 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001144/0.2177, allocations: 0.7558 MB / 449.8 MB, free: 29.3 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001313/0.2178, allocations: 30.55 kB / 449.9 MB, free: 29.29 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.921e-05/0.2179, allocations: 100.5 kB / 450 MB, free: 29.22 MB / 350.1 MB Notification: Performance of SimCode: time 2.5e-07/0.2179, allocations: 0 / 450 MB, free: 29.22 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01449/0.2324, allocations: 5.275 MB / 455.2 MB, free: 28.83 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001332/0.2326, allocations: 212.1 kB / 455.4 MB, free: 28.57 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.565/1.798, allocations: 0 / 455.4 MB, free: 28.57 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)