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.001195/0.001195, allocations: 107.3 kB / 15.33 MB, free: 0.5078 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.00122/0.00122, allocations: 192.4 kB / 16.25 MB, free: 6.152 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.21/1.21, allocations: 222.9 MB / 239.9 MB, free: 4.516 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1894/0.1894, allocations: 22.35 MB / 312.4 MB, free: 12.61 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001139/0.001139, allocations: 63.91 kB / 380.4 MB, free: 10.87 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.21/0.2112, allocations: 54.94 MB / 435.3 MB, free: 39.62 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.02266/0.2339, allocations: 22.09 MB / 457.4 MB, free: 31.64 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004908/0.2344, allocations: 246.7 kB / 457.7 MB, free: 31.46 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001108/0.2345, allocations: 13.41 kB / 457.7 MB, free: 31.45 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 6.229e-05/0.2346, allocations: 28.22 kB / 457.7 MB, free: 31.44 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001655/0.2347, allocations: 81.64 kB / 457.8 MB, free: 31.38 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001094/0.2348, allocations: 34.89 kB / 457.8 MB, free: 31.36 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001949/0.235, allocations: 287.6 kB / 458.1 MB, free: 31.21 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001861/0.2352, allocations: 147.2 kB / 458.3 MB, free: 31.15 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001339/0.2354, allocations: 126.2 kB / 458.4 MB, free: 31.09 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001117/0.2355, allocations: 94.72 kB / 458.5 MB, free: 31.05 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.755e-05/0.2355, allocations: 19.5 kB / 458.5 MB, free: 31.04 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.349e-05/0.2356, allocations: 14.47 kB / 458.5 MB, free: 31.04 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.713e-05/0.2356, allocations: 38.67 kB / 458.5 MB, free: 31.02 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.765e-05/0.2357, allocations: 106.4 kB / 458.6 MB, free: 30.96 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001601/0.2359, allocations: 229.3 kB / 458.9 MB, free: 30.86 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.2359, allocations: 1.094 kB / 458.9 MB, free: 30.86 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.2359, allocations: 3.938 kB / 458.9 MB, free: 30.86 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.346e-06/0.2359, allocations: 0 / 458.9 MB, free: 30.86 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.0005147/0.2364, allocations: 0.5141 MB / 459.4 MB, free: 30.39 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.581e-05/0.2364, allocations: 10.56 kB / 459.4 MB, free: 30.39 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.451e-05/0.2365, allocations: 49.17 kB / 459.5 MB, free: 30.34 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.834e-05/0.2365, allocations: 25.38 kB / 459.5 MB, free: 30.33 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000195/0.2367, allocations: 270.7 kB / 459.7 MB, free: 30.08 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.371e-05/0.2367, allocations: 11.23 kB / 459.8 MB, free: 30.07 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.989e-05/0.2368, allocations: 22.97 kB / 459.8 MB, free: 30.06 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000285/0.2371, allocations: 196.7 kB / 460 MB, free: 29.94 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.915e-06/0.2371, allocations: 7.875 kB / 460 MB, free: 29.93 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.475e-05/0.2371, allocations: 6.312 kB / 460 MB, free: 29.93 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.131e-06/0.2371, allocations: 12.47 kB / 460 MB, free: 29.92 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002587/0.2374, allocations: 115.4 kB / 460.1 MB, free: 29.89 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000619/0.238, allocations: 0.8436 MB / 460.9 MB, free: 29.16 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001529/0.2382, allocations: 80.84 kB / 461 MB, free: 29.11 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001155/0.2383, allocations: 59.08 kB / 461.1 MB, free: 29.09 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.368e-05/0.2383, allocations: 5.25 kB / 461.1 MB, free: 29.08 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.719e-06/0.2383, allocations: 31.72 kB / 461.1 MB, free: 29.04 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.643e-06/0.2383, allocations: 1.062 kB / 461.1 MB, free: 29.04 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0003922/0.2387, allocations: 185.5 kB / 461.3 MB, free: 28.95 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.675e-05/0.2388, allocations: 53.72 kB / 461.4 MB, free: 28.89 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001488/0.2389, allocations: 226.3 kB / 461.6 MB, free: 28.75 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.011e-05/0.2389, allocations: 31.17 kB / 461.6 MB, free: 28.72 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.279e-05/0.239, allocations: 144.8 kB / 461.7 MB, free: 28.59 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.307e-05/0.239, allocations: 48.3 kB / 461.8 MB, free: 28.55 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.128e-05/0.2391, allocations: 35.47 kB / 461.8 MB, free: 28.52 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.134e-05/0.2391, allocations: 333.9 kB / 462.2 MB, free: 28.2 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001048/0.2392, allocations: 38.7 kB / 462.2 MB, free: 28.18 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001043/0.2393, allocations: 68.83 kB / 462.3 MB, free: 28.14 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006779/0.24, allocations: 225 kB / 462.5 MB, free: 28.05 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.24, allocations: 0 / 462.5 MB, free: 28.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002724/0.2403, allocations: 169.5 kB / 462.6 MB, free: 27.96 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.028e-05/0.2403, allocations: 5.281 kB / 462.7 MB, free: 27.96 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.187e-06/0.2403, allocations: 9.422 kB / 462.7 MB, free: 27.96 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.176e-05/0.2403, allocations: 1.344 kB / 462.7 MB, free: 27.96 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001881/0.2405, allocations: 38.02 kB / 462.7 MB, free: 27.95 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.24e-06/0.2406, allocations: 1.469 kB / 462.7 MB, free: 27.95 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.532e-05/0.2407, allocations: 17.91 kB / 462.7 MB, free: 27.94 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.367e-06/0.2407, allocations: 3.938 kB / 462.7 MB, free: 27.94 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.0001147/0.2408, allocations: 143.6 kB / 462.9 MB, free: 27.8 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.668e-05/0.2408, allocations: 20.91 kB / 462.9 MB, free: 27.79 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.965e-05/0.2409, allocations: 33.55 kB / 462.9 MB, free: 27.77 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.2409, allocations: 2.281 kB / 462.9 MB, free: 27.77 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.2409, allocations: 0 / 462.9 MB, free: 27.77 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.244e-06/0.2409, allocations: 1.031 kB / 462.9 MB, free: 27.77 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001806/0.2411, allocations: 266.5 kB / 463.2 MB, free: 27.53 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.183e-06/0.2411, allocations: 0 / 463.2 MB, free: 27.53 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001842/0.2413, allocations: 31.42 kB / 463.2 MB, free: 27.53 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.2413, allocations: 5.344 kB / 463.2 MB, free: 27.53 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.136e-05/0.2413, allocations: 5.656 kB / 463.2 MB, free: 27.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.2413, allocations: 0 / 463.2 MB, free: 27.52 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.2413, allocations: 3.938 kB / 463.2 MB, free: 27.52 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00038/0.2417, allocations: 298.8 kB / 463.5 MB, free: 27.32 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.357e-05/0.2417, allocations: 93.98 kB / 463.6 MB, free: 27.21 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.916e-05/0.2418, allocations: 9.969 kB / 463.6 MB, free: 27.21 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001148/0.2419, allocations: 5.031 kB / 463.6 MB, free: 27.21 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.422e-05/0.2419, allocations: 12.97 kB / 463.6 MB, free: 27.2 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.783e-06/0.242, allocations: 3.094 kB / 463.6 MB, free: 27.2 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.787e-05/0.2421, allocations: 164.9 kB / 463.8 MB, free: 27.1 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2421, allocations: 0 / 463.8 MB, free: 27.1 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002447/0.2423, allocations: 44.97 kB / 463.8 MB, free: 27.09 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.0005007/0.2428, allocations: 0.8383 MB / 464.7 MB, free: 26.36 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002648/0.2431, allocations: 119.3 kB / 464.8 MB, free: 26.32 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.2431, allocations: 0 / 464.8 MB, free: 26.32 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001146/0.2432, allocations: 60.3 kB / 464.9 MB, free: 26.3 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000302/0.2435, allocations: 38.81 kB / 464.9 MB, free: 26.29 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002136/0.2457, allocations: 2.365 MB / 467.3 MB, free: 24.55 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001221/0.2458, allocations: 0.737 MB / 468 MB, free: 23.85 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001365/0.246, allocations: 34.42 kB / 468 MB, free: 23.84 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.692e-05/0.246, allocations: 67.8 kB / 468.1 MB, free: 23.79 MB / 350.1 MB Notification: Performance of SimCode: time 1.9e-07/0.246, allocations: 3.938 kB / 468.1 MB, free: 23.79 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01314/0.2592, allocations: 4.378 MB / 472.5 MB, free: 21.51 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000141/0.2594, allocations: 214.3 kB / 472.7 MB, free: 21.25 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.554/1.813, allocations: 2.953 kB / 472.7 MB, free: 21.25 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)