Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.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_002,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_002",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_002",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.001162/0.001162, 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.001166/0.001166, allocations: 197.1 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.334/1.334, allocations: 222.9 MB / 240.2 MB, free: 4.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2384/0.2384, allocations: 22.37 MB / 312.7 MB, free: 12.53 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001438/0.001438, allocations: 68.03 kB / 380.9 MB, free: 10.4 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2603/0.2618, allocations: 54.94 MB / 435.9 MB, free: 39.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002): time 0.002876/0.2647, allocations: 2.573 MB / 438.5 MB, free: 37.83 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005722/0.2653, allocations: 365 kB / 438.8 MB, free: 37.57 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001253/0.2655, allocations: 14.25 kB / 438.8 MB, free: 37.57 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 6.912e-05/0.2655, allocations: 40.12 kB / 438.9 MB, free: 37.54 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002326/0.2658, allocations: 116.8 kB / 439 MB, free: 37.46 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001944/0.266, allocations: 77.2 kB / 439.1 MB, free: 37.42 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002095/0.2662, allocations: 351.4 kB / 439.4 MB, free: 37.24 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002182/0.2664, allocations: 173.5 kB / 439.6 MB, free: 37.18 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001372/0.2666, allocations: 137.7 kB / 439.7 MB, free: 37.11 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001404/0.2667, allocations: 124.8 kB / 439.8 MB, free: 37.05 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.314e-05/0.2668, allocations: 19.69 kB / 439.8 MB, free: 37.05 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001233/0.2669, allocations: 52.48 kB / 439.9 MB, free: 37.04 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.559e-05/0.2669, allocations: 52.34 kB / 439.9 MB, free: 37 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001027/0.267, allocations: 139.8 kB / 440.1 MB, free: 36.93 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002269/0.2673, allocations: 304.5 kB / 440.4 MB, free: 36.8 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.2673, allocations: 0 / 440.4 MB, free: 36.8 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.2673, allocations: 3.938 kB / 440.4 MB, free: 36.8 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.01e-05/0.2673, allocations: 2.688 kB / 440.4 MB, free: 36.8 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: 45 * Number of variables: 45 Notification: Performance of Generate backend data structure: time 0.0006232/0.2679, allocations: 0.5611 MB / 440.9 MB, free: 36.3 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.205e-05/0.268, allocations: 10.47 kB / 441 MB, free: 36.3 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.77e-05/0.268, allocations: 55.17 kB / 441 MB, free: 36.25 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.643e-05/0.2681, allocations: 30.28 kB / 441 MB, free: 36.23 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002362/0.2683, allocations: 291.4 kB / 441.3 MB, free: 35.97 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.549e-05/0.2683, allocations: 12.84 kB / 441.3 MB, free: 35.97 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.125e-05/0.2684, allocations: 16.44 kB / 441.4 MB, free: 35.96 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000264/0.2686, allocations: 211.9 kB / 441.6 MB, free: 35.84 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.049e-05/0.2687, allocations: 7.922 kB / 441.6 MB, free: 35.83 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.773e-05/0.2687, allocations: 10.88 kB / 441.6 MB, free: 35.82 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.741e-06/0.2687, allocations: 2.875 kB / 441.6 MB, free: 35.82 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002236/0.2689, allocations: 132.8 kB / 441.7 MB, free: 35.78 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007559/0.2697, allocations: 0.8195 MB / 442.5 MB, free: 35.11 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002098/0.2699, allocations: 94.86 kB / 442.6 MB, free: 35.06 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.853e-05/0.27, allocations: 48.36 kB / 442.7 MB, free: 35.04 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.189e-05/0.27, allocations: 6.938 kB / 442.7 MB, free: 35.03 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.211e-05/0.27, allocations: 34.56 kB / 442.7 MB, free: 34.99 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.272e-06/0.27, allocations: 0 / 442.7 MB, free: 34.99 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.000276/0.2703, allocations: 146.3 kB / 442.9 MB, free: 34.91 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.929e-05/0.2703, allocations: 54.25 kB / 442.9 MB, free: 34.85 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002082/0.2706, allocations: 290.3 kB / 443.2 MB, free: 34.68 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.035e-05/0.2706, allocations: 29.64 kB / 443.2 MB, free: 34.64 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.117e-05/0.2707, allocations: 177.3 kB / 443.4 MB, free: 34.49 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.959e-05/0.2707, allocations: 37.39 kB / 443.4 MB, free: 34.46 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.136e-05/0.2707, allocations: 36.86 kB / 443.5 MB, free: 34.43 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.772e-05/0.2708, allocations: 331.6 kB / 443.8 MB, free: 34.11 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.927e-05/0.2709, allocations: 41.52 kB / 443.8 MB, free: 34.1 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.241e-05/0.2709, allocations: 58.42 kB / 443.9 MB, free: 34.06 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001123/0.2721, allocations: 257.7 kB / 444.1 MB, free: 33.96 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.2721, allocations: 384 / 444.1 MB, free: 33.96 MB / 350.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002297/0.2723, allocations: 173.1 kB / 444.3 MB, free: 33.87 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.119e-05/0.2723, allocations: 5.594 kB / 444.3 MB, free: 33.87 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.85e-06/0.2724, allocations: 0 / 444.3 MB, free: 33.87 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.342e-05/0.2724, allocations: 7.875 kB / 444.3 MB, free: 33.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002019/0.2726, allocations: 45.91 kB / 444.4 MB, free: 33.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.57e-06/0.2726, allocations: 0 / 444.4 MB, free: 33.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001165/0.2727, allocations: 13.94 kB / 444.4 MB, free: 33.85 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.249e-05/0.2727, allocations: 3.125 kB / 444.4 MB, free: 33.85 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.0001967/0.2729, allocations: 141.7 kB / 444.5 MB, free: 33.71 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.367e-05/0.273, allocations: 30.72 kB / 444.5 MB, free: 33.7 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002719/0.2733, allocations: 159.9 kB / 444.7 MB, free: 33.61 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-06/0.2733, allocations: 0 / 444.7 MB, free: 33.61 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.2733, allocations: 0 / 444.7 MB, free: 33.61 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.2733, allocations: 7.281 kB / 444.7 MB, free: 33.61 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002203/0.2735, allocations: 282.4 kB / 445 MB, free: 33.37 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.2735, allocations: 0 / 445 MB, free: 33.37 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001772/0.2737, allocations: 26.58 kB / 445 MB, free: 33.37 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.2737, allocations: 0 / 445 MB, free: 33.37 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.484e-05/0.2737, allocations: 10.69 kB / 445 MB, free: 33.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.2738, allocations: 3.938 kB / 445 MB, free: 33.36 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.694e-06/0.2738, allocations: 3.141 kB / 445 MB, free: 33.36 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002717/0.274, allocations: 274.6 kB / 445.3 MB, free: 33.16 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.322e-05/0.2741, allocations: 101.5 kB / 445.4 MB, free: 33.05 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.89e-05/0.2741, allocations: 10.56 kB / 445.4 MB, free: 33.04 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001215/0.2743, allocations: 0 / 445.4 MB, free: 33.04 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.899e-05/0.2743, allocations: 16.7 kB / 445.4 MB, free: 33.04 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.983e-06/0.2743, allocations: 2.594 kB / 445.4 MB, free: 33.04 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001438/0.2745, allocations: 208.2 kB / 445.6 MB, free: 32.92 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.2745, allocations: 0 / 445.6 MB, free: 32.92 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002814/0.2748, allocations: 54.09 kB / 445.7 MB, free: 32.91 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 (13): * Single equations (assignments): 13 * 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.0004441/0.2752, allocations: 0.817 MB / 446.5 MB, free: 32.18 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002116/0.2754, allocations: 110.6 kB / 446.6 MB, free: 32.14 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.053e-06/0.2754, allocations: 0 / 446.6 MB, free: 32.14 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.957e-05/0.2755, allocations: 51.2 kB / 446.7 MB, free: 32.12 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003674/0.2759, allocations: 71.25 kB / 446.7 MB, free: 32.09 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002245/0.2781, allocations: 2.512 MB / 449.2 MB, free: 30.34 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001307/0.2783, allocations: 0.7565 MB / 450 MB, free: 29.63 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001472/0.2784, allocations: 35.2 kB / 450 MB, free: 29.62 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.225e-05/0.2785, allocations: 96.88 kB / 450.1 MB, free: 29.55 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.2786, allocations: 0 / 450.1 MB, free: 29.55 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02319/0.3017, allocations: 5.369 MB / 455.5 MB, free: 29.04 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.564/7.866, allocations: 21.92 kB / 455.5 MB, free: 29.02 MB / 350.1 MB (rm -f AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002_res.csv --start-time 0 --stop-time 1500 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 3 AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_002.fmu > AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.pipe 2>&1)