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.001176/0.001176, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001155/0.001155, allocations: 193.6 kB / 16.13 MB, free: 6.645 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.192/1.192, allocations: 222.9 MB / 239.8 MB, free: 4.57 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1789/0.1789, allocations: 22.36 MB / 312.3 MB, free: 12.69 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001179/0.001179, allocations: 63.91 kB / 380.2 MB, free: 11 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2079/0.2091, allocations: 54.94 MB / 435.2 MB, free: 39.57 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.0235/0.2326, allocations: 22.51 MB / 457.7 MB, free: 31.24 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008862/0.2335, allocations: 471 kB / 458.1 MB, free: 30.9 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001346/0.2336, allocations: 14.5 kB / 458.1 MB, free: 30.89 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 8.163e-05/0.2337, allocations: 31.41 kB / 458.2 MB, free: 30.88 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002538/0.234, allocations: 118.9 kB / 458.3 MB, free: 30.8 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001301/0.2341, allocations: 70.78 kB / 458.4 MB, free: 30.75 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002472/0.2344, allocations: 403.8 kB / 458.8 MB, free: 30.55 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002432/0.2346, allocations: 219.8 kB / 459 MB, free: 30.46 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00017/0.2348, allocations: 179.7 kB / 459.1 MB, free: 30.38 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001607/0.235, allocations: 173.4 kB / 459.3 MB, free: 30.3 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.843e-05/0.235, allocations: 22.75 kB / 459.3 MB, free: 30.3 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001067/0.2351, allocations: 52.39 kB / 459.4 MB, free: 30.29 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.421e-05/0.2352, allocations: 70.88 kB / 459.5 MB, free: 30.25 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001241/0.2353, allocations: 168.3 kB / 459.6 MB, free: 30.15 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002581/0.2356, allocations: 392.8 kB / 460 MB, free: 30 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.327e-06/0.2356, allocations: 1.156 kB / 460 MB, free: 30 MB / 350.1 MB Notification: Performance of FrontEnd: time 6.32e-07/0.2356, allocations: 0 / 460 MB, free: 30 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.729e-06/0.2356, allocations: 0 / 460 MB, free: 30 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.0007741/0.2364, allocations: 0.637 MB / 460.6 MB, free: 29.46 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.108e-05/0.2364, allocations: 12.97 kB / 460.7 MB, free: 29.46 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.558e-05/0.2365, allocations: 62.06 kB / 460.7 MB, free: 29.41 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.741e-05/0.2365, allocations: 38.22 kB / 460.8 MB, free: 29.39 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002398/0.2368, allocations: 310 kB / 461.1 MB, free: 29.12 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.687e-05/0.2368, allocations: 18.53 kB / 461.1 MB, free: 29.11 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.521e-05/0.2368, allocations: 22.94 kB / 461.1 MB, free: 29.1 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003553/0.2372, allocations: 275.8 kB / 461.4 MB, free: 28.96 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.796e-06/0.2372, allocations: 3.938 kB / 461.4 MB, free: 28.96 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.265e-05/0.2372, allocations: 6.062 kB / 461.4 MB, free: 28.95 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.662e-06/0.2373, allocations: 6.812 kB / 461.4 MB, free: 28.95 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003099/0.2376, allocations: 197.8 kB / 461.6 MB, free: 28.88 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001008/0.2386, allocations: 0.9144 MB / 462.5 MB, free: 28.22 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002982/0.2389, allocations: 166.2 kB / 462.7 MB, free: 28.14 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001676/0.2391, allocations: 104.7 kB / 462.8 MB, free: 28.09 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.09e-05/0.2391, allocations: 2.094 kB / 462.8 MB, free: 28.09 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.463e-05/0.2391, allocations: 50.77 kB / 462.8 MB, free: 28.04 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0001861/0.2393, allocations: 35.66 kB / 462.8 MB, free: 28.02 MB / 350.1 MB Notification: Performance of pre-optimization done (n=18): time 1.342e-06/0.2393, allocations: 0 / 462.8 MB, free: 28.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=18): time 0.001178/0.2405, allocations: 444 kB / 463.3 MB, free: 27.78 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.736e-05/0.2405, allocations: 53.59 kB / 463.3 MB, free: 27.72 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002209/0.2408, allocations: 302.7 kB / 463.6 MB, free: 27.55 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.573e-05/0.2408, allocations: 30.83 kB / 463.7 MB, free: 27.52 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.836e-05/0.2409, allocations: 182.6 kB / 463.8 MB, free: 27.37 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.152e-05/0.2409, allocations: 57.53 kB / 463.9 MB, free: 27.32 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.791e-05/0.241, allocations: 52.78 kB / 463.9 MB, free: 27.29 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.44e-05/0.241, allocations: 339.6 kB / 464.3 MB, free: 26.96 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001103/0.2411, allocations: 65.03 kB / 464.3 MB, free: 26.94 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001152/0.2412, allocations: 89.28 kB / 464.4 MB, free: 26.89 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003776/0.245, allocations: 0.6972 MB / 465.1 MB, free: 26.73 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.245, allocations: 0 / 465.1 MB, free: 26.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0006978/0.2457, allocations: 312.9 kB / 465.4 MB, free: 26.59 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.394e-05/0.2458, allocations: 5.531 kB / 465.4 MB, free: 26.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.2458, allocations: 1.344 kB / 465.4 MB, free: 26.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007212/0.2465, allocations: 106.8 kB / 465.5 MB, free: 26.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002394/0.2468, allocations: 55.11 kB / 465.6 MB, free: 26.56 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002691/0.247, allocations: 0.5745 MB / 466.2 MB, free: 26.01 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001496/0.2472, allocations: 5.188 kB / 466.2 MB, free: 26 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.844e-05/0.2472, allocations: 10.44 kB / 466.2 MB, free: 26 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.0001517/0.2474, allocations: 154.5 kB / 466.3 MB, free: 25.86 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.238e-05/0.2474, allocations: 29.31 kB / 466.4 MB, free: 25.84 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007733/0.2482, allocations: 354.5 kB / 466.7 MB, free: 25.69 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.099e-06/0.2482, allocations: 5.422 kB / 466.7 MB, free: 25.69 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.2482, allocations: 1.25 kB / 466.7 MB, free: 25.69 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/0.2482, allocations: 3.984 kB / 466.7 MB, free: 25.68 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009538/0.2492, allocations: 0.7261 MB / 467.4 MB, free: 25.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.2492, allocations: 0 / 467.4 MB, free: 25.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002277/0.2495, allocations: 51.31 kB / 467.5 MB, free: 25.19 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005292/0.25, allocations: 108 kB / 467.6 MB, free: 25.16 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.887e-05/0.25, allocations: 6.562 kB / 467.6 MB, free: 25.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002176/0.2502, allocations: 0.589 MB / 468.2 MB, free: 24.56 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.2503, allocations: 4.031 kB / 468.2 MB, free: 24.56 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007232/0.251, allocations: 0.5043 MB / 468.7 MB, free: 24.07 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.464e-05/0.251, allocations: 108.7 kB / 468.8 MB, free: 23.95 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.504e-05/0.2511, allocations: 11.94 kB / 468.8 MB, free: 23.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001607/0.2513, allocations: 7.281 kB / 468.8 MB, free: 23.93 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.411e-05/0.2513, allocations: 26.66 kB / 468.9 MB, free: 23.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.363e-05/0.2513, allocations: 8 kB / 468.9 MB, free: 23.9 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001363/0.2515, allocations: 214.6 kB / 469.1 MB, free: 23.72 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2515, allocations: 0 / 469.1 MB, free: 23.72 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002883/0.2518, allocations: 71.84 kB / 469.1 MB, free: 23.65 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.0006493/0.2524, allocations: 1.022 MB / 470.2 MB, free: 22.62 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003659/0.2528, allocations: 200.9 kB / 470.4 MB, free: 22.45 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.2528, allocations: 3.938 kB / 470.4 MB, free: 22.45 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001973/0.253, allocations: 113.8 kB / 470.5 MB, free: 22.34 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003761/0.2534, allocations: 69.27 kB / 470.5 MB, free: 22.29 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003115/0.2565, allocations: 3.113 MB / 473.7 MB, free: 19.29 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001489/0.2567, allocations: 0.7765 MB / 474.4 MB, free: 18.52 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001639/0.2568, allocations: 48.91 kB / 474.5 MB, free: 18.48 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001269/0.257, allocations: 117 kB / 474.6 MB, free: 18.38 MB / 350.1 MB Notification: Performance of SimCode: time 2.1e-07/0.257, allocations: 0 / 474.6 MB, free: 18.38 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01579/0.2728, allocations: 6.758 MB / 481.3 MB, free: 14.39 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001426/0.2729, allocations: 242.4 kB / 481.6 MB, free: 14.14 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.753/2.026, allocations: 0 / 481.6 MB, free: 14.14 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)