Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.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_001,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_001",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_001",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.001191/0.001191, 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.001166/0.001166, allocations: 195 kB / 16.14 MB, free: 6.648 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.194/1.194, allocations: 222.9 MB / 239.8 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.178/0.178, allocations: 22.35 MB / 312.3 MB, free: 12.65 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001185/0.001185, allocations: 59.91 kB / 380.2 MB, free: 11.03 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.208/0.2092, allocations: 54.94 MB / 435.2 MB, free: 39.52 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Interfaces/flowOnePort_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/flowOnePort_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_001): time 0.02345/0.2327, allocations: 21.99 MB / 457.1 MB, free: 31.59 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005209/0.2332, allocations: 250.3 kB / 457.4 MB, free: 31.4 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001114/0.2333, allocations: 13.03 kB / 457.4 MB, free: 31.39 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 6.685e-05/0.2334, allocations: 20.92 kB / 457.4 MB, free: 31.38 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001609/0.2336, allocations: 89.62 kB / 457.5 MB, free: 31.32 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001044/0.2337, allocations: 35.84 kB / 457.5 MB, free: 31.3 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001795/0.2339, allocations: 272.7 kB / 457.8 MB, free: 31.16 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001752/0.234, allocations: 131.9 kB / 457.9 MB, free: 31.11 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001366/0.2342, allocations: 126.6 kB / 458.1 MB, free: 31.05 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000105/0.2343, allocations: 98.17 kB / 458.2 MB, free: 31 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.677e-05/0.2343, allocations: 11.53 kB / 458.2 MB, free: 31 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.886e-05/0.2344, allocations: 11.5 kB / 458.2 MB, free: 31 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.916e-05/0.2344, allocations: 38.77 kB / 458.2 MB, free: 30.98 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.151e-05/0.2345, allocations: 103.4 kB / 458.3 MB, free: 30.92 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001507/0.2347, allocations: 223.2 kB / 458.5 MB, free: 30.82 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.2347, allocations: 3.328 kB / 458.5 MB, free: 30.82 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.2347, allocations: 0 / 458.5 MB, free: 30.82 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.057e-06/0.2347, allocations: 5.188 kB / 458.5 MB, free: 30.82 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: 39 * Number of variables: 39 Notification: Performance of Generate backend data structure: time 0.0005187/0.2352, allocations: 0.5093 MB / 459.1 MB, free: 30.36 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.126e-05/0.2352, allocations: 9.438 kB / 459.1 MB, free: 30.36 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.322e-05/0.2353, allocations: 50.73 kB / 459.1 MB, free: 30.3 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.759e-05/0.2353, allocations: 25.72 kB / 459.1 MB, free: 30.29 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002045/0.2355, allocations: 269.2 kB / 459.4 MB, free: 30.05 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.61e-05/0.2356, allocations: 11.67 kB / 459.4 MB, free: 30.04 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.579e-05/0.2356, allocations: 14.91 kB / 459.4 MB, free: 30.04 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002839/0.2359, allocations: 193.6 kB / 459.6 MB, free: 29.92 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.307e-06/0.2359, allocations: 11.88 kB / 459.6 MB, free: 29.91 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.423e-05/0.2359, allocations: 9.25 kB / 459.6 MB, free: 29.9 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.602e-06/0.2359, allocations: 5.188 kB / 459.6 MB, free: 29.9 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002618/0.2362, allocations: 118 kB / 459.8 MB, free: 29.86 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006345/0.2368, allocations: 0.8454 MB / 460.6 MB, free: 29.13 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001553/0.237, allocations: 76.94 kB / 460.7 MB, free: 29.09 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001155/0.2371, allocations: 55.45 kB / 460.7 MB, free: 29.07 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.273e-05/0.2371, allocations: 1.125 kB / 460.7 MB, free: 29.07 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.427e-05/0.2372, allocations: 39.05 kB / 460.8 MB, free: 29.02 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.162e-06/0.2372, allocations: 5.281 kB / 460.8 MB, free: 29.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0003989/0.2376, allocations: 179.5 kB / 461 MB, free: 28.93 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.988e-05/0.2376, allocations: 57.88 kB / 461 MB, free: 28.87 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001552/0.2378, allocations: 229.8 kB / 461.2 MB, free: 28.73 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.638e-06/0.2378, allocations: 25.7 kB / 461.3 MB, free: 28.7 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.257e-05/0.2378, allocations: 141.6 kB / 461.4 MB, free: 28.57 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.244e-05/0.2379, allocations: 48.61 kB / 461.4 MB, free: 28.53 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.115e-05/0.2379, allocations: 35.3 kB / 461.5 MB, free: 28.5 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.312e-05/0.238, allocations: 339.3 kB / 461.8 MB, free: 28.17 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001028/0.2381, allocations: 38.86 kB / 461.8 MB, free: 28.16 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001025/0.2382, allocations: 57.19 kB / 461.9 MB, free: 28.12 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006912/0.2389, allocations: 237.9 kB / 462.1 MB, free: 28.03 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.2389, allocations: 0 / 462.1 MB, free: 28.03 MB / 350.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002848/0.2392, allocations: 165.4 kB / 462.3 MB, free: 27.94 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.121e-05/0.2392, allocations: 4.75 kB / 462.3 MB, free: 27.94 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.309e-06/0.2392, allocations: 1.156 kB / 462.3 MB, free: 27.94 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.079e-05/0.2392, allocations: 4.656 kB / 462.3 MB, free: 27.94 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001958/0.2394, allocations: 35.33 kB / 462.3 MB, free: 27.94 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.58e-06/0.2394, allocations: 1.5 kB / 462.3 MB, free: 27.94 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.939e-05/0.2395, allocations: 24.34 kB / 462.4 MB, free: 27.92 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.014e-05/0.2395, allocations: 4.188 kB / 462.4 MB, free: 27.92 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: 3 * 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 (18): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001139/0.2397, allocations: 135.7 kB / 462.5 MB, free: 27.79 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.847e-05/0.2397, allocations: 30.34 kB / 462.5 MB, free: 27.77 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.936e-05/0.2398, allocations: 25.41 kB / 462.6 MB, free: 27.75 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-06/0.2398, allocations: 5.375 kB / 462.6 MB, free: 27.75 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.2398, allocations: 1.625 kB / 462.6 MB, free: 27.75 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.2398, allocations: 3.422 kB / 462.6 MB, free: 27.75 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001887/0.24, allocations: 260.9 kB / 462.8 MB, free: 27.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.103e-06/0.24, allocations: 0 / 462.8 MB, free: 27.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000188/0.2402, allocations: 34.42 kB / 462.9 MB, free: 27.51 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.475e-06/0.2402, allocations: 1.531 kB / 462.9 MB, free: 27.51 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.14e-05/0.2402, allocations: 1.406 kB / 462.9 MB, free: 27.51 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.263e-06/0.2402, allocations: 0 / 462.9 MB, free: 27.51 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.2402, allocations: 1.219 kB / 462.9 MB, free: 27.51 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003936/0.2406, allocations: 305.7 kB / 463.2 MB, free: 27.3 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.519e-05/0.2406, allocations: 94.23 kB / 463.3 MB, free: 27.2 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.888e-05/0.2407, allocations: 5.875 kB / 463.3 MB, free: 27.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001153/0.2408, allocations: 4.859 kB / 463.3 MB, free: 27.2 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.167e-05/0.2408, allocations: 13.06 kB / 463.3 MB, free: 27.19 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.544e-06/0.2409, allocations: 6.688 kB / 463.3 MB, free: 27.19 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.465e-05/0.241, allocations: 166.1 kB / 463.4 MB, free: 27.08 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.241, allocations: 0 / 463.4 MB, free: 27.08 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002428/0.2412, allocations: 43.78 kB / 463.5 MB, free: 27.07 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (14): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004948/0.2417, allocations: 0.8392 MB / 464.3 MB, free: 26.34 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002514/0.242, allocations: 111.2 kB / 464.4 MB, free: 26.3 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.242, allocations: 1.5 kB / 464.4 MB, free: 26.3 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001112/0.2421, allocations: 62.39 kB / 464.5 MB, free: 26.28 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003164/0.2424, allocations: 47.77 kB / 464.5 MB, free: 26.27 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002203/0.2446, allocations: 2.362 MB / 466.9 MB, free: 24.53 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001332/0.2448, allocations: 0.7346 MB / 467.6 MB, free: 23.84 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000135/0.2449, allocations: 27.81 kB / 467.7 MB, free: 23.83 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.983e-05/0.245, allocations: 66.34 kB / 467.7 MB, free: 23.78 MB / 350.1 MB Notification: Performance of SimCode: time 2.7e-07/0.245, allocations: 4 kB / 467.7 MB, free: 23.78 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01173/0.2567, allocations: 4.238 MB / 472 MB, free: 21.86 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001101/0.2569, allocations: 214.6 kB / 472.2 MB, free: 21.6 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.564/1.821, allocations: 0 / 472.2 MB, free: 21.6 MB / 350.1 MB (rm -f AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_001_fmu --startTime=0 --stopTime=5000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_001.fmu > AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.pipe 2>&1)