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.001061/0.001061, allocations: 97.72 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.007907/0.007907, allocations: 170 kB / 16.27 MB, free: 6.652 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.328/1.328, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2028/0.2028, allocations: 22.35 MB / 313.8 MB, free: 13.04 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004561/0.0004561, allocations: 15.98 kB / 382.7 MB, free: 10.06 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3091/0.3096, allocations: 55.97 MB / 438.7 MB, free: 39.27 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.02055/0.3301, allocations: 21.62 MB / 460.3 MB, free: 31.52 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005632/0.3307, allocations: 242.7 kB / 460.5 MB, free: 31.34 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001234/0.3309, allocations: 12.62 kB / 460.6 MB, free: 31.33 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.825e-05/0.3309, allocations: 23.78 kB / 460.6 MB, free: 31.32 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001888/0.3311, allocations: 85.22 kB / 460.7 MB, free: 31.26 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001155/0.3312, allocations: 30.92 kB / 460.7 MB, free: 31.24 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002145/0.3315, allocations: 277.7 kB / 461 MB, free: 31.11 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001941/0.3317, allocations: 133 kB / 461.1 MB, free: 31.05 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001484/0.3318, allocations: 111.6 kB / 461.2 MB, free: 31 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001368/0.332, allocations: 91.12 kB / 461.3 MB, free: 30.95 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.568e-05/0.332, allocations: 12.53 kB / 461.3 MB, free: 30.95 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.219e-05/0.332, allocations: 9.406 kB / 461.3 MB, free: 30.95 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.693e-05/0.3321, allocations: 27.86 kB / 461.3 MB, free: 30.93 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.097e-05/0.3322, allocations: 127.3 kB / 461.5 MB, free: 30.84 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000168/0.3323, allocations: 220.5 kB / 461.7 MB, free: 30.77 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.066e-06/0.3323, allocations: 0 / 461.7 MB, free: 30.77 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.3323, allocations: 0 / 461.7 MB, free: 30.77 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.688e-06/0.3324, allocations: 0 / 461.7 MB, free: 30.77 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.0005153/0.3329, allocations: 489 kB / 462.2 MB, free: 30.32 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.604e-05/0.3329, allocations: 9.938 kB / 462.2 MB, free: 30.32 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.872e-05/0.333, allocations: 53.78 kB / 462.2 MB, free: 30.27 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.247e-05/0.333, allocations: 29.06 kB / 462.2 MB, free: 30.25 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002185/0.3332, allocations: 263.1 kB / 462.5 MB, free: 30.01 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.701e-05/0.3333, allocations: 12.14 kB / 462.5 MB, free: 30 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.077e-05/0.3333, allocations: 18.08 kB / 462.5 MB, free: 30 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003162/0.3336, allocations: 192 kB / 462.7 MB, free: 29.88 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.134e-05/0.3336, allocations: 12.94 kB / 462.7 MB, free: 29.87 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.661e-05/0.3337, allocations: 13.28 kB / 462.7 MB, free: 29.86 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.604e-06/0.3337, allocations: 5.219 kB / 462.8 MB, free: 29.86 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003021/0.334, allocations: 117 kB / 462.9 MB, free: 29.82 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007087/0.3347, allocations: 0.8447 MB / 463.7 MB, free: 29.09 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001795/0.3349, allocations: 81.16 kB / 463.8 MB, free: 29.05 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001327/0.335, allocations: 59.61 kB / 463.8 MB, free: 29.02 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.159e-05/0.3351, allocations: 5.375 kB / 463.9 MB, free: 29.02 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.479e-05/0.3351, allocations: 35.95 kB / 463.9 MB, free: 28.97 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.272e-06/0.3351, allocations: 0 / 463.9 MB, free: 28.97 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004633/0.3356, allocations: 180.8 kB / 464.1 MB, free: 28.89 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.095e-05/0.3356, allocations: 52.41 kB / 464.1 MB, free: 28.82 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001689/0.3358, allocations: 226.3 kB / 464.3 MB, free: 28.69 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.139e-05/0.3358, allocations: 34.67 kB / 464.4 MB, free: 28.65 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.086e-05/0.3358, allocations: 142.3 kB / 464.5 MB, free: 28.52 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.946e-05/0.3359, allocations: 55.36 kB / 464.6 MB, free: 28.48 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.807e-05/0.3359, allocations: 18.16 kB / 464.6 MB, free: 28.46 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.679e-05/0.336, allocations: 335.5 kB / 464.9 MB, free: 28.13 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001225/0.3361, allocations: 38.48 kB / 464.9 MB, free: 28.12 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001226/0.3362, allocations: 71.75 kB / 465 MB, free: 28.07 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008041/0.337, allocations: 227.7 kB / 465.2 MB, free: 27.98 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.3371, allocations: 1.438 kB / 465.2 MB, free: 27.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003226/0.3374, allocations: 161.6 kB / 465.4 MB, free: 27.9 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.273e-05/0.3374, allocations: 5.375 kB / 465.4 MB, free: 27.9 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.99e-06/0.3374, allocations: 1 kB / 465.4 MB, free: 27.9 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.093e-05/0.3374, allocations: 5.031 kB / 465.4 MB, free: 27.9 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002019/0.3376, allocations: 41.58 kB / 465.5 MB, free: 27.89 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.791e-06/0.3377, allocations: 2.625 kB / 465.5 MB, free: 27.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001125/0.3378, allocations: 12.28 kB / 465.5 MB, free: 27.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.129e-05/0.3378, allocations: 7.844 kB / 465.5 MB, free: 27.88 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.0001292/0.3379, allocations: 146.7 kB / 465.6 MB, free: 27.74 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.124e-05/0.338, allocations: 21.53 kB / 465.6 MB, free: 27.73 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.93e-05/0.338, allocations: 27 kB / 465.7 MB, free: 27.71 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.505e-06/0.338, allocations: 5.375 kB / 465.7 MB, free: 27.71 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.317e-06/0.338, allocations: 0 / 465.7 MB, free: 27.71 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.545e-06/0.3381, allocations: 0 / 465.7 MB, free: 27.71 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002121/0.3383, allocations: 270.1 kB / 465.9 MB, free: 27.47 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.233e-06/0.3383, allocations: 0 / 465.9 MB, free: 27.47 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002051/0.3385, allocations: 27.11 kB / 466 MB, free: 27.47 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.3385, allocations: 4.688 kB / 466 MB, free: 27.47 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.276e-05/0.3385, allocations: 9.875 kB / 466 MB, free: 27.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.3385, allocations: 0 / 466 MB, free: 27.46 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.3385, allocations: 0.9375 kB / 466 MB, free: 27.46 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004458/0.339, allocations: 295 kB / 466.3 MB, free: 27.27 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.78e-05/0.339, allocations: 100.5 kB / 466.4 MB, free: 27.16 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.956e-05/0.3391, allocations: 1.438 kB / 466.4 MB, free: 27.16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001315/0.3392, allocations: 10.25 kB / 466.4 MB, free: 27.15 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.793e-05/0.3393, allocations: 11.84 kB / 466.4 MB, free: 27.15 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.995e-06/0.3393, allocations: 6.812 kB / 466.4 MB, free: 27.14 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001099/0.3394, allocations: 163.2 kB / 466.5 MB, free: 27.04 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3394, allocations: 0 / 466.5 MB, free: 27.04 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002778/0.3397, allocations: 49 kB / 466.6 MB, free: 27.03 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.000598/0.3403, allocations: 0.8307 MB / 467.4 MB, free: 26.3 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002934/0.3406, allocations: 111 kB / 467.5 MB, free: 26.27 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.3406, allocations: 0 / 467.5 MB, free: 26.27 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001303/0.3407, allocations: 61.27 kB / 467.6 MB, free: 26.25 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003674/0.3411, allocations: 41.67 kB / 467.6 MB, free: 26.24 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002423/0.3435, allocations: 2.419 MB / 470.1 MB, free: 24.5 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001309/0.3437, allocations: 0.7384 MB / 470.8 MB, free: 23.8 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001675/0.3439, allocations: 33.77 kB / 470.8 MB, free: 23.79 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.669e-05/0.344, allocations: 65.92 kB / 470.9 MB, free: 23.74 MB / 350.1 MB Notification: Performance of SimCode: time 2.8e-07/0.344, allocations: 0 / 470.9 MB, free: 23.74 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7267/1.071, allocations: 4.178 MB / 475.1 MB, free: 21.57 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001347/1.071, allocations: 213.8 kB / 475.3 MB, free: 21.32 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.988/3.059, allocations: 0 / 475.3 MB, free: 21.32 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)