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.001437/0.001437, 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.001775/0.001775, allocations: 195.5 kB / 16.53 MB, free: 6.664 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.341/1.341, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1864/0.1864, allocations: 22.35 MB / 312.7 MB, free: 12.61 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001167/0.001167, allocations: 64.12 kB / 380.9 MB, free: 10.5 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2042/0.2054, allocations: 54.94 MB / 435.9 MB, free: 39.75 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.02415/0.2295, allocations: 22.32 MB / 458.2 MB, free: 31.61 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008351/0.2304, allocations: 417.5 kB / 458.6 MB, free: 31.31 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001169/0.2305, allocations: 16.84 kB / 458.6 MB, free: 31.3 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 7.625e-05/0.2306, allocations: 41.47 kB / 458.7 MB, free: 31.28 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002513/0.2309, allocations: 131.4 kB / 458.8 MB, free: 31.19 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000152/0.231, allocations: 91.34 kB / 458.9 MB, free: 31.13 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002483/0.2313, allocations: 420 kB / 459.3 MB, free: 30.92 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002508/0.2315, allocations: 249.8 kB / 459.5 MB, free: 30.81 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001557/0.2317, allocations: 178.7 kB / 459.7 MB, free: 30.73 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001737/0.2319, allocations: 177.9 kB / 459.9 MB, free: 30.65 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.365e-05/0.2319, allocations: 31.41 kB / 459.9 MB, free: 30.64 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001133/0.232, allocations: 61.67 kB / 460 MB, free: 30.64 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.399e-05/0.2321, allocations: 69.7 kB / 460 MB, free: 30.59 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001249/0.2322, allocations: 180.4 kB / 460.2 MB, free: 30.48 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002903/0.2325, allocations: 393.9 kB / 460.6 MB, free: 30.33 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.2325, allocations: 1.094 kB / 460.6 MB, free: 30.33 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.81e-07/0.2325, allocations: 0 / 460.6 MB, free: 30.33 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.36e-06/0.2326, allocations: 0 / 460.6 MB, free: 30.33 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.0007364/0.2333, allocations: 0.6416 MB / 461.2 MB, free: 29.8 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.782e-05/0.2333, allocations: 9.281 kB / 461.3 MB, free: 29.8 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.291e-05/0.2334, allocations: 57.03 kB / 461.3 MB, free: 29.74 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.531e-05/0.2334, allocations: 38.97 kB / 461.3 MB, free: 29.72 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002376/0.2337, allocations: 318.5 kB / 461.7 MB, free: 29.45 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.74e-05/0.2337, allocations: 18 kB / 461.7 MB, free: 29.44 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.596e-05/0.2337, allocations: 23.34 kB / 461.7 MB, free: 29.43 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00034/0.2341, allocations: 273.8 kB / 462 MB, free: 29.29 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.838e-06/0.2341, allocations: 8.891 kB / 462 MB, free: 29.29 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.142e-05/0.2341, allocations: 13.38 kB / 462 MB, free: 29.27 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.131e-06/0.2341, allocations: 6.938 kB / 462 MB, free: 29.27 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002986/0.2344, allocations: 193.5 kB / 462.2 MB, free: 29.2 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009743/0.2354, allocations: 0.9033 MB / 463.1 MB, free: 28.55 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002839/0.2357, allocations: 162.3 kB / 463.2 MB, free: 28.48 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001631/0.2359, allocations: 104.5 kB / 463.3 MB, free: 28.43 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.016e-05/0.2359, allocations: 9.672 kB / 463.4 MB, free: 28.42 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.116e-05/0.2359, allocations: 35.59 kB / 463.4 MB, free: 28.38 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0001888/0.2361, allocations: 32.98 kB / 463.4 MB, free: 28.37 MB / 350.1 MB Notification: Performance of pre-optimization done (n=18): time 1.342e-06/0.2361, allocations: 0 / 463.4 MB, free: 28.37 MB / 350.1 MB Notification: Performance of matching and sorting (n=18): time 0.001152/0.2373, allocations: 450.3 kB / 463.9 MB, free: 28.12 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.628e-05/0.2373, allocations: 58.28 kB / 463.9 MB, free: 28.06 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002263/0.2376, allocations: 299.3 kB / 464.2 MB, free: 27.89 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.499e-05/0.2376, allocations: 30.77 kB / 464.2 MB, free: 27.86 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.019e-05/0.2377, allocations: 183.2 kB / 464.4 MB, free: 27.7 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.221e-05/0.2377, allocations: 64.56 kB / 464.5 MB, free: 27.65 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.386e-05/0.2378, allocations: 45.28 kB / 464.5 MB, free: 27.62 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.472e-05/0.2378, allocations: 346.4 kB / 464.9 MB, free: 27.29 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001115/0.2379, allocations: 70.34 kB / 464.9 MB, free: 27.27 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001123/0.2381, allocations: 87.95 kB / 465 MB, free: 27.22 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003643/0.2417, allocations: 0.7041 MB / 465.7 MB, free: 27.06 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.2417, allocations: 3.938 kB / 465.7 MB, free: 27.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.000693/0.2424, allocations: 310.5 kB / 466 MB, free: 26.91 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.127e-05/0.2424, allocations: 8.516 kB / 466 MB, free: 26.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.396e-06/0.2424, allocations: 0 / 466 MB, free: 26.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007014/0.2431, allocations: 102.6 kB / 466.1 MB, free: 26.89 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002286/0.2434, allocations: 56.3 kB / 466.2 MB, free: 26.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002461/0.2436, allocations: 0.5715 MB / 466.8 MB, free: 26.33 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001485/0.2438, allocations: 12.27 kB / 466.8 MB, free: 26.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.819e-05/0.2438, allocations: 5.938 kB / 466.8 MB, free: 26.32 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.0001335/0.244, allocations: 151.6 kB / 466.9 MB, free: 26.18 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.073e-05/0.244, allocations: 29.34 kB / 467 MB, free: 26.17 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007586/0.2448, allocations: 360.5 kB / 467.3 MB, free: 25.98 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.2448, allocations: 0 / 467.3 MB, free: 25.98 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.2448, allocations: 4 kB / 467.3 MB, free: 25.98 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.507e-06/0.2448, allocations: 4 kB / 467.3 MB, free: 25.97 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009032/0.2457, allocations: 0.7402 MB / 468.1 MB, free: 25.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.2457, allocations: 0 / 468.1 MB, free: 25.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002091/0.246, allocations: 42.88 kB / 468.1 MB, free: 25.24 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004832/0.2464, allocations: 98.27 kB / 468.2 MB, free: 25.16 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.724e-05/0.2465, allocations: 8 kB / 468.2 MB, free: 25.15 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002066/0.2467, allocations: 0.5852 MB / 468.8 MB, free: 24.55 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.2467, allocations: 0 / 468.8 MB, free: 24.55 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000701/0.2474, allocations: 0.507 MB / 469.3 MB, free: 24.06 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.393e-05/0.2475, allocations: 108.2 kB / 469.4 MB, free: 23.94 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.725e-05/0.2475, allocations: 8 kB / 469.4 MB, free: 23.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000156/0.2477, allocations: 0 / 469.4 MB, free: 23.93 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.922e-05/0.2477, allocations: 22.64 kB / 469.4 MB, free: 23.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.322e-05/0.2477, allocations: 11.23 kB / 469.4 MB, free: 23.91 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001329/0.2479, allocations: 214 kB / 469.7 MB, free: 23.72 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2479, allocations: 4 kB / 469.7 MB, free: 23.72 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002788/0.2482, allocations: 75.84 kB / 469.7 MB, free: 23.64 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.0006297/0.2488, allocations: 1.02 MB / 470.8 MB, free: 22.62 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003858/0.2492, allocations: 215.2 kB / 471 MB, free: 22.43 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.2492, allocations: 0 / 471 MB, free: 22.43 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002041/0.2494, allocations: 116.8 kB / 471.1 MB, free: 22.33 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003571/0.2498, allocations: 75.47 kB / 471.2 MB, free: 22.27 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002962/0.2528, allocations: 2.993 MB / 474.1 MB, free: 19.39 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001277/0.2529, allocations: 0.7787 MB / 474.9 MB, free: 18.62 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001606/0.2531, allocations: 49.91 kB / 475 MB, free: 18.58 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001146/0.2532, allocations: 120.1 kB / 475.1 MB, free: 18.48 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2532, allocations: 0 / 475.1 MB, free: 18.48 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.716/4.97, allocations: 7.097 MB / 482.2 MB, free: 14.25 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.75/20.72, allocations: 9.109 kB / 482.2 MB, free: 14.24 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)