Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.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_003,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_003",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_003",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.0008724/0.0008728, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.000898/0.0008982, allocations: 168.7 kB / 15.95 MB, free: 204 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.438/1.438, allocations: 223.3 MB / 240 MB, free: 5.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2397/0.2397, allocations: 22.36 MB / 313.4 MB, free: 13.14 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003479/0.000348, allocations: 11.98 kB / 382.1 MB, free: 10.39 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3138/0.3141, allocations: 55.97 MB / 438 MB, free: 39.28 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Interfaces/flowTwoPorts_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/flowTwoPorts_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_003): time 0.002472/0.3166, allocations: 2.635 MB / 440.7 MB, free: 37.36 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007873/0.3174, allocations: 442.4 kB / 441.1 MB, free: 37.04 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000158/0.3176, allocations: 11.28 kB / 441.1 MB, free: 37.03 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 6.819e-05/0.3177, allocations: 40.5 kB / 441.1 MB, free: 37.02 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003312/0.318, allocations: 150.4 kB / 441.3 MB, free: 36.91 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001538/0.3182, allocations: 63.7 kB / 441.3 MB, free: 36.87 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000296/0.3185, allocations: 391.9 kB / 441.7 MB, free: 36.67 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002864/0.3188, allocations: 204.4 kB / 441.9 MB, free: 36.6 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001853/0.319, allocations: 170.7 kB / 442.1 MB, free: 36.52 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001876/0.3192, allocations: 164.9 kB / 442.3 MB, free: 36.45 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.777e-05/0.3192, allocations: 16.66 kB / 442.3 MB, free: 36.45 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001136/0.3194, allocations: 46.41 kB / 442.3 MB, free: 36.45 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.562e-05/0.3194, allocations: 61.67 kB / 442.4 MB, free: 36.41 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.168e-05/0.3195, allocations: 86.42 kB / 442.5 MB, free: 36.35 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002259/0.3197, allocations: 287.7 kB / 442.7 MB, free: 36.28 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.231e-06/0.3197, allocations: 0 / 442.7 MB, free: 36.28 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.3197, allocations: 3.938 kB / 442.7 MB, free: 36.27 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.937e-06/0.3197, allocations: 4 kB / 442.8 MB, free: 36.27 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: 57 * Number of variables: 57 Notification: Performance of Generate backend data structure: time 0.000761/0.3205, allocations: 0.5737 MB / 443.3 MB, free: 35.79 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.929e-05/0.3206, allocations: 8.531 kB / 443.3 MB, free: 35.79 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.388e-05/0.3206, allocations: 61.77 kB / 443.4 MB, free: 35.73 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.417e-05/0.3207, allocations: 38.56 kB / 443.4 MB, free: 35.71 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003016/0.321, allocations: 300.4 kB / 443.7 MB, free: 35.45 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.945e-05/0.321, allocations: 20.81 kB / 443.7 MB, free: 35.44 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.693e-05/0.3211, allocations: 24.97 kB / 443.8 MB, free: 35.43 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004363/0.3215, allocations: 263.2 kB / 444 MB, free: 35.3 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.322e-05/0.3215, allocations: 7.938 kB / 444 MB, free: 35.29 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.537e-05/0.3216, allocations: 10.06 kB / 444 MB, free: 35.28 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.897e-06/0.3216, allocations: 7.625 kB / 444.1 MB, free: 35.28 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003063/0.3219, allocations: 199 kB / 444.2 MB, free: 35.21 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001113/0.323, allocations: 0.9038 MB / 445.1 MB, free: 34.56 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003088/0.3233, allocations: 178.1 kB / 445.3 MB, free: 34.47 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001613/0.3235, allocations: 98.03 kB / 445.4 MB, free: 34.43 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.083e-05/0.3235, allocations: 0 / 445.4 MB, free: 34.43 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.048e-05/0.3236, allocations: 37.34 kB / 445.5 MB, free: 34.39 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0001797/0.3238, allocations: 46.77 kB / 445.5 MB, free: 34.36 MB / 350.1 MB Notification: Performance of pre-optimization done (n=18): time 1.172e-06/0.3238, allocations: 0 / 445.5 MB, free: 34.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=18): time 0.001179/0.325, allocations: 447.7 kB / 445.9 MB, free: 34.12 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.863e-05/0.325, allocations: 58.22 kB / 446 MB, free: 34.05 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002446/0.3253, allocations: 300.1 kB / 446.3 MB, free: 33.89 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.838e-05/0.3253, allocations: 32.52 kB / 446.3 MB, free: 33.85 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.636e-05/0.3254, allocations: 176.7 kB / 446.5 MB, free: 33.7 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.267e-05/0.3255, allocations: 62.45 kB / 446.6 MB, free: 33.65 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.237e-05/0.3255, allocations: 4 kB / 446.6 MB, free: 33.65 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.721e-05/0.3255, allocations: 339.5 kB / 446.9 MB, free: 33.32 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001099/0.3257, allocations: 62.89 kB / 447 MB, free: 33.3 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001135/0.3258, allocations: 92.48 kB / 447 MB, free: 33.25 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001308/0.3259, allocations: 72.98 kB / 447.1 MB, free: 33.22 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.3259, allocations: 3.953 kB / 447.1 MB, free: 33.21 MB / 350.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0006347/0.3266, allocations: 310.6 kB / 447.4 MB, free: 33.07 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.717e-05/0.3266, allocations: 5.719 kB / 447.4 MB, free: 33.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.6e-06/0.3266, allocations: 0 / 447.4 MB, free: 33.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006801/0.3273, allocations: 112.7 kB / 447.5 MB, free: 33.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002266/0.3275, allocations: 44.48 kB / 447.6 MB, free: 33.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002954/0.3278, allocations: 0.5822 MB / 448.2 MB, free: 32.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001523/0.328, allocations: 7.219 kB / 448.2 MB, free: 32.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.271e-05/0.328, allocations: 12.64 kB / 448.2 MB, free: 32.48 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: 2 * 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 (21): * Single equations (assignments): 20 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0002197/0.3283, allocations: 141.8 kB / 448.3 MB, free: 32.34 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.945e-05/0.3283, allocations: 29.22 kB / 448.3 MB, free: 32.33 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007639/0.3291, allocations: 368.2 kB / 448.7 MB, free: 32.16 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.479e-06/0.3291, allocations: 2.875 kB / 448.7 MB, free: 32.16 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.772e-06/0.3291, allocations: 0 / 448.7 MB, free: 32.16 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.939e-06/0.3291, allocations: 3.938 kB / 448.7 MB, free: 32.16 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001037/0.3302, allocations: 0.7263 MB / 449.4 MB, free: 31.67 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.3302, allocations: 0 / 449.4 MB, free: 31.67 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002155/0.3304, allocations: 39.7 kB / 449.5 MB, free: 31.67 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004924/0.3309, allocations: 110.1 kB / 449.6 MB, free: 31.64 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.138e-05/0.3309, allocations: 9.703 kB / 449.6 MB, free: 31.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002598/0.3312, allocations: 0.592 MB / 450.2 MB, free: 31.07 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.3312, allocations: 4.797 kB / 450.2 MB, free: 31.07 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007654/0.332, allocations: 0.4987 MB / 450.7 MB, free: 30.77 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.836e-05/0.3321, allocations: 107.5 kB / 450.8 MB, free: 30.66 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.83e-05/0.3321, allocations: 10.69 kB / 450.8 MB, free: 30.65 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000158/0.3323, allocations: 6.625 kB / 450.8 MB, free: 30.64 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.877e-05/0.3324, allocations: 15.42 kB / 450.8 MB, free: 30.64 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.63e-05/0.3324, allocations: 10.47 kB / 450.8 MB, free: 30.64 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000165/0.3326, allocations: 214.2 kB / 451 MB, free: 30.52 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3326, allocations: 3.938 kB / 451.1 MB, free: 30.52 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003327/0.3329, allocations: 78 kB / 451.1 MB, free: 30.5 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (21): * Single equations (assignments): 20 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008236/0.3337, allocations: 1.009 MB / 452.1 MB, free: 29.68 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004473/0.3342, allocations: 198.5 kB / 452.3 MB, free: 29.61 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.215e-06/0.3342, allocations: 4 kB / 452.3 MB, free: 29.61 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002231/0.3344, allocations: 119.3 kB / 452.5 MB, free: 29.57 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004624/0.3349, allocations: 61.72 kB / 452.5 MB, free: 29.55 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002906/0.3378, allocations: 1.915 MB / 454.4 MB, free: 28.46 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002414/0.3381, allocations: 0.7812 MB / 455.2 MB, free: 27.76 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002041/0.3383, allocations: 44.23 kB / 455.3 MB, free: 27.75 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001449/0.3385, allocations: 115.7 kB / 455.4 MB, free: 27.66 MB / 350.1 MB Notification: Performance of SimCode: time 3.9e-07/0.3385, allocations: 0 / 455.4 MB, free: 27.66 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02384/0.3623, allocations: 6.68 MB / 462 MB, free: 27.25 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001697/0.3625, allocations: 225.9 kB / 462.3 MB, free: 27.02 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.851/2.213, allocations: 3.938 kB / 462.3 MB, free: 27.01 MB / 350.1 MB (rm -f AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_003_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_003.fmu > AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.pipe 2>&1) Environment - environmentSimulation: