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.0009911/0.000991, allocations: 100 kB / 15.05 MB, free: 1.105 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.001/0.001, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.321/1.321, allocations: 223.2 MB / 239.9 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2345/0.2345, allocations: 22.35 MB / 313.3 MB, free: 13.1 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004635/0.0004635, allocations: 12 kB / 381.9 MB, free: 10.5 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3058/0.3063, allocations: 55.98 MB / 437.9 MB, free: 39.18 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002): time 0.001974/0.3083, allocations: 2.222 MB / 440.1 MB, free: 37.57 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000632/0.309, allocations: 423.8 kB / 440.5 MB, free: 37.27 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001374/0.3091, allocations: 12.34 kB / 440.5 MB, free: 37.26 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.566e-05/0.3092, allocations: 28.31 kB / 440.6 MB, free: 37.25 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000266/0.3095, allocations: 164.4 kB / 440.7 MB, free: 37.13 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001706/0.3096, allocations: 49.41 kB / 440.8 MB, free: 37.1 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002038/0.3099, allocations: 246.5 kB / 441 MB, free: 36.97 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002113/0.3101, allocations: 134.9 kB / 441.1 MB, free: 36.92 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001963/0.3103, allocations: 158.3 kB / 441.3 MB, free: 36.84 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001326/0.3104, allocations: 112.3 kB / 441.4 MB, free: 36.79 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.801e-05/0.3105, allocations: 13.03 kB / 441.4 MB, free: 36.79 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.438e-05/0.3105, allocations: 43.36 kB / 441.5 MB, free: 36.78 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3e-05/0.3106, allocations: 35.83 kB / 441.5 MB, free: 36.76 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.73e-05/0.3106, allocations: 83.45 kB / 441.6 MB, free: 36.7 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001749/0.3108, allocations: 214.8 kB / 441.8 MB, free: 36.64 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.264e-06/0.3108, allocations: 4 kB / 441.8 MB, free: 36.64 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.3108, allocations: 3.938 kB / 441.8 MB, free: 36.64 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.925e-06/0.3109, allocations: 0 / 441.8 MB, free: 36.64 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.000617/0.3115, allocations: 0.5247 MB / 442.3 MB, free: 36.17 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.714e-05/0.3115, allocations: 8.688 kB / 442.3 MB, free: 36.17 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.475e-05/0.3116, allocations: 57.28 kB / 442.4 MB, free: 36.12 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.556e-05/0.3116, allocations: 33.69 kB / 442.4 MB, free: 36.1 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002539/0.3119, allocations: 274 kB / 442.7 MB, free: 35.85 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.649e-05/0.3119, allocations: 17.19 kB / 442.7 MB, free: 35.84 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.91e-05/0.3119, allocations: 15.69 kB / 442.7 MB, free: 35.84 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002673/0.3122, allocations: 210.1 kB / 442.9 MB, free: 35.71 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.266e-06/0.3122, allocations: 0 / 442.9 MB, free: 35.71 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.81e-05/0.3123, allocations: 8 kB / 442.9 MB, free: 35.71 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.512e-06/0.3123, allocations: 9.719 kB / 442.9 MB, free: 35.7 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001961/0.3125, allocations: 128.7 kB / 443.1 MB, free: 35.66 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007904/0.3133, allocations: 0.8188 MB / 443.9 MB, free: 35 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000201/0.3135, allocations: 96.5 kB / 444 MB, free: 34.94 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.842e-05/0.3135, allocations: 0 / 444 MB, free: 34.94 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.383e-05/0.3135, allocations: 41.94 kB / 444 MB, free: 34.9 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 8.92e-07/0.3135, allocations: 0 / 444 MB, free: 34.9 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002703/0.3138, allocations: 144.7 kB / 444.2 MB, free: 34.82 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.155e-05/0.3138, allocations: 54.73 kB / 444.2 MB, free: 34.75 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002127/0.3141, allocations: 282.1 kB / 444.5 MB, free: 34.6 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.197e-05/0.3141, allocations: 32.67 kB / 444.5 MB, free: 34.56 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.481e-05/0.3142, allocations: 172.8 kB / 444.7 MB, free: 34.41 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.207e-05/0.3142, allocations: 41.64 kB / 444.7 MB, free: 34.38 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.095e-06/0.3142, allocations: 8 kB / 444.7 MB, free: 34.38 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.536e-05/0.3143, allocations: 341.2 kB / 445.1 MB, free: 34.05 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.17e-05/0.3143, allocations: 35.2 kB / 445.1 MB, free: 34.04 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.61e-05/0.3144, allocations: 53.56 kB / 445.2 MB, free: 34 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.483e-05/0.3145, allocations: 52.97 kB / 445.2 MB, free: 33.97 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.3145, allocations: 0 / 445.2 MB, free: 33.97 MB / 350.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002101/0.3147, allocations: 168.7 kB / 445.4 MB, free: 33.88 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.368e-05/0.3147, allocations: 6.031 kB / 445.4 MB, free: 33.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.3147, allocations: 0 / 445.4 MB, free: 33.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.081e-05/0.3148, allocations: 0 / 445.4 MB, free: 33.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001915/0.315, allocations: 36.3 kB / 445.4 MB, free: 33.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.071e-06/0.315, allocations: 6.656 kB / 445.4 MB, free: 33.88 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001143/0.3151, allocations: 23.5 kB / 445.5 MB, free: 33.86 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.272e-05/0.3151, allocations: 5.688 kB / 445.5 MB, free: 33.86 MB / 350.1 MB Warning: Assuming fixed start value for the following 2 variables: HE.Tco:VARIABLE(min = 0.0 start = 299.958408982322 unit = "K" fixed = true nominal = 300.0 ) type: Real HE.Tho:VARIABLE(min = 0.0 start = 339.5666268514094 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001868/0.3153, allocations: 152.2 kB / 445.6 MB, free: 33.72 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.65e-05/0.3153, allocations: 22.09 kB / 445.6 MB, free: 33.71 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002688/0.3156, allocations: 159.7 kB / 445.8 MB, free: 33.61 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.366e-06/0.3156, allocations: 2.812 kB / 445.8 MB, free: 33.61 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.3156, allocations: 0 / 445.8 MB, free: 33.61 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.868e-06/0.3157, allocations: 3.984 kB / 445.8 MB, free: 33.61 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002262/0.3159, allocations: 273.7 kB / 446.1 MB, free: 33.38 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.245e-06/0.3159, allocations: 0 / 446.1 MB, free: 33.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001695/0.3161, allocations: 32.88 kB / 446.1 MB, free: 33.37 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.739e-06/0.3161, allocations: 6.484 kB / 446.1 MB, free: 33.37 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.21e-05/0.3161, allocations: 0 / 446.1 MB, free: 33.37 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.3161, allocations: 4 kB / 446.1 MB, free: 33.37 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.3161, allocations: 0 / 446.1 MB, free: 33.37 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002774/0.3164, allocations: 278.7 kB / 446.4 MB, free: 33.17 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.517e-05/0.3165, allocations: 96.8 kB / 446.5 MB, free: 33.06 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.877e-05/0.3165, allocations: 6.469 kB / 446.5 MB, free: 33.06 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001166/0.3166, allocations: 7.938 kB / 446.5 MB, free: 33.05 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.719e-05/0.3167, allocations: 13.02 kB / 446.5 MB, free: 33.05 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.814e-06/0.3167, allocations: 6.938 kB / 446.5 MB, free: 33.05 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001581/0.3169, allocations: 210.1 kB / 446.7 MB, free: 32.93 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3169, allocations: 0 / 446.7 MB, free: 32.93 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002729/0.3172, allocations: 57.53 kB / 446.8 MB, free: 32.92 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004357/0.3176, allocations: 0.8123 MB / 447.6 MB, free: 32.19 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001833/0.3178, allocations: 103.7 kB / 447.7 MB, free: 32.16 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.3178, allocations: 0 / 447.7 MB, free: 32.16 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.943e-05/0.3179, allocations: 49.08 kB / 447.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.0002945/0.3182, allocations: 68.83 kB / 447.8 MB, free: 32.11 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001115/0.3193, allocations: 1.252 MB / 449 MB, free: 31.11 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001465/0.3195, allocations: 0.7553 MB / 449.8 MB, free: 30.42 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001369/0.3196, allocations: 43.36 kB / 449.8 MB, free: 30.41 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.175e-05/0.3197, allocations: 88.77 kB / 449.9 MB, free: 30.34 MB / 350.1 MB Notification: Performance of SimCode: time 3.7e-07/0.3197, allocations: 0 / 449.9 MB, free: 30.34 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01445/0.3342, allocations: 4.878 MB / 454.8 MB, free: 30.05 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001487/0.3343, allocations: 199.3 kB / 455 MB, free: 29.81 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.623/1.957, allocations: 0 / 455 MB, free: 29.81 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/linux/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) Environment - environmentSimulation: