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.001162/0.001162, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001087/0.001087, allocations: 190.5 kB / 16.25 MB, free: 6.633 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.17/1.17, allocations: 222.9 MB / 239.9 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1677/0.1677, allocations: 22.36 MB / 312.4 MB, free: 12.62 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00116/0.00116, allocations: 59.91 kB / 380.4 MB, free: 10.88 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2018/0.203, allocations: 54.94 MB / 435.3 MB, free: 39.71 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.02332/0.2264, allocations: 22.62 MB / 458 MB, free: 31.34 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008021/0.2272, allocations: 459.1 kB / 458.4 MB, free: 31.01 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001365/0.2273, allocations: 13.75 kB / 458.4 MB, free: 31 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 7.943e-05/0.2274, allocations: 33.09 kB / 458.5 MB, free: 30.99 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000268/0.2277, allocations: 125.5 kB / 458.6 MB, free: 30.9 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000151/0.2279, allocations: 68.78 kB / 458.6 MB, free: 30.86 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002627/0.2281, allocations: 423.1 kB / 459.1 MB, free: 30.64 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002509/0.2284, allocations: 242.9 kB / 459.3 MB, free: 30.54 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001676/0.2286, allocations: 186.1 kB / 459.5 MB, free: 30.45 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001659/0.2287, allocations: 182.7 kB / 459.7 MB, free: 30.37 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.522e-05/0.2288, allocations: 27.44 kB / 459.7 MB, free: 30.37 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001085/0.2289, allocations: 60.95 kB / 459.7 MB, free: 30.36 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.894e-05/0.2289, allocations: 75.42 kB / 459.8 MB, free: 30.3 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001134/0.2291, allocations: 179.3 kB / 460 MB, free: 30.2 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002677/0.2293, allocations: 402 kB / 460.4 MB, free: 30.04 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.2293, allocations: 0 / 460.4 MB, free: 30.04 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.2294, allocations: 0 / 460.4 MB, free: 30.04 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.881e-06/0.2294, allocations: 0 / 460.4 MB, free: 30.04 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.0007625/0.2301, allocations: 0.6401 MB / 461 MB, free: 29.51 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.207e-05/0.2302, allocations: 9.906 kB / 461 MB, free: 29.51 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.31e-05/0.2302, allocations: 57.42 kB / 461.1 MB, free: 29.46 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.847e-05/0.2303, allocations: 41.44 kB / 461.1 MB, free: 29.43 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002508/0.2305, allocations: 315.3 kB / 461.4 MB, free: 29.16 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.804e-05/0.2306, allocations: 17.56 kB / 461.5 MB, free: 29.15 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.025e-05/0.2306, allocations: 24.12 kB / 461.5 MB, free: 29.14 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003705/0.231, allocations: 270.7 kB / 461.7 MB, free: 29.01 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.618e-06/0.231, allocations: 3.938 kB / 461.8 MB, free: 29 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.32e-05/0.231, allocations: 11.72 kB / 461.8 MB, free: 29 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.642e-06/0.231, allocations: 5.281 kB / 461.8 MB, free: 29 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000302/0.2313, allocations: 198.1 kB / 462 MB, free: 28.92 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009984/0.2323, allocations: 0.9037 MB / 462.9 MB, free: 28.27 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002904/0.2326, allocations: 170 kB / 463 MB, free: 28.19 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001735/0.2328, allocations: 96.39 kB / 463.1 MB, free: 28.15 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.52e-05/0.2329, allocations: 2.906 kB / 463.1 MB, free: 28.15 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.208e-05/0.2329, allocations: 40 kB / 463.2 MB, free: 28.1 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0001881/0.2331, allocations: 44.47 kB / 463.2 MB, free: 28.08 MB / 350.1 MB Notification: Performance of pre-optimization done (n=18): time 1.332e-06/0.2331, allocations: 3.938 kB / 463.2 MB, free: 28.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=18): time 0.001141/0.2342, allocations: 442.4 kB / 463.6 MB, free: 27.84 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.706e-05/0.2343, allocations: 52.91 kB / 463.7 MB, free: 27.78 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002132/0.2345, allocations: 304.1 kB / 464 MB, free: 27.61 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.659e-05/0.2345, allocations: 31.02 kB / 464 MB, free: 27.58 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.781e-05/0.2346, allocations: 188 kB / 464.2 MB, free: 27.42 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.107e-05/0.2346, allocations: 58.19 kB / 464.3 MB, free: 27.37 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.529e-05/0.2347, allocations: 48.8 kB / 464.3 MB, free: 27.34 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.562e-05/0.2347, allocations: 343.2 kB / 464.6 MB, free: 27.01 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001094/0.2348, allocations: 65.62 kB / 464.7 MB, free: 26.99 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000111/0.235, allocations: 92.3 kB / 464.8 MB, free: 26.94 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003628/0.2386, allocations: 0.6972 MB / 465.5 MB, free: 26.78 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.2386, allocations: 5.094 kB / 465.5 MB, free: 26.78 MB / 350.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0006744/0.2393, allocations: 305.5 kB / 465.8 MB, free: 26.64 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.204e-05/0.2393, allocations: 5.625 kB / 465.8 MB, free: 26.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.349e-06/0.2393, allocations: 5.156 kB / 465.8 MB, free: 26.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007077/0.24, allocations: 106.5 kB / 465.9 MB, free: 26.62 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002251/0.2403, allocations: 44.31 kB / 466 MB, free: 26.61 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00024/0.2405, allocations: 0.5787 MB / 466.5 MB, free: 26.06 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001484/0.2407, allocations: 5.016 kB / 466.5 MB, free: 26.05 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.932e-05/0.2407, allocations: 13.92 kB / 466.6 MB, free: 26.05 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.000148/0.2409, allocations: 155.2 kB / 466.7 MB, free: 25.91 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.957e-05/0.2409, allocations: 28.88 kB / 466.7 MB, free: 25.89 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007468/0.2417, allocations: 351.9 kB / 467.1 MB, free: 25.74 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.716e-06/0.2417, allocations: 3.312 kB / 467.1 MB, free: 25.74 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.2417, allocations: 0 / 467.1 MB, free: 25.74 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.2417, allocations: 0 / 467.1 MB, free: 25.74 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008746/0.2426, allocations: 0.7432 MB / 467.8 MB, free: 25.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.073e-06/0.2426, allocations: 0 / 467.8 MB, free: 25.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000213/0.2428, allocations: 46.59 kB / 467.9 MB, free: 25.01 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004719/0.2433, allocations: 104.1 kB / 468 MB, free: 24.93 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.883e-05/0.2433, allocations: 11.23 kB / 468 MB, free: 24.92 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002003/0.2435, allocations: 0.5822 MB / 468.6 MB, free: 24.32 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.2435, allocations: 32 / 468.6 MB, free: 24.32 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006837/0.2442, allocations: 0.5073 MB / 469.1 MB, free: 23.82 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.145e-05/0.2443, allocations: 104.2 kB / 469.2 MB, free: 23.71 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.333e-05/0.2443, allocations: 4 kB / 469.2 MB, free: 23.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001596/0.2445, allocations: 12.06 kB / 469.2 MB, free: 23.69 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.404e-05/0.2445, allocations: 22.36 kB / 469.2 MB, free: 23.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.29e-05/0.2446, allocations: 4 kB / 469.2 MB, free: 23.67 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001252/0.2447, allocations: 218.6 kB / 469.4 MB, free: 23.48 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2447, allocations: 0 / 469.4 MB, free: 23.48 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002793/0.245, allocations: 71.84 kB / 469.5 MB, free: 23.41 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.0006211/0.2456, allocations: 1.028 MB / 470.5 MB, free: 22.38 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003741/0.246, allocations: 210.3 kB / 470.7 MB, free: 22.2 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.246, allocations: 8.125 kB / 470.7 MB, free: 22.2 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001942/0.2462, allocations: 120.5 kB / 470.9 MB, free: 22.09 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000356/0.2466, allocations: 71.92 kB / 470.9 MB, free: 22.03 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00295/0.2495, allocations: 3.108 MB / 474 MB, free: 19.03 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001248/0.2497, allocations: 0.7747 MB / 474.8 MB, free: 18.26 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001568/0.2498, allocations: 48.08 kB / 474.9 MB, free: 18.22 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001189/0.2499, allocations: 116.8 kB / 475 MB, free: 18.12 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2499, allocations: 0 / 475 MB, free: 18.12 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01754/0.2675, allocations: 6.997 MB / 482 MB, free: 14.03 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001445/0.2677, allocations: 242.3 kB / 482.2 MB, free: 13.77 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.701/1.969, allocations: 0 / 482.2 MB, free: 13.77 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/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)