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.0008598/0.0008599, allocations: 91.92 kB / 15.06 MB, free: 1.098 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.0009803/0.0009804, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.463/1.463, allocations: 223.2 MB / 240 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2354/0.2354, allocations: 22.35 MB / 313.4 MB, free: 13.09 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003294/0.0003294, allocations: 8 kB / 382 MB, free: 10.45 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3106/0.3109, allocations: 55.98 MB / 438 MB, free: 39.12 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.002358/0.3134, allocations: 2.143 MB / 440.2 MB, free: 37.56 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004507/0.3138, allocations: 255 kB / 440.4 MB, free: 37.37 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001701/0.314, allocations: 12.41 kB / 440.4 MB, free: 37.37 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.565e-05/0.3141, allocations: 24.22 kB / 440.5 MB, free: 37.36 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003165/0.3144, allocations: 105.5 kB / 440.6 MB, free: 37.28 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001454/0.3145, allocations: 27.78 kB / 440.6 MB, free: 37.27 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002368/0.3148, allocations: 274.8 kB / 440.9 MB, free: 37.12 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002199/0.315, allocations: 121.6 kB / 441 MB, free: 37.08 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001639/0.3152, allocations: 109.4 kB / 441.1 MB, free: 37.03 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001327/0.3153, allocations: 88.22 kB / 441.2 MB, free: 36.99 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.74e-05/0.3154, allocations: 7.688 kB / 441.2 MB, free: 36.99 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.129e-05/0.3154, allocations: 10.16 kB / 441.2 MB, free: 36.99 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.877e-05/0.3154, allocations: 31.33 kB / 441.2 MB, free: 36.97 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.761e-05/0.3155, allocations: 66.55 kB / 441.3 MB, free: 36.92 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001352/0.3156, allocations: 162.6 kB / 441.4 MB, free: 36.88 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.682e-06/0.3157, allocations: 4 kB / 441.4 MB, free: 36.87 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.775e-06/0.3157, allocations: 3.328 kB / 441.4 MB, free: 36.87 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.789e-06/0.3157, allocations: 0 / 441.4 MB, free: 36.87 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.0005504/0.3162, allocations: 490.8 kB / 441.9 MB, free: 36.43 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.48e-05/0.3163, allocations: 8.281 kB / 441.9 MB, free: 36.43 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.677e-05/0.3163, allocations: 50.69 kB / 442 MB, free: 36.38 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.661e-05/0.3164, allocations: 29.44 kB / 442 MB, free: 36.37 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002441/0.3166, allocations: 254.8 kB / 442.3 MB, free: 36.13 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.835e-05/0.3167, allocations: 18.92 kB / 442.3 MB, free: 36.12 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.708e-05/0.3167, allocations: 14.44 kB / 442.3 MB, free: 36.11 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003124/0.317, allocations: 194.8 kB / 442.5 MB, free: 35.99 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.026e-05/0.317, allocations: 0 / 442.5 MB, free: 35.99 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.824e-05/0.3171, allocations: 9.812 kB / 442.5 MB, free: 35.98 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.365e-06/0.3171, allocations: 5.188 kB / 442.5 MB, free: 35.98 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002642/0.3173, allocations: 115 kB / 442.6 MB, free: 35.95 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000717/0.3181, allocations: 0.8456 MB / 443.5 MB, free: 35.22 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001877/0.3183, allocations: 84.33 kB / 443.5 MB, free: 35.17 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001225/0.3184, allocations: 62.78 kB / 443.6 MB, free: 35.14 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.498e-05/0.3184, allocations: 0 / 443.6 MB, free: 35.14 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.8e-05/0.3184, allocations: 37.44 kB / 443.6 MB, free: 35.1 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.754e-06/0.3185, allocations: 0 / 443.6 MB, free: 35.1 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004187/0.3189, allocations: 190.5 kB / 443.8 MB, free: 35 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.948e-05/0.3189, allocations: 54.22 kB / 443.9 MB, free: 34.94 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001678/0.3191, allocations: 228.1 kB / 444.1 MB, free: 34.8 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.085e-05/0.3191, allocations: 25.7 kB / 444.1 MB, free: 34.77 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.973e-05/0.3192, allocations: 146.5 kB / 444.3 MB, free: 34.64 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.087e-05/0.3192, allocations: 52.56 kB / 444.3 MB, free: 34.6 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.524e-06/0.3192, allocations: 0 / 444.3 MB, free: 34.6 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.079e-05/0.3193, allocations: 329.4 kB / 444.6 MB, free: 34.28 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.764e-05/0.3194, allocations: 36.59 kB / 444.7 MB, free: 34.27 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001055/0.3195, allocations: 67.72 kB / 444.7 MB, free: 34.22 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001121/0.3196, allocations: 46.73 kB / 444.8 MB, free: 34.2 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.3196, allocations: 0 / 444.8 MB, free: 34.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002681/0.3199, allocations: 167.8 kB / 444.9 MB, free: 34.12 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.738e-05/0.3199, allocations: 7.094 kB / 445 MB, free: 34.12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.221e-06/0.32, allocations: 4.062 kB / 445 MB, free: 34.11 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.588e-05/0.32, allocations: 2.5 kB / 445 MB, free: 34.11 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001878/0.3202, allocations: 34.84 kB / 445 MB, free: 34.11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.612e-06/0.3202, allocations: 3.984 kB / 445 MB, free: 34.11 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.054e-05/0.3203, allocations: 20.97 kB / 445 MB, free: 34.09 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.918e-06/0.3203, allocations: 3.781 kB / 445 MB, free: 34.09 MB / 350.1 MB Warning: Assuming fixed start value for the following 2 variables: HE.Tco:VARIABLE(min = 0.0 start = 299.958408982322 unit = "K" fixed = true nominal = 300.0 ) type: Real HE.Tho:VARIABLE(min = 0.0 start = 339.5666268514094 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001805/0.3205, allocations: 141.1 kB / 445.2 MB, free: 33.96 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.94e-05/0.3205, allocations: 28.22 kB / 445.2 MB, free: 33.94 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.863e-05/0.3206, allocations: 27.84 kB / 445.2 MB, free: 33.92 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.3206, allocations: 3.375 kB / 445.2 MB, free: 33.92 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.3206, allocations: 3.125 kB / 445.2 MB, free: 33.92 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.3206, allocations: 0 / 445.2 MB, free: 33.92 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002176/0.3208, allocations: 262.3 kB / 445.5 MB, free: 33.69 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.3208, allocations: 0 / 445.5 MB, free: 33.69 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000179/0.321, allocations: 28.66 kB / 445.5 MB, free: 33.69 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.875e-06/0.321, allocations: 7.953 kB / 445.5 MB, free: 33.68 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.273e-05/0.3211, allocations: 0 / 445.5 MB, free: 33.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.547e-06/0.3211, allocations: 6.359 kB / 445.5 MB, free: 33.68 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.3211, allocations: 0 / 445.5 MB, free: 33.68 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004181/0.3215, allocations: 298.6 kB / 445.8 MB, free: 33.48 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.89e-05/0.3216, allocations: 100 kB / 445.9 MB, free: 33.37 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.639e-05/0.3216, allocations: 11.2 kB / 445.9 MB, free: 33.36 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000107/0.3217, allocations: 0 / 445.9 MB, free: 33.36 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.973e-05/0.3218, allocations: 17.02 kB / 445.9 MB, free: 33.36 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.864e-06/0.3218, allocations: 3.781 kB / 445.9 MB, free: 33.36 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000119/0.3219, allocations: 161.1 kB / 446.1 MB, free: 33.25 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3219, allocations: 0 / 446.1 MB, free: 33.25 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002759/0.3222, allocations: 44.78 kB / 446.1 MB, free: 33.25 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006531/0.3229, allocations: 0.8283 MB / 447 MB, free: 32.52 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003217/0.3232, allocations: 112.9 kB / 447.1 MB, free: 32.48 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.3232, allocations: 0 / 447.1 MB, free: 32.48 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001234/0.3234, allocations: 64.17 kB / 447.1 MB, free: 32.46 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004056/0.3238, allocations: 42.48 kB / 447.2 MB, free: 32.45 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002048/0.3258, allocations: 1.37 MB / 448.6 MB, free: 31.65 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001925/0.326, allocations: 0.7381 MB / 449.3 MB, free: 30.95 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001942/0.3262, allocations: 33 kB / 449.3 MB, free: 30.93 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.57e-05/0.3263, allocations: 70.83 kB / 449.4 MB, free: 30.88 MB / 350.1 MB Notification: Performance of SimCode: time 5.51e-07/0.3264, allocations: 0 / 449.4 MB, free: 30.88 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01543/0.3418, allocations: 4.188 MB / 453.6 MB, free: 30.62 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001321/0.342, allocations: 195.8 kB / 453.8 MB, free: 30.39 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.786/2.128, allocations: 0 / 453.8 MB, free: 30.39 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/linux/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) Environment - environmentSimulation: