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.001069/0.001069, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001099/0.001099, allocations: 194.6 kB / 16.53 MB, free: 6.699 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.385/1.385, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2615/0.2615, allocations: 22.35 MB / 312.7 MB, free: 12.49 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001419/0.001419, allocations: 67.89 kB / 380.9 MB, free: 10.4 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2688/0.2702, allocations: 54.94 MB / 435.9 MB, free: 39.68 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Liquid/HE_LiquidLiquid_1vol.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/Liquid/HE_LiquidLiquid_1vol.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.0337/0.304, allocations: 22.29 MB / 458.2 MB, free: 31.55 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00124/0.3052, allocations: 413.7 kB / 458.6 MB, free: 31.25 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002144/0.3055, allocations: 12.62 kB / 458.6 MB, free: 31.25 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001038/0.3056, allocations: 44.92 kB / 458.6 MB, free: 31.22 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003433/0.3059, allocations: 136.2 kB / 458.8 MB, free: 31.12 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000196/0.3061, allocations: 87.47 kB / 458.8 MB, free: 31.07 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003145/0.3065, allocations: 422.7 kB / 459.3 MB, free: 30.86 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003394/0.3068, allocations: 242.5 kB / 459.5 MB, free: 30.75 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002031/0.307, allocations: 177.8 kB / 459.7 MB, free: 30.68 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002097/0.3073, allocations: 186.1 kB / 459.9 MB, free: 30.59 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.38e-05/0.3073, allocations: 28.84 kB / 459.9 MB, free: 30.59 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001533/0.3075, allocations: 60.31 kB / 459.9 MB, free: 30.58 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.26e-05/0.3075, allocations: 67.38 kB / 460 MB, free: 30.54 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001523/0.3077, allocations: 179.7 kB / 460.2 MB, free: 30.43 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003363/0.308, allocations: 403.3 kB / 460.6 MB, free: 30.27 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.778e-06/0.308, allocations: 0 / 460.6 MB, free: 30.27 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.3081, allocations: 4 kB / 460.6 MB, free: 30.26 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.566e-06/0.3081, allocations: 0 / 460.6 MB, free: 30.26 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.0009004/0.309, allocations: 0.6329 MB / 461.2 MB, free: 29.74 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.287e-05/0.309, allocations: 9.312 kB / 461.2 MB, free: 29.74 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.851e-05/0.3091, allocations: 61.25 kB / 461.3 MB, free: 29.68 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.723e-05/0.3092, allocations: 39.22 kB / 461.3 MB, free: 29.66 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002892/0.3095, allocations: 314.3 kB / 461.6 MB, free: 29.39 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.153e-05/0.3095, allocations: 17.72 kB / 461.6 MB, free: 29.38 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.419e-05/0.3095, allocations: 23.41 kB / 461.7 MB, free: 29.38 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004002/0.3099, allocations: 273 kB / 461.9 MB, free: 29.23 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.166e-05/0.31, allocations: 3.938 kB / 461.9 MB, free: 29.23 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.541e-05/0.31, allocations: 8.609 kB / 461.9 MB, free: 29.23 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.306e-06/0.31, allocations: 9.812 kB / 462 MB, free: 29.22 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003319/0.3103, allocations: 199.7 kB / 462.2 MB, free: 29.14 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001131/0.3115, allocations: 0.8953 MB / 463 MB, free: 28.5 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000333/0.3118, allocations: 175.9 kB / 463.2 MB, free: 28.41 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001868/0.312, allocations: 105.9 kB / 463.3 MB, free: 28.37 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.51e-05/0.3121, allocations: 2.281 kB / 463.3 MB, free: 28.37 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.84e-05/0.3121, allocations: 39.56 kB / 463.4 MB, free: 28.32 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002011/0.3123, allocations: 37 kB / 463.4 MB, free: 28.3 MB / 350.1 MB Notification: Performance of pre-optimization done (n=18): time 1.553e-06/0.3123, allocations: 0 / 463.4 MB, free: 28.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=18): time 0.001303/0.3136, allocations: 447 kB / 463.8 MB, free: 28.07 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.287e-05/0.3136, allocations: 53.75 kB / 463.9 MB, free: 28 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002516/0.3139, allocations: 296.2 kB / 464.2 MB, free: 27.84 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.852e-05/0.3139, allocations: 33.94 kB / 464.2 MB, free: 27.8 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.023e-05/0.314, allocations: 187.3 kB / 464.4 MB, free: 27.64 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.816e-05/0.3141, allocations: 64.45 kB / 464.5 MB, free: 27.59 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.231e-05/0.3141, allocations: 49 kB / 464.5 MB, free: 27.56 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.29e-05/0.3142, allocations: 343.9 kB / 464.8 MB, free: 27.23 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001203/0.3143, allocations: 62.34 kB / 464.9 MB, free: 27.21 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001249/0.3145, allocations: 91.88 kB / 465 MB, free: 27.16 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003871/0.3183, allocations: 0.7024 MB / 465.7 MB, free: 27 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.3184, allocations: 1 kB / 465.7 MB, free: 27 MB / 350.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0008054/0.3192, allocations: 315 kB / 466 MB, free: 26.86 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.676e-05/0.3192, allocations: 8.469 kB / 466 MB, free: 26.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/0.3192, allocations: 1.156 kB / 466 MB, free: 26.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00075/0.32, allocations: 107.7 kB / 466.1 MB, free: 26.83 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002482/0.3202, allocations: 47.84 kB / 466.2 MB, free: 26.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003105/0.3205, allocations: 0.5786 MB / 466.7 MB, free: 26.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002016/0.3208, allocations: 5.312 kB / 466.7 MB, free: 26.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.034e-05/0.3208, allocations: 9.797 kB / 466.8 MB, free: 26.27 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: 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001896/0.321, allocations: 151.9 kB / 466.9 MB, free: 26.13 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.879e-05/0.321, allocations: 28.81 kB / 466.9 MB, free: 26.11 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008351/0.3219, allocations: 358.4 kB / 467.3 MB, free: 25.87 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.809e-06/0.3219, allocations: 4 kB / 467.3 MB, free: 25.87 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.74e-06/0.3219, allocations: 0 / 467.3 MB, free: 25.87 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.242e-06/0.3219, allocations: 3.516 kB / 467.3 MB, free: 25.87 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001054/0.323, allocations: 0.7386 MB / 468 MB, free: 25.16 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.323, allocations: 3.422 kB / 468 MB, free: 25.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002248/0.3232, allocations: 35.42 kB / 468.1 MB, free: 25.13 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005083/0.3237, allocations: 104.6 kB / 468.2 MB, free: 25.05 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.952e-05/0.3238, allocations: 7.375 kB / 468.2 MB, free: 25.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002478/0.324, allocations: 0.5901 MB / 468.8 MB, free: 24.44 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.324, allocations: 0 / 468.8 MB, free: 24.44 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007931/0.3248, allocations: 0.5047 MB / 469.3 MB, free: 23.95 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.146e-05/0.3249, allocations: 107.9 kB / 469.4 MB, free: 23.83 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.815e-05/0.325, allocations: 7.938 kB / 469.4 MB, free: 23.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001623/0.3251, allocations: 8 kB / 469.4 MB, free: 23.81 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.147e-05/0.3252, allocations: 22.55 kB / 469.4 MB, free: 23.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.355e-05/0.3252, allocations: 8.062 kB / 469.4 MB, free: 23.79 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001525/0.3254, allocations: 221.2 kB / 469.6 MB, free: 23.6 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3254, allocations: 0 / 469.6 MB, free: 23.6 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003277/0.3257, allocations: 71.84 kB / 469.7 MB, free: 23.53 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007508/0.3265, allocations: 1.018 MB / 470.7 MB, free: 22.51 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004811/0.327, allocations: 215.6 kB / 470.9 MB, free: 22.32 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.327, allocations: 0 / 470.9 MB, free: 22.32 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002263/0.3272, allocations: 122.7 kB / 471.1 MB, free: 22.21 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004246/0.3276, allocations: 63.73 kB / 471.1 MB, free: 22.16 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003438/0.3311, allocations: 2.998 MB / 474.1 MB, free: 19.28 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001691/0.3313, allocations: 0.7774 MB / 474.9 MB, free: 18.51 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000181/0.3315, allocations: 45.25 kB / 474.9 MB, free: 18.48 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001324/0.3316, allocations: 117.4 kB / 475.1 MB, free: 18.37 MB / 350.1 MB Notification: Performance of SimCode: time 4.61e-07/0.3316, allocations: 0 / 475.1 MB, free: 18.37 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04129/0.3729, allocations: 7.107 MB / 482.2 MB, free: 14.13 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.12/11.49, allocations: 17.11 kB / 482.2 MB, free: 14.12 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 & python3 -m fmpy simulate --output-file AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003_res.csv --start-time 0 --stop-time 1000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 2 AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_003.fmu > AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.pipe 2>&1)