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.001548/0.001548, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001829/0.001829, allocations: 194.1 kB / 16.53 MB, free: 6.391 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.22/1.22, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1811/0.1811, allocations: 22.35 MB / 312.7 MB, free: 12.52 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002199/0.002199, allocations: 75.81 kB / 380.9 MB, free: 10.5 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2304/0.2327, allocations: 54.93 MB / 435.9 MB, free: 39.78 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.02579/0.2585, allocations: 21.87 MB / 457.7 MB, free: 31.97 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005788/0.2591, allocations: 229.3 kB / 458 MB, free: 31.8 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001134/0.2592, allocations: 11.41 kB / 458 MB, free: 31.8 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 6.841e-05/0.2593, allocations: 36.97 kB / 458 MB, free: 31.77 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001748/0.2595, allocations: 92.11 kB / 458.1 MB, free: 31.71 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001134/0.2596, allocations: 38.56 kB / 458.1 MB, free: 31.69 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000205/0.2598, allocations: 286.6 kB / 458.4 MB, free: 31.55 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002061/0.26, allocations: 158.2 kB / 458.6 MB, free: 31.48 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001302/0.2602, allocations: 112.2 kB / 458.7 MB, free: 31.43 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001204/0.2603, allocations: 104.3 kB / 458.8 MB, free: 31.38 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.994e-05/0.2603, allocations: 14.5 kB / 458.8 MB, free: 31.38 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.83e-05/0.2604, allocations: 14.25 kB / 458.8 MB, free: 31.38 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.953e-05/0.2604, allocations: 36.02 kB / 458.9 MB, free: 31.35 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.56e-05/0.2605, allocations: 118.5 kB / 459 MB, free: 31.28 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001788/0.2607, allocations: 222.9 kB / 459.2 MB, free: 31.19 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.2607, allocations: 1.125 kB / 459.2 MB, free: 31.19 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.2607, allocations: 0 / 459.2 MB, free: 31.19 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.4e-06/0.2607, allocations: 0 / 459.2 MB, free: 31.19 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.0005414/0.2613, allocations: 0.5107 MB / 459.7 MB, free: 30.73 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.155e-05/0.2613, allocations: 10.44 kB / 459.7 MB, free: 30.73 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.513e-05/0.2613, allocations: 50.45 kB / 459.8 MB, free: 30.68 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.944e-05/0.2614, allocations: 25.75 kB / 459.8 MB, free: 30.66 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002031/0.2616, allocations: 271.7 kB / 460 MB, free: 30.41 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.646e-05/0.2616, allocations: 15.48 kB / 460.1 MB, free: 30.41 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.732e-05/0.2617, allocations: 14.97 kB / 460.1 MB, free: 30.4 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002831/0.2619, allocations: 196.9 kB / 460.3 MB, free: 30.28 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.676e-06/0.262, allocations: 5.281 kB / 460.3 MB, free: 30.27 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.554e-05/0.262, allocations: 5.375 kB / 460.3 MB, free: 30.27 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.953e-06/0.262, allocations: 4.938 kB / 460.3 MB, free: 30.27 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002781/0.2623, allocations: 121.8 kB / 460.4 MB, free: 30.23 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006707/0.2629, allocations: 0.8479 MB / 461.3 MB, free: 29.5 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001655/0.2631, allocations: 83.89 kB / 461.3 MB, free: 29.45 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001236/0.2633, allocations: 63.39 kB / 461.4 MB, free: 29.42 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.186e-05/0.2633, allocations: 6.25 kB / 461.4 MB, free: 29.41 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.461e-05/0.2633, allocations: 31.94 kB / 461.4 MB, free: 29.38 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.222e-06/0.2633, allocations: 0 / 461.4 MB, free: 29.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004349/0.2637, allocations: 176.4 kB / 461.6 MB, free: 29.29 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.216e-05/0.2638, allocations: 52.75 kB / 461.7 MB, free: 29.23 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001617/0.2639, allocations: 229.4 kB / 461.9 MB, free: 29.09 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.154e-05/0.264, allocations: 31.05 kB / 461.9 MB, free: 29.05 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.754e-05/0.264, allocations: 144.1 kB / 462.1 MB, free: 28.93 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.578e-05/0.2641, allocations: 48.25 kB / 462.1 MB, free: 28.89 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.451e-05/0.2641, allocations: 31.14 kB / 462.1 MB, free: 28.86 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.949e-05/0.2642, allocations: 334.8 kB / 462.5 MB, free: 28.54 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001108/0.2643, allocations: 38.22 kB / 462.5 MB, free: 28.53 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001129/0.2644, allocations: 71.56 kB / 462.6 MB, free: 28.48 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007393/0.2651, allocations: 223.6 kB / 462.8 MB, free: 28.39 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.2651, allocations: 1.062 kB / 462.8 MB, free: 28.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002891/0.2654, allocations: 167.9 kB / 462.9 MB, free: 28.3 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.162e-05/0.2655, allocations: 5.375 kB / 463 MB, free: 28.3 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.609e-06/0.2655, allocations: 9.219 kB / 463 MB, free: 28.3 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.174e-05/0.2655, allocations: 1.094 kB / 463 MB, free: 28.3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001867/0.2657, allocations: 34.89 kB / 463 MB, free: 28.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.472e-06/0.2657, allocations: 5.344 kB / 463 MB, free: 28.29 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.758e-05/0.2658, allocations: 13.38 kB / 463 MB, free: 28.29 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.104e-05/0.2658, allocations: 7.969 kB / 463 MB, free: 28.28 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.0001311/0.266, allocations: 143.3 kB / 463.2 MB, free: 28.14 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.906e-05/0.266, allocations: 21.44 kB / 463.2 MB, free: 28.13 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.148e-05/0.266, allocations: 31.31 kB / 463.2 MB, free: 28.11 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.405e-06/0.266, allocations: 1.312 kB / 463.2 MB, free: 28.11 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.2661, allocations: 0 / 463.2 MB, free: 28.11 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.2661, allocations: 1.469 kB / 463.2 MB, free: 28.11 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001968/0.2663, allocations: 265.8 kB / 463.5 MB, free: 27.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.2663, allocations: 3.938 kB / 463.5 MB, free: 27.87 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001903/0.2665, allocations: 36 kB / 463.5 MB, free: 27.87 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.2665, allocations: 0.9375 kB / 463.5 MB, free: 27.87 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.284e-05/0.2665, allocations: 5.25 kB / 463.5 MB, free: 27.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.813e-06/0.2665, allocations: 1.188 kB / 463.5 MB, free: 27.86 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.2665, allocations: 0 / 463.5 MB, free: 27.86 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004081/0.2669, allocations: 300.8 kB / 463.8 MB, free: 27.66 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.723e-05/0.267, allocations: 98.2 kB / 463.9 MB, free: 27.55 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.046e-05/0.267, allocations: 2.531 kB / 463.9 MB, free: 27.55 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001171/0.2671, allocations: 9.906 kB / 463.9 MB, free: 27.55 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.715e-05/0.2672, allocations: 12.53 kB / 463.9 MB, free: 27.55 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.933e-06/0.2672, allocations: 3 kB / 463.9 MB, free: 27.55 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001086/0.2673, allocations: 162 kB / 464.1 MB, free: 27.44 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2673, allocations: 0 / 464.1 MB, free: 27.44 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000263/0.2676, allocations: 44.53 kB / 464.1 MB, free: 27.43 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.0005816/0.2682, allocations: 0.8385 MB / 465 MB, free: 26.7 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002912/0.2685, allocations: 114.5 kB / 465.1 MB, free: 26.66 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.2685, allocations: 1.562 kB / 465.1 MB, free: 26.66 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001319/0.2686, allocations: 64.05 kB / 465.2 MB, free: 26.64 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003378/0.269, allocations: 46.77 kB / 465.2 MB, free: 26.62 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002202/0.2712, allocations: 2.294 MB / 467.5 MB, free: 24.96 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001432/0.2713, allocations: 0.7374 MB / 468.2 MB, free: 24.26 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001446/0.2715, allocations: 34.12 kB / 468.3 MB, free: 24.24 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.407e-05/0.2716, allocations: 70.41 kB / 468.3 MB, free: 24.19 MB / 350.1 MB Notification: Performance of SimCode: time 3.81e-07/0.2716, allocations: 1.125 kB / 468.3 MB, free: 24.19 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.551/1.823, allocations: 4.548 MB / 472.9 MB, free: 21.57 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.77/13.59, allocations: 5.891 kB / 472.9 MB, free: 21.57 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)