Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.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_003,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_003",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_003",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.001043/0.001043, allocations: 99.16 kB / 15.05 MB, free: 1.105 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.001568/0.001567, allocations: 177.3 kB / 15.95 MB, free: 216 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.338/1.338, allocations: 223.2 MB / 239.9 MB, free: 5.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2226/0.2226, allocations: 22.35 MB / 313.3 MB, free: 13.14 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004264/0.0004265, allocations: 8 kB / 381.9 MB, free: 10.52 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2732/0.2736, allocations: 55.98 MB / 437.9 MB, free: 39.08 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Interfaces/flowTwoPorts_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/flowTwoPorts_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_003): time 0.002456/0.2761, allocations: 2.426 MB / 440.3 MB, free: 37.33 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000651/0.2768, allocations: 483.3 kB / 440.8 MB, free: 36.98 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000136/0.277, allocations: 15.69 kB / 440.8 MB, free: 36.98 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.891e-05/0.277, allocations: 35.64 kB / 440.9 MB, free: 36.96 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003122/0.2773, allocations: 172.3 kB / 441 MB, free: 36.84 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001445/0.2775, allocations: 69.36 kB / 441.1 MB, free: 36.8 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002222/0.2777, allocations: 292.3 kB / 441.4 MB, free: 36.64 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002635/0.278, allocations: 196.1 kB / 441.6 MB, free: 36.57 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002279/0.2782, allocations: 188.4 kB / 441.7 MB, free: 36.48 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001834/0.2784, allocations: 164.4 kB / 441.9 MB, free: 36.41 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.39e-05/0.2785, allocations: 15.75 kB / 441.9 MB, free: 36.41 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001042/0.2786, allocations: 55.5 kB / 442 MB, free: 36.4 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.02e-05/0.2786, allocations: 51.2 kB / 442 MB, free: 36.37 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.797e-05/0.2787, allocations: 86.98 kB / 442.1 MB, free: 36.31 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002157/0.2789, allocations: 285.6 kB / 442.4 MB, free: 36.24 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.415e-06/0.2789, allocations: 0 / 442.4 MB, free: 36.24 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.2789, allocations: 0 / 442.4 MB, free: 36.24 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.776e-06/0.2789, allocations: 0 / 442.4 MB, free: 36.24 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: 57 * Number of variables: 57 Notification: Performance of Generate backend data structure: time 0.000764/0.2797, allocations: 0.582 MB / 443 MB, free: 35.75 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.904e-05/0.2798, allocations: 12.06 kB / 443 MB, free: 35.75 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.327e-05/0.2798, allocations: 63.11 kB / 443 MB, free: 35.69 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.993e-05/0.2799, allocations: 32.81 kB / 443.1 MB, free: 35.67 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003174/0.2802, allocations: 302.7 kB / 443.4 MB, free: 35.41 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.865e-05/0.2802, allocations: 17.53 kB / 443.4 MB, free: 35.41 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.975e-05/0.2803, allocations: 23.12 kB / 443.4 MB, free: 35.4 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003717/0.2807, allocations: 281.4 kB / 443.7 MB, free: 35.25 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.749e-06/0.2807, allocations: 3.953 kB / 443.7 MB, free: 35.24 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.513e-05/0.2807, allocations: 11.98 kB / 443.7 MB, free: 35.23 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.015e-06/0.2807, allocations: 6 kB / 443.7 MB, free: 35.23 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002964/0.281, allocations: 185.4 kB / 443.9 MB, free: 35.17 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001083/0.2821, allocations: 0.9155 MB / 444.8 MB, free: 34.51 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003286/0.2825, allocations: 165.5 kB / 445 MB, free: 34.43 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.615e-05/0.2825, allocations: 9.922 kB / 445 MB, free: 34.43 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.759e-05/0.2825, allocations: 41.16 kB / 445 MB, free: 34.38 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0001899/0.2827, allocations: 31.11 kB / 445.1 MB, free: 34.37 MB / 350.1 MB Notification: Performance of pre-optimization done (n=18): time 1.472e-06/0.2827, allocations: 0 / 445.1 MB, free: 34.37 MB / 350.1 MB Notification: Performance of matching and sorting (n=18): time 0.001162/0.2839, allocations: 444.3 kB / 445.5 MB, free: 34.13 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.684e-05/0.2839, allocations: 58.41 kB / 445.5 MB, free: 34.06 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002176/0.2842, allocations: 292.5 kB / 445.8 MB, free: 33.91 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.902e-05/0.2842, allocations: 33.7 kB / 445.9 MB, free: 33.87 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.234e-05/0.2843, allocations: 187.4 kB / 446 MB, free: 33.71 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.445e-05/0.2843, allocations: 60.33 kB / 446.1 MB, free: 33.66 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.238e-05/0.2843, allocations: 2.656 kB / 446.1 MB, free: 33.66 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.399e-05/0.2844, allocations: 342.5 kB / 446.4 MB, free: 33.33 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001047/0.2845, allocations: 67.05 kB / 446.5 MB, free: 33.31 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001102/0.2846, allocations: 89 kB / 446.6 MB, free: 33.26 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001241/0.2848, allocations: 86.28 kB / 446.7 MB, free: 33.21 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.2848, allocations: 2.906 kB / 446.7 MB, free: 33.21 MB / 350.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0006473/0.2854, allocations: 304.9 kB / 447 MB, free: 33.07 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.382e-05/0.2854, allocations: 13.41 kB / 447 MB, free: 33.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.108e-06/0.2855, allocations: 0 / 447 MB, free: 33.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007369/0.2862, allocations: 104.8 kB / 447.1 MB, free: 33.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002315/0.2864, allocations: 47.66 kB / 447.1 MB, free: 33.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002844/0.2867, allocations: 0.5844 MB / 447.7 MB, free: 32.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001447/0.2869, allocations: 0 / 447.7 MB, free: 32.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.789e-05/0.2869, allocations: 15 kB / 447.7 MB, free: 32.48 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: 2 * 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 (21): * Single equations (assignments): 20 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001803/0.2871, allocations: 144.8 kB / 447.9 MB, free: 32.34 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.662e-05/0.2872, allocations: 29.66 kB / 447.9 MB, free: 32.33 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007497/0.2879, allocations: 363.7 kB / 448.3 MB, free: 32.16 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.459e-06/0.2879, allocations: 3.625 kB / 448.3 MB, free: 32.16 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.2879, allocations: 0 / 448.3 MB, free: 32.16 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.58e-06/0.2879, allocations: 3.984 kB / 448.3 MB, free: 32.16 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002936/0.2882, allocations: 339.9 kB / 448.6 MB, free: 31.9 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.2883, allocations: 7.281 kB / 448.6 MB, free: 31.9 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002357/0.2885, allocations: 44.88 kB / 448.7 MB, free: 31.89 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005437/0.2891, allocations: 111 kB / 448.8 MB, free: 31.86 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.86e-05/0.2891, allocations: 2.844 kB / 448.8 MB, free: 31.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000239/0.2893, allocations: 0.587 MB / 449.4 MB, free: 31.3 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.2893, allocations: 7.031 kB / 449.4 MB, free: 31.3 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007388/0.2901, allocations: 0.4885 MB / 449.8 MB, free: 31.02 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.417e-05/0.2902, allocations: 112.7 kB / 450 MB, free: 30.9 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.639e-05/0.2902, allocations: 10.91 kB / 450 MB, free: 30.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001542/0.2904, allocations: 4 kB / 450 MB, free: 30.89 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.907e-05/0.2904, allocations: 15.59 kB / 450 MB, free: 30.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.555e-05/0.2905, allocations: 12.97 kB / 450 MB, free: 30.88 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001593/0.2906, allocations: 208.5 kB / 450.2 MB, free: 30.77 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.82e-07/0.2906, allocations: 0 / 450.2 MB, free: 30.77 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003119/0.2909, allocations: 81.94 kB / 450.3 MB, free: 30.75 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 (21): * Single equations (assignments): 20 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007227/0.2917, allocations: 0.9965 MB / 451.3 MB, free: 29.94 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004032/0.2921, allocations: 205.5 kB / 451.5 MB, free: 29.88 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.2921, allocations: 0 / 451.5 MB, free: 29.88 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002089/0.2923, allocations: 118.3 kB / 451.6 MB, free: 29.84 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002994/0.2926, allocations: 60.94 kB / 451.7 MB, free: 29.82 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001241/0.2939, allocations: 1.255 MB / 452.9 MB, free: 28.88 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001754/0.2941, allocations: 0.786 MB / 453.7 MB, free: 28.18 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001779/0.2942, allocations: 44.8 kB / 453.7 MB, free: 28.16 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001303/0.2944, allocations: 115.6 kB / 453.9 MB, free: 28.08 MB / 350.1 MB Notification: Performance of SimCode: time 2.01e-07/0.2944, allocations: 0 / 453.9 MB, free: 28.08 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01751/0.3119, allocations: 6.501 MB / 460.4 MB, free: 27.68 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001356/0.3121, allocations: 225.2 kB / 460.6 MB, free: 27.44 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.857/2.169, allocations: 0 / 460.6 MB, free: 27.44 MB / 350.1 MB (rm -f AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_003_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_003.fmu > AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.pipe 2>&1) Environment - environmentSimulation: