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.000788/0.0007879, allocations: 91.92 kB / 15.06 MB, free: 1.098 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.0008998/0.0008998, allocations: 172.7 kB / 15.95 MB, free: 208 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.4/1.4, allocations: 223.3 MB / 240 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2697/0.2697, allocations: 22.35 MB / 313.4 MB, free: 13.09 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003307/0.0003309, allocations: 8 kB / 382 MB, free: 10.45 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3081/0.3085, allocations: 55.98 MB / 438 MB, free: 38.98 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002): time 0.002169/0.3107, allocations: 2.396 MB / 440.4 MB, free: 37.24 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006128/0.3113, allocations: 388.1 kB / 440.8 MB, free: 36.96 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001443/0.3115, allocations: 15.03 kB / 440.8 MB, free: 36.96 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.549e-05/0.3116, allocations: 32.16 kB / 440.8 MB, free: 36.94 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002624/0.3118, allocations: 124.3 kB / 441 MB, free: 36.86 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001749/0.312, allocations: 48.5 kB / 441 MB, free: 36.83 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002454/0.3123, allocations: 335 kB / 441.3 MB, free: 36.66 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000234/0.3125, allocations: 137 kB / 441.5 MB, free: 36.61 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001585/0.3127, allocations: 131.9 kB / 441.6 MB, free: 36.55 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001398/0.3128, allocations: 121.5 kB / 441.7 MB, free: 36.49 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.878e-05/0.3129, allocations: 11.72 kB / 441.7 MB, free: 36.49 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001058/0.313, allocations: 40.28 kB / 441.8 MB, free: 36.48 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.018e-05/0.313, allocations: 48.72 kB / 441.8 MB, free: 36.45 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.652e-05/0.3131, allocations: 73.17 kB / 441.9 MB, free: 36.4 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001803/0.3133, allocations: 208.2 kB / 442.1 MB, free: 36.35 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.3133, allocations: 3.938 kB / 442.1 MB, free: 36.35 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.3133, allocations: 2.562 kB / 442.1 MB, free: 36.35 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.43e-06/0.3133, allocations: 4 kB / 442.1 MB, free: 36.34 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.0005912/0.3139, allocations: 0.5271 MB / 442.6 MB, free: 35.87 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.28e-05/0.314, allocations: 13.94 kB / 442.6 MB, free: 35.87 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.531e-05/0.314, allocations: 47.16 kB / 442.7 MB, free: 35.82 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.391e-05/0.3141, allocations: 29.56 kB / 442.7 MB, free: 35.81 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002676/0.3143, allocations: 284.4 kB / 443 MB, free: 35.55 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.78e-05/0.3144, allocations: 16.19 kB / 443 MB, free: 35.55 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.248e-05/0.3144, allocations: 22.47 kB / 443 MB, free: 35.54 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002792/0.3147, allocations: 206.5 kB / 443.2 MB, free: 35.42 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.027e-05/0.3147, allocations: 0 / 443.2 MB, free: 35.42 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.766e-05/0.3147, allocations: 10.95 kB / 443.2 MB, free: 35.41 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.097e-05/0.3147, allocations: 5.875 kB / 443.3 MB, free: 35.41 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002014/0.3149, allocations: 125.2 kB / 443.4 MB, free: 35.36 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007835/0.3157, allocations: 0.8274 MB / 444.2 MB, free: 34.69 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002206/0.316, allocations: 91.03 kB / 444.3 MB, free: 34.64 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.721e-05/0.316, allocations: 44.97 kB / 444.3 MB, free: 34.62 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.925e-05/0.3161, allocations: 0 / 444.3 MB, free: 34.62 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.565e-05/0.3161, allocations: 44.83 kB / 444.4 MB, free: 34.57 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 9.22e-07/0.3161, allocations: 0 / 444.4 MB, free: 34.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002805/0.3164, allocations: 148.5 kB / 444.5 MB, free: 34.49 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.101e-05/0.3164, allocations: 51.41 kB / 444.6 MB, free: 34.43 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002138/0.3166, allocations: 289.3 kB / 444.9 MB, free: 34.27 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.357e-05/0.3167, allocations: 32.86 kB / 444.9 MB, free: 34.23 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.139e-05/0.3167, allocations: 170.8 kB / 445.1 MB, free: 34.08 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.268e-05/0.3168, allocations: 41.17 kB / 445.1 MB, free: 34.05 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.065e-06/0.3168, allocations: 4 kB / 445.1 MB, free: 34.05 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.195e-05/0.3168, allocations: 337.8 kB / 445.4 MB, free: 33.72 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.192e-05/0.3169, allocations: 39.11 kB / 445.5 MB, free: 33.7 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.853e-05/0.317, allocations: 58.42 kB / 445.5 MB, free: 33.66 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.464e-05/0.3171, allocations: 48.73 kB / 445.6 MB, free: 33.64 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.3171, allocations: 0 / 445.6 MB, free: 33.64 MB / 350.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002142/0.3173, allocations: 169 kB / 445.7 MB, free: 33.55 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.353e-05/0.3173, allocations: 5.938 kB / 445.7 MB, free: 33.55 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/0.3173, allocations: 0 / 445.7 MB, free: 33.55 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.494e-05/0.3174, allocations: 2.812 kB / 445.7 MB, free: 33.55 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001799/0.3175, allocations: 38.66 kB / 445.8 MB, free: 33.55 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.366e-06/0.3176, allocations: 2.906 kB / 445.8 MB, free: 33.55 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000101/0.3177, allocations: 22.59 kB / 445.8 MB, free: 33.53 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.202e-05/0.3177, allocations: 10.17 kB / 445.8 MB, free: 33.53 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.0001747/0.3179, allocations: 145.3 kB / 446 MB, free: 33.39 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.758e-05/0.3179, allocations: 23.94 kB / 446 MB, free: 33.38 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002624/0.3182, allocations: 160.2 kB / 446.1 MB, free: 33.29 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-06/0.3182, allocations: 2.438 kB / 446.1 MB, free: 33.29 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.3182, allocations: 0 / 446.1 MB, free: 33.29 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.357e-06/0.3182, allocations: 0 / 446.1 MB, free: 33.29 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002309/0.3184, allocations: 281 kB / 446.4 MB, free: 33.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.193e-06/0.3185, allocations: 0 / 446.4 MB, free: 33.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001633/0.3186, allocations: 27.77 kB / 446.4 MB, free: 33.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.3186, allocations: 6.906 kB / 446.5 MB, free: 33.05 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.144e-05/0.3187, allocations: 0 / 446.5 MB, free: 33.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.402e-06/0.3187, allocations: 4 kB / 446.5 MB, free: 33.04 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.3187, allocations: 2.969 kB / 446.5 MB, free: 33.04 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002623/0.3189, allocations: 279.8 kB / 446.7 MB, free: 32.84 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.426e-05/0.319, allocations: 98.47 kB / 446.8 MB, free: 32.74 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.539e-05/0.319, allocations: 4 kB / 446.8 MB, free: 32.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001085/0.3191, allocations: 3.656 kB / 446.8 MB, free: 32.73 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.566e-05/0.3192, allocations: 6.406 kB / 446.8 MB, free: 32.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.604e-06/0.3192, allocations: 6.906 kB / 446.8 MB, free: 32.73 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001413/0.3193, allocations: 209.7 kB / 447.1 MB, free: 32.61 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.002e-06/0.3193, allocations: 0 / 447.1 MB, free: 32.61 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002801/0.3196, allocations: 62.84 kB / 447.1 MB, free: 32.6 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.0004556/0.3201, allocations: 0.8146 MB / 447.9 MB, free: 31.86 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000207/0.3203, allocations: 108.1 kB / 448 MB, free: 31.82 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.3203, allocations: 0 / 448 MB, free: 31.82 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.324e-05/0.3204, allocations: 49.31 kB / 448.1 MB, free: 31.81 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003788/0.3208, allocations: 67.3 kB / 448.1 MB, free: 31.78 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002068/0.3229, allocations: 1.547 MB / 449.7 MB, free: 30.89 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000263/0.3231, allocations: 0.7505 MB / 450.4 MB, free: 30.2 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001525/0.3233, allocations: 32.52 kB / 450.5 MB, free: 30.19 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001229/0.3234, allocations: 92.11 kB / 450.6 MB, free: 30.12 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3235, allocations: 2.781 kB / 450.6 MB, free: 30.12 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01746/0.3409, allocations: 5.062 MB / 455.6 MB, free: 29.81 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001417/0.3411, allocations: 190.7 kB / 455.8 MB, free: 29.57 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.79/2.131, allocations: 0 / 455.8 MB, free: 29.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/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: