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.001411/0.001411, allocations: 108 kB / 15.61 MB, free: 152 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.001523/0.001523, allocations: 196.2 kB / 16.53 MB, free: 6.664 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.343/1.343, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2003/0.2003, allocations: 22.35 MB / 312.7 MB, free: 12.54 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001189/0.001189, allocations: 67.89 kB / 380.9 MB, free: 10.52 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2422/0.2434, allocations: 54.94 MB / 435.9 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.02774/0.2711, allocations: 21.83 MB / 457.7 MB, free: 31.83 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006372/0.2718, allocations: 225.5 kB / 457.9 MB, free: 31.66 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001307/0.2719, allocations: 16.53 kB / 457.9 MB, free: 31.66 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 7.016e-05/0.272, allocations: 31.28 kB / 458 MB, free: 31.64 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001978/0.2722, allocations: 97.56 kB / 458.1 MB, free: 31.57 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001335/0.2724, allocations: 42.97 kB / 458.1 MB, free: 31.55 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002237/0.2726, allocations: 286.9 kB / 458.4 MB, free: 31.4 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000224/0.2728, allocations: 148.6 kB / 458.5 MB, free: 31.34 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001646/0.273, allocations: 116.3 kB / 458.7 MB, free: 31.29 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001337/0.2731, allocations: 98.62 kB / 458.7 MB, free: 31.24 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.841e-05/0.2732, allocations: 14.75 kB / 458.8 MB, free: 31.24 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.173e-05/0.2732, allocations: 13.78 kB / 458.8 MB, free: 31.24 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.294e-05/0.2733, allocations: 43.83 kB / 458.8 MB, free: 31.21 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.463e-05/0.2734, allocations: 110.6 kB / 458.9 MB, free: 31.15 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001878/0.2736, allocations: 225.1 kB / 459.1 MB, free: 31.05 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.2736, allocations: 9.188 kB / 459.2 MB, free: 31.05 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.2736, allocations: 0 / 459.2 MB, free: 31.05 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.972e-06/0.2736, allocations: 0 / 459.2 MB, free: 31.05 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.0005789/0.2742, allocations: 0.5062 MB / 459.7 MB, free: 30.59 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.676e-05/0.2742, allocations: 9.156 kB / 459.7 MB, free: 30.59 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.117e-05/0.2743, allocations: 54.92 kB / 459.7 MB, free: 30.54 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.351e-05/0.2743, allocations: 28.56 kB / 459.8 MB, free: 30.52 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002335/0.2746, allocations: 266.4 kB / 460 MB, free: 30.27 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.537e-05/0.2746, allocations: 15.42 kB / 460 MB, free: 30.27 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.319e-05/0.2746, allocations: 17.48 kB / 460 MB, free: 30.26 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003101/0.2749, allocations: 193.4 kB / 460.2 MB, free: 30.14 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.061e-05/0.275, allocations: 4.969 kB / 460.2 MB, free: 30.14 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.633e-05/0.275, allocations: 9.062 kB / 460.2 MB, free: 30.13 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.675e-06/0.275, allocations: 4.594 kB / 460.3 MB, free: 30.13 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002867/0.2753, allocations: 118.9 kB / 460.4 MB, free: 30.09 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007434/0.276, allocations: 0.8466 MB / 461.2 MB, free: 29.36 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001769/0.2762, allocations: 87.8 kB / 461.3 MB, free: 29.31 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001277/0.2764, allocations: 59.95 kB / 461.4 MB, free: 29.28 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.442e-05/0.2764, allocations: 2 kB / 461.4 MB, free: 29.28 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.373e-05/0.2764, allocations: 31.53 kB / 461.4 MB, free: 29.24 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.323e-06/0.2764, allocations: 0 / 461.4 MB, free: 29.24 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004569/0.2769, allocations: 180.4 kB / 461.6 MB, free: 29.16 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.074e-05/0.2769, allocations: 56.56 kB / 461.6 MB, free: 29.09 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001876/0.2771, allocations: 226.4 kB / 461.8 MB, free: 28.95 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.169e-05/0.2771, allocations: 30.8 kB / 461.9 MB, free: 28.92 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.358e-05/0.2772, allocations: 141.7 kB / 462 MB, free: 28.79 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.972e-05/0.2772, allocations: 55.69 kB / 462.1 MB, free: 28.75 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.54e-05/0.2773, allocations: 27 kB / 462.1 MB, free: 28.72 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.359e-05/0.2773, allocations: 339.2 kB / 462.4 MB, free: 28.39 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001144/0.2774, allocations: 46.05 kB / 462.5 MB, free: 28.38 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001196/0.2776, allocations: 65.69 kB / 462.5 MB, free: 28.34 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007638/0.2783, allocations: 226 kB / 462.8 MB, free: 28.24 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.2784, allocations: 4 kB / 462.8 MB, free: 28.24 MB / 350.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003151/0.2787, allocations: 164.4 kB / 462.9 MB, free: 28.16 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.402e-05/0.2787, allocations: 6.188 kB / 462.9 MB, free: 28.16 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.229e-06/0.2787, allocations: 3.984 kB / 462.9 MB, free: 28.15 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.503e-05/0.2787, allocations: 2.562 kB / 462.9 MB, free: 28.15 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002001/0.2789, allocations: 33.8 kB / 463 MB, free: 28.15 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.833e-06/0.2789, allocations: 1.531 kB / 463 MB, free: 28.15 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001051/0.2791, allocations: 21.09 kB / 463 MB, free: 28.14 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.102e-05/0.2791, allocations: 7.656 kB / 463 MB, free: 28.13 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.0001389/0.2792, allocations: 139.2 kB / 463.1 MB, free: 28 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.119e-05/0.2793, allocations: 22.16 kB / 463.2 MB, free: 27.99 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.208e-05/0.2793, allocations: 26.14 kB / 463.2 MB, free: 27.98 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.356e-06/0.2793, allocations: 1.625 kB / 463.2 MB, free: 27.98 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.2793, allocations: 9.531 kB / 463.2 MB, free: 27.97 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.2793, allocations: 0 / 463.2 MB, free: 27.97 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002135/0.2796, allocations: 265.3 kB / 463.4 MB, free: 27.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.2796, allocations: 0 / 463.4 MB, free: 27.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000194/0.2798, allocations: 34.78 kB / 463.5 MB, free: 27.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.903e-06/0.2798, allocations: 1.469 kB / 463.5 MB, free: 27.73 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.408e-05/0.2798, allocations: 5.438 kB / 463.5 MB, free: 27.72 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.243e-06/0.2798, allocations: 0 / 463.5 MB, free: 27.72 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.2798, allocations: 1.406 kB / 463.5 MB, free: 27.72 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004311/0.2802, allocations: 292.3 kB / 463.8 MB, free: 27.53 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.205e-05/0.2803, allocations: 102.7 kB / 463.9 MB, free: 27.42 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.155e-05/0.2803, allocations: 1.594 kB / 463.9 MB, free: 27.42 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001199/0.2805, allocations: 5.531 kB / 463.9 MB, free: 27.41 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.717e-05/0.2805, allocations: 16.03 kB / 463.9 MB, free: 27.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.303e-06/0.2805, allocations: 2.594 kB / 463.9 MB, free: 27.41 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001076/0.2806, allocations: 166.2 kB / 464.1 MB, free: 27.3 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2807, allocations: 0 / 464.1 MB, free: 27.3 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000276/0.2809, allocations: 47.95 kB / 464.1 MB, free: 27.29 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.0005961/0.2815, allocations: 0.8297 MB / 464.9 MB, free: 26.56 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000315/0.2819, allocations: 121.2 kB / 465.1 MB, free: 26.52 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.2819, allocations: 3.938 kB / 465.1 MB, free: 26.52 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001357/0.282, allocations: 56.27 kB / 465.1 MB, free: 26.5 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003579/0.2824, allocations: 51.42 kB / 465.2 MB, free: 26.48 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002663/0.2851, allocations: 2.307 MB / 467.5 MB, free: 24.8 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001717/0.2852, allocations: 0.7368 MB / 468.2 MB, free: 24.11 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001529/0.2854, allocations: 28.75 kB / 468.2 MB, free: 24.1 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.487e-05/0.2855, allocations: 64.47 kB / 468.3 MB, free: 24.05 MB / 350.1 MB Notification: Performance of SimCode: time 2.7e-07/0.2855, allocations: 0 / 468.3 MB, free: 24.05 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02224/0.3077, allocations: 4.546 MB / 472.8 MB, free: 21.64 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.316/7.623, allocations: 4.562 kB / 472.9 MB, free: 21.64 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 & python3 -m fmpy simulate --output-file AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001_res.csv --start-time 0 --stop-time 5000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 50 AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_001.fmu > AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.pipe 2>&1)