Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.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_001,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_001",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_001",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.001134/0.001134, allocations: 99.86 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.0009236/0.0009239, allocations: 177.3 kB / 15.95 MB, free: 216 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.365/1.365, allocations: 223.2 MB / 239.9 MB, free: 5.453 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2124/0.2124, allocations: 22.33 MB / 313.3 MB, free: 13.22 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003176/0.0003177, allocations: 8 kB / 381.9 MB, free: 10.57 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3129/0.3133, allocations: 55.97 MB / 437.9 MB, free: 39.39 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Interfaces/flowOnePort_pwh.mo:4:3-4:45:writable] Warning: An inner declaration for outer component system could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Interfaces/flowOnePort_pwh.mo:4:3-4:45:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer "system" component but an inner "system" component is not defined. Drag AES.ProcessComponents.Thermal.System_settings.System_liquid into your model to specify the working fluid properties. Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001): time 0.001872/0.3152, allocations: 2.018 MB / 439.9 MB, free: 37.93 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000353/0.3156, allocations: 265 kB / 440.2 MB, free: 37.73 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001094/0.3157, allocations: 16.72 kB / 440.2 MB, free: 37.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.591e-05/0.3157, allocations: 29.14 kB / 440.2 MB, free: 37.71 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002186/0.316, allocations: 120.2 kB / 440.3 MB, free: 37.62 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001112/0.3161, allocations: 25.75 kB / 440.4 MB, free: 37.61 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001759/0.3163, allocations: 201.3 kB / 440.5 MB, free: 37.5 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001945/0.3165, allocations: 125.2 kB / 440.7 MB, free: 37.45 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001888/0.3167, allocations: 136.7 kB / 440.8 MB, free: 37.39 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001207/0.3168, allocations: 84.75 kB / 440.9 MB, free: 37.35 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.727e-05/0.3168, allocations: 13.34 kB / 440.9 MB, free: 37.34 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.16e-05/0.3169, allocations: 8.062 kB / 440.9 MB, free: 37.34 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.052e-05/0.3169, allocations: 35.12 kB / 440.9 MB, free: 37.32 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.678e-05/0.3169, allocations: 68.33 kB / 441 MB, free: 37.27 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001418/0.3171, allocations: 157.9 kB / 441.2 MB, free: 37.23 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.114e-06/0.3171, allocations: 0 / 441.2 MB, free: 37.23 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.3171, allocations: 0 / 441.2 MB, free: 37.23 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.99e-06/0.3171, allocations: 2.406 kB / 441.2 MB, free: 37.23 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: 39 * Number of variables: 39 Notification: Performance of Generate backend data structure: time 0.0005079/0.3176, allocations: 487.7 kB / 441.6 MB, free: 36.79 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.574e-05/0.3177, allocations: 12.19 kB / 441.7 MB, free: 36.79 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.462e-05/0.3177, allocations: 51.16 kB / 441.7 MB, free: 36.74 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.751e-05/0.3178, allocations: 25.31 kB / 441.7 MB, free: 36.73 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002278/0.318, allocations: 267.8 kB / 442 MB, free: 36.48 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.542e-05/0.318, allocations: 14.23 kB / 442 MB, free: 36.47 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.836e-05/0.3181, allocations: 19.94 kB / 442 MB, free: 36.46 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000288/0.3184, allocations: 198.3 kB / 442.2 MB, free: 36.34 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.516e-06/0.3184, allocations: 0 / 442.2 MB, free: 36.34 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.585e-05/0.3184, allocations: 8 kB / 442.2 MB, free: 36.33 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.787e-06/0.3184, allocations: 5.469 kB / 442.2 MB, free: 36.33 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002647/0.3187, allocations: 119.7 kB / 442.3 MB, free: 36.29 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007311/0.3194, allocations: 0.8354 MB / 443.2 MB, free: 35.57 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001651/0.3196, allocations: 86.48 kB / 443.3 MB, free: 35.52 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.139e-05/0.3196, allocations: 3.281 kB / 443.3 MB, free: 35.52 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.686e-05/0.3196, allocations: 37.66 kB / 443.3 MB, free: 35.48 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.072e-06/0.3196, allocations: 4 kB / 443.3 MB, free: 35.47 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004395/0.3201, allocations: 181.7 kB / 443.5 MB, free: 35.39 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.247e-05/0.3201, allocations: 57.88 kB / 443.5 MB, free: 35.32 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001616/0.3203, allocations: 223.9 kB / 443.8 MB, free: 35.18 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.469e-05/0.3203, allocations: 25.7 kB / 443.8 MB, free: 35.15 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.218e-05/0.3204, allocations: 146.3 kB / 443.9 MB, free: 35.02 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.325e-05/0.3204, allocations: 51.53 kB / 444 MB, free: 34.98 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.003e-06/0.3204, allocations: 8 kB / 444 MB, free: 34.97 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.362e-05/0.3205, allocations: 330.9 kB / 444.3 MB, free: 34.65 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001001/0.3206, allocations: 38.72 kB / 444.4 MB, free: 34.64 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001056/0.3207, allocations: 59.67 kB / 444.4 MB, free: 34.6 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001176/0.3208, allocations: 47.28 kB / 444.5 MB, free: 34.58 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.3209, allocations: 4 kB / 444.5 MB, free: 34.58 MB / 350.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002805/0.3211, allocations: 168.4 kB / 444.6 MB, free: 34.49 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.381e-05/0.3212, allocations: 2.906 kB / 444.6 MB, free: 34.49 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.3212, allocations: 3.062 kB / 444.6 MB, free: 34.49 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.154e-05/0.3212, allocations: 0 / 444.6 MB, free: 34.49 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001929/0.3214, allocations: 39.91 kB / 444.7 MB, free: 34.49 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.172e-06/0.3214, allocations: 3.984 kB / 444.7 MB, free: 34.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.943e-05/0.3215, allocations: 21.12 kB / 444.7 MB, free: 34.47 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.859e-06/0.3215, allocations: 5.406 kB / 444.7 MB, free: 34.47 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.0001604/0.3217, allocations: 132.3 kB / 444.8 MB, free: 34.34 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.557e-05/0.3217, allocations: 24.67 kB / 444.9 MB, free: 34.33 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.59e-05/0.3218, allocations: 24.78 kB / 444.9 MB, free: 34.31 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.837e-06/0.3218, allocations: 10.41 kB / 444.9 MB, free: 34.3 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.502e-06/0.3218, allocations: 0 / 444.9 MB, free: 34.3 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.419e-06/0.3218, allocations: 3.984 kB / 444.9 MB, free: 34.3 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002191/0.322, allocations: 257.9 kB / 445.1 MB, free: 34.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.322, allocations: 0 / 445.1 MB, free: 34.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001814/0.3222, allocations: 32.67 kB / 445.2 MB, free: 34.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.3222, allocations: 3.938 kB / 445.2 MB, free: 34.07 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.556e-05/0.3223, allocations: 10.8 kB / 445.2 MB, free: 34.06 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.3223, allocations: 0 / 445.2 MB, free: 34.06 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.3223, allocations: 0 / 445.2 MB, free: 34.06 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003943/0.3227, allocations: 295.9 kB / 445.5 MB, free: 33.86 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.917e-05/0.3227, allocations: 95.42 kB / 445.6 MB, free: 33.75 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.072e-05/0.3228, allocations: 6.938 kB / 445.6 MB, free: 33.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001153/0.3229, allocations: 11.42 kB / 445.6 MB, free: 33.74 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.996e-05/0.3229, allocations: 13.48 kB / 445.6 MB, free: 33.74 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.532e-06/0.323, allocations: 6.781 kB / 445.6 MB, free: 33.73 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.741e-05/0.3231, allocations: 169.8 kB / 445.8 MB, free: 33.63 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3231, allocations: 0 / 445.8 MB, free: 33.63 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002499/0.3233, allocations: 44.47 kB / 445.8 MB, free: 33.62 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 (14): * Single equations (assignments): 14 * 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.0005445/0.3239, allocations: 0.832 MB / 446.6 MB, free: 32.89 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002531/0.3241, allocations: 115.1 kB / 446.8 MB, free: 32.86 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.3241, allocations: 0 / 446.8 MB, free: 32.86 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001087/0.3243, allocations: 51.77 kB / 446.8 MB, free: 32.84 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002634/0.3245, allocations: 51.3 kB / 446.9 MB, free: 32.82 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001762/0.3263, allocations: 1.647 MB / 448.5 MB, free: 31.74 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001416/0.3265, allocations: 0.7421 MB / 449.3 MB, free: 31.04 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001421/0.3266, allocations: 32.7 kB / 449.3 MB, free: 31.02 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.303e-05/0.3267, allocations: 71.55 kB / 449.4 MB, free: 30.97 MB / 350.1 MB Notification: Performance of SimCode: time 2e-07/0.3267, allocations: 0 / 449.4 MB, free: 30.97 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01282/0.3395, allocations: 4.16 MB / 453.5 MB, free: 30.72 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002509/0.3398, allocations: 193.4 kB / 453.7 MB, free: 30.48 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.617/1.957, allocations: 9.5 kB / 453.7 MB, free: 30.47 MB / 350.1 MB (rm -f AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_001_fmu --startTime=0 --stopTime=5000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_001.fmu > AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.pipe 2>&1) Environment - environmentSimulation: