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.001068/0.001068, allocations: 98.19 kB / 15.36 MB, free: 0.7344 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.008102/0.008102, allocations: 171 kB / 16.27 MB, free: 6.332 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.39/1.39, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1929/0.1929, allocations: 22.35 MB / 313.8 MB, free: 13.1 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00043/0.00043, allocations: 12 kB / 382.7 MB, free: 10.07 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2074/0.2078, allocations: 55.97 MB / 438.7 MB, free: 39.45 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.01834/0.2262, allocations: 22.12 MB / 460.8 MB, free: 31.33 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008379/0.2271, allocations: 462.8 kB / 461.3 MB, free: 31 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001273/0.2272, allocations: 14 kB / 461.3 MB, free: 30.99 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.492e-05/0.2273, allocations: 32.2 kB / 461.3 MB, free: 30.98 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000262/0.2275, allocations: 118.4 kB / 461.4 MB, free: 30.89 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001314/0.2277, allocations: 72.28 kB / 461.5 MB, free: 30.85 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002667/0.2279, allocations: 411.8 kB / 461.9 MB, free: 30.64 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002306/0.2282, allocations: 212.6 kB / 462.1 MB, free: 30.55 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001688/0.2283, allocations: 166.8 kB / 462.3 MB, free: 30.48 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001697/0.2285, allocations: 173.1 kB / 462.4 MB, free: 30.41 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.418e-05/0.2286, allocations: 22 kB / 462.4 MB, free: 30.4 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001012/0.2287, allocations: 47.94 kB / 462.5 MB, free: 30.39 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.775e-05/0.2287, allocations: 56.2 kB / 462.6 MB, free: 30.36 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001197/0.2288, allocations: 198.9 kB / 462.7 MB, free: 30.23 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002525/0.2291, allocations: 382.7 kB / 463.1 MB, free: 30.1 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.437e-06/0.2291, allocations: 1.188 kB / 463.1 MB, free: 30.1 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.2291, allocations: 0 / 463.1 MB, free: 30.1 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.696e-06/0.2291, allocations: 0 / 463.1 MB, free: 30.1 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.0006847/0.2298, allocations: 0.5864 MB / 463.7 MB, free: 29.6 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.376e-05/0.2299, allocations: 14.34 kB / 463.7 MB, free: 29.6 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.338e-05/0.2299, allocations: 53.84 kB / 463.8 MB, free: 29.55 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.176e-05/0.23, allocations: 33.66 kB / 463.8 MB, free: 29.53 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002553/0.2302, allocations: 317.3 kB / 464.1 MB, free: 29.26 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.793e-05/0.2302, allocations: 18.12 kB / 464.1 MB, free: 29.25 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.954e-05/0.2303, allocations: 24.22 kB / 464.2 MB, free: 29.24 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003502/0.2307, allocations: 275 kB / 464.4 MB, free: 29.1 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.688e-06/0.2307, allocations: 5.438 kB / 464.4 MB, free: 29.1 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.254e-05/0.2307, allocations: 9.062 kB / 464.4 MB, free: 29.09 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.973e-06/0.2307, allocations: 6.906 kB / 464.4 MB, free: 29.09 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002986/0.231, allocations: 190.2 kB / 464.6 MB, free: 29.02 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009875/0.232, allocations: 0.9099 MB / 465.5 MB, free: 28.37 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002806/0.2323, allocations: 170 kB / 465.7 MB, free: 28.29 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000171/0.2325, allocations: 108 kB / 465.8 MB, free: 28.23 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.967e-05/0.2325, allocations: 6.562 kB / 465.8 MB, free: 28.23 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.134e-05/0.2325, allocations: 36.12 kB / 465.9 MB, free: 28.19 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0001743/0.2327, allocations: 36.08 kB / 465.9 MB, free: 28.17 MB / 350.1 MB Notification: Performance of pre-optimization done (n=18): time 1.362e-06/0.2327, allocations: 0 / 465.9 MB, free: 28.17 MB / 350.1 MB Notification: Performance of matching and sorting (n=18): time 0.001137/0.2339, allocations: 451.4 kB / 466.3 MB, free: 27.93 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.798e-05/0.2339, allocations: 58.28 kB / 466.4 MB, free: 27.86 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002212/0.2341, allocations: 299.7 kB / 466.7 MB, free: 27.7 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.551e-05/0.2341, allocations: 25.7 kB / 466.7 MB, free: 27.67 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.867e-05/0.2342, allocations: 179 kB / 466.9 MB, free: 27.52 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.319e-05/0.2342, allocations: 64.83 kB / 466.9 MB, free: 27.46 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.299e-05/0.2343, allocations: 27.78 kB / 467 MB, free: 27.44 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.683e-05/0.2343, allocations: 351.3 kB / 467.3 MB, free: 27.11 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001066/0.2344, allocations: 62.78 kB / 467.4 MB, free: 27.08 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001074/0.2346, allocations: 87.97 kB / 467.5 MB, free: 27.04 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003542/0.2381, allocations: 0.7022 MB / 468.2 MB, free: 26.88 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.2381, allocations: 1 kB / 468.2 MB, free: 26.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.000676/0.2388, allocations: 315.3 kB / 468.5 MB, free: 26.73 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.241e-05/0.2388, allocations: 8.672 kB / 468.5 MB, free: 26.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.777e-06/0.2388, allocations: 0 / 468.5 MB, free: 26.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007283/0.2396, allocations: 102.2 kB / 468.6 MB, free: 26.71 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002285/0.2398, allocations: 43.36 kB / 468.6 MB, free: 26.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000245/0.2401, allocations: 0.5758 MB / 469.2 MB, free: 26.16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001453/0.2402, allocations: 9.125 kB / 469.2 MB, free: 26.15 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.728e-05/0.2402, allocations: 9.016 kB / 469.2 MB, free: 26.15 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.00014/0.2404, allocations: 155.3 kB / 469.4 MB, free: 26.01 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.519e-05/0.2404, allocations: 25.16 kB / 469.4 MB, free: 26 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000718/0.2412, allocations: 363.7 kB / 469.7 MB, free: 25.71 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.2412, allocations: 4 kB / 469.8 MB, free: 25.71 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.2412, allocations: 4.062 kB / 469.8 MB, free: 25.71 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.2412, allocations: 4 kB / 469.8 MB, free: 25.7 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008968/0.2421, allocations: 0.7385 MB / 470.5 MB, free: 25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.2421, allocations: 0 / 470.5 MB, free: 25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000204/0.2423, allocations: 42.7 kB / 470.5 MB, free: 24.97 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005225/0.2428, allocations: 108.2 kB / 470.6 MB, free: 24.89 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.728e-05/0.2429, allocations: 8 kB / 470.7 MB, free: 24.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002065/0.2431, allocations: 0.5857 MB / 471.2 MB, free: 24.28 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.704e-06/0.2431, allocations: 8.094 kB / 471.2 MB, free: 24.27 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007016/0.2438, allocations: 0.4978 MB / 471.7 MB, free: 23.79 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.256e-05/0.2439, allocations: 108.7 kB / 471.9 MB, free: 23.66 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.002e-05/0.2439, allocations: 7.094 kB / 471.9 MB, free: 23.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001547/0.2441, allocations: 11.94 kB / 471.9 MB, free: 23.64 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.068e-05/0.2441, allocations: 22.59 kB / 471.9 MB, free: 23.63 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.209e-05/0.2441, allocations: 4 kB / 471.9 MB, free: 23.62 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000128/0.2443, allocations: 218.5 kB / 472.1 MB, free: 23.44 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2443, allocations: 4.062 kB / 472.1 MB, free: 23.43 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002728/0.2445, allocations: 75.78 kB / 472.2 MB, free: 23.36 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.0006143/0.2452, allocations: 1.022 MB / 473.2 MB, free: 22.34 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003611/0.2455, allocations: 197.4 kB / 473.4 MB, free: 22.16 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.2455, allocations: 0 / 473.4 MB, free: 22.16 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002/0.2458, allocations: 121.1 kB / 473.5 MB, free: 22.06 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003834/0.2461, allocations: 59.95 kB / 473.6 MB, free: 22.01 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002984/0.2491, allocations: 3.169 MB / 476.7 MB, free: 19 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000134/0.2493, allocations: 0.782 MB / 477.5 MB, free: 18.23 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001519/0.2494, allocations: 44.94 kB / 477.6 MB, free: 18.19 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001198/0.2496, allocations: 117 kB / 477.7 MB, free: 18.09 MB / 350.1 MB Notification: Performance of SimCode: time 2.71e-07/0.2496, allocations: 0 / 477.7 MB, free: 18.09 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.517/1.767, allocations: 6.662 MB / 484.3 MB, free: 14.22 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001586/1.767, allocations: 241.7 kB / 484.6 MB, free: 13.96 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.423/4.19, allocations: 0 / 484.6 MB, free: 13.96 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)