Running command: "" <> buildModelFMU(ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFEM_J,fileNamePrefix="ThermoPower_ThermoPower_Test_DistributedParameterComponents_TestWaterFlow1DFEM_J",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ThermoPower): time 2.459/2.459, allocations: 254.6 MB / 267.7 MB, free: 12.45 MB / 218.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_NumberOfIntervals = 10000 Notification: Performance of FrontEnd - loaded program: time 4.32e-05/4.332e-05, allocations: 4 kB / 330.9 MB, free: 13.09 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4074/0.4075, allocations: 60.23 MB / 391.1 MB, free: 4.758 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.899/9.306, allocations: 2.945 GB / 3.327 GB, free: 61.76 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002623/9.307, allocations: 78.8 kB / 3.327 GB, free: 61.72 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 1.838/11.14, allocations: 289.7 MB / 3.609 GB, free: 70.19 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.174e-06/11.14, allocations: 1.219 kB / 3.609 GB, free: 70.19 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0001602/11.14, allocations: 82.8 kB / 3.61 GB, free: 70.18 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1155 * Number of variables: 1155 Notification: Performance of Generate backend data structure: time 0.04387/11.19, allocations: 8.508 MB / 3.618 GB, free: 68.84 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.065e-05/11.19, allocations: 8.156 kB / 3.618 GB, free: 68.84 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003609/11.19, allocations: 0.6371 MB / 3.618 GB, free: 68.77 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006864/11.2, allocations: 0.7028 MB / 3.619 GB, free: 68.58 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01339/11.21, allocations: 2.596 MB / 3.622 GB, free: 68.17 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004926/11.21, allocations: 333.6 kB / 3.622 GB, free: 68.16 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003358/11.22, allocations: 438.4 kB / 3.622 GB, free: 68.15 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03835/11.26, allocations: 10.29 MB / 3.632 GB, free: 67.86 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001558/11.26, allocations: 0 / 3.632 GB, free: 67.86 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00284/11.26, allocations: 179.8 kB / 3.633 GB, free: 67.86 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001889/11.26, allocations: 175.1 kB / 3.633 GB, free: 67.85 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05616/11.31, allocations: 11.95 MB / 3.644 GB, free: 67.83 MB / 0.5105 GB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0583/11.37, allocations: 21.82 MB / 3.666 GB, free: 58.86 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.016/11.39, allocations: 4.015 MB / 3.67 GB, free: 58.04 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00514/11.39, allocations: 1.77 MB / 3.671 GB, free: 57.33 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.205/11.6, allocations: 64 MB / 3.734 GB, free: 32.31 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.051e-05/11.6, allocations: 61.3 kB / 3.734 GB, free: 32.25 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=218): time 5.671e-06/11.6, allocations: 4 kB / 3.734 GB, free: 32.25 MB / 0.5261 GB Notification: Performance of matching and sorting (n=218): time 0.03674/11.64, allocations: 7.345 MB / 3.741 GB, free: 27.97 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.539e-05/11.64, allocations: 77.25 kB / 3.741 GB, free: 27.89 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00671/11.64, allocations: 3.044 MB / 3.744 GB, free: 25.18 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.001466/11.64, allocations: 63.11 kB / 3.744 GB, free: 25.12 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.002547/11.65, allocations: 2.691 MB / 3.747 GB, free: 22.71 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.002423/11.65, allocations: 0.877 MB / 3.748 GB, free: 21.95 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001837/11.65, allocations: 144 kB / 3.748 GB, free: 21.81 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0007981/11.65, allocations: 0.6623 MB / 3.749 GB, free: 21.24 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009761/11.66, allocations: 3.228 MB / 3.752 GB, free: 18.35 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01343/11.68, allocations: 7.547 MB / 3.759 GB, free: 9.168 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01398/11.69, allocations: 4.69 MB / 3.764 GB, free: 5.301 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001803/11.69, allocations: 44 kB / 3.764 GB, free: 5.258 MB / 0.5261 GB Notification: Performance of matching and sorting (n=948) (initialization): time 0.04275/11.73, allocations: 11.5 MB / 3.775 GB, free: 11.5 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.4181/12.15, allocations: 60.57 MB / 3.834 GB, free: 68.03 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005952/12.15, allocations: 153.2 kB / 3.834 GB, free: 68.03 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06447/12.22, allocations: 6.838 MB / 3.841 GB, free: 68 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01071/12.23, allocations: 1.794 MB / 3.843 GB, free: 68 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01906/12.25, allocations: 5.762 MB / 3.848 GB, free: 67.45 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01054/12.26, allocations: 1.116 MB / 3.849 GB, free: 67.42 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002396/12.26, allocations: 0.5599 MB / 3.85 GB, free: 67.42 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.761e-05/12.26, allocations: 6.062 kB / 3.85 GB, free: 67.42 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0587/12.32, allocations: 13.92 MB / 3.864 GB, free: 66.99 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000622/12.32, allocations: 155.2 kB / 3.864 GB, free: 66.99 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04027/12.36, allocations: 5.5 MB / 3.869 GB, free: 66.96 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01125/12.37, allocations: 1.845 MB / 3.871 GB, free: 66.82 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0885/12.46, allocations: 24.56 MB / 3.895 GB, free: 65.03 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01016/12.47, allocations: 0.835 MB / 3.896 GB, free: 64.88 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00267/12.47, allocations: 0.5517 MB / 3.896 GB, free: 64.88 MB / 0.5573 GB Warning: Assuming fixed start value for the following 12 variables: pipe1.h[11]:VARIABLE(min = max(-10000000000.0, max(-10000000000.0, max(-10000000000.0, -10000000000.0))) max = min(10000000000.0, min(10000000000.0, min(10000000000.0, 10000000000.0))) start = pipe1.hstart[11] unit = "J/kg" nominal = 500000.0 ) "Fluid specific enthalpy" type: Real [11] pipe1.h[10]:VARIABLE(min = max(-10000000000.0, max(-10000000000.0, -10000000000.0)) max = min(10000000000.0, min(10000000000.0, 10000000000.0)) start = pipe1.hstart[10] unit = "J/kg" nominal = 500000.0 ) "Fluid specific enthalpy" type: Real [11] pipe1.h[9]:VARIABLE(min = max(-10000000000.0, max(-10000000000.0, -10000000000.0)) max = min(10000000000.0, min(10000000000.0, 10000000000.0)) start = pipe1.hstart[9] unit = "J/kg" nominal = 500000.0 ) "Fluid specific enthalpy" type: Real [11] pipe1.h[8]:VARIABLE(min = max(-10000000000.0, max(-10000000000.0, -10000000000.0)) max = min(10000000000.0, min(10000000000.0, 10000000000.0)) start = pipe1.hstart[8] unit = "J/kg" nominal = 500000.0 ) "Fluid specific enthalpy" type: Real [11] pipe1.h[7]:VARIABLE(min = max(-10000000000.0, max(-10000000000.0, -10000000000.0)) max = min(10000000000.0, min(10000000000.0, 10000000000.0)) start = pipe1.hstart[7] unit = "J/kg" nominal = 500000.0 ) "Fluid specific enthalpy" type: Real [11] pipe1.h[6]:VARIABLE(min = max(-10000000000.0, max(-10000000000.0, -10000000000.0)) max = min(10000000000.0, min(10000000000.0, 10000000000.0)) start = pipe1.hstart[6] unit = "J/kg" nominal = 500000.0 ) "Fluid specific enthalpy" type: Real [11] pipe1.h[5]:VARIABLE(min = max(-10000000000.0, max(-10000000000.0, -10000000000.0)) max = min(10000000000.0, min(10000000000.0, 10000000000.0)) start = pipe1.hstart[5] unit = "J/kg" nominal = 500000.0 ) "Fluid specific enthalpy" type: Real [11] pipe1.h[4]:VARIABLE(min = max(-10000000000.0, max(-10000000000.0, -10000000000.0)) max = min(10000000000.0, min(10000000000.0, 10000000000.0)) start = pipe1.hstart[4] unit = "J/kg" nominal = 500000.0 ) "Fluid specific enthalpy" type: Real [11] pipe1.h[3]:VARIABLE(min = max(-10000000000.0, max(-10000000000.0, -10000000000.0)) max = min(10000000000.0, min(10000000000.0, 10000000000.0)) start = pipe1.hstart[3] unit = "J/kg" nominal = 500000.0 ) "Fluid specific enthalpy" type: Real [11] pipe1.h[2]:VARIABLE(min = max(-10000000000.0, max(-10000000000.0, -10000000000.0)) max = min(10000000000.0, min(10000000000.0, 10000000000.0)) start = pipe1.hstart[2] unit = "J/kg" nominal = 500000.0 ) "Fluid specific enthalpy" type: Real [11] pipe1.h[1]:VARIABLE(min = max(-10000000000.0, max(-10000000000.0, max(-10000000000.0, -10000000000.0))) max = min(10000000000.0, min(10000000000.0, min(10000000000.0, 10000000000.0))) start = pipe1.hstart[1] unit = "J/kg" nominal = 500000.0 ) "Fluid specific enthalpy" type: Real [11] pipe1.p:VARIABLE(min = max(611.657, max(611.657, max(611.657, max(611.657, max(611.657, max(611.657, max(611.657, max(611.657, max(611.657, max(611.657, max(611.657, max(611.657, max(611.657, max(611.657, max(611.657, max(611.657, max(611.657, max(611.657, max(611.657, max(611.657, max(611.657, max(611.657, 611.657)))))))))))))))))))))) max = min(100000000.0, min(100000000.0, min(100000000.0, min(100000000.0, min(100000000.0, min(100000000.0, min(100000000.0, min(100000000.0, min(100000000.0, min(100000000.0, min(100000000.0, min(100000000.0, min(100000000.0, min(100000000.0, min(100000000.0, min(100000000.0, min(100000000.0, min(100000000.0, min(100000000.0, min(100000000.0, min(100000000.0, min(100000000.0, 100000000.0)))))))))))))))))))))) start = pipe1.pstart unit = "Pa" nominal = 1000000.0 ) "Fluid pressure" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 696 * Number of states: 0 () * Number of discrete variables: 11 (pipe1.fluidState[11].phase,pipe1.fluidState[10].phase,pipe1.fluidState[9].phase,pipe1.fluidState[8].phase,pipe1.fluidState[7].phase,pipe1.fluidState[6].phase,pipe1.fluidState[5].phase,pipe1.fluidState[4].phase,pipe1.fluidState[3].phase,pipe1.fluidState[2].phase,pipe1.fluidState[1].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (834): * Single equations (assignments): 833 * 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 {13 102} Notification: Performance of prepare postOptimizeDAE: time 0.004561/12.48, allocations: 0.8786 MB / 3.897 GB, free: 64.5 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001835/12.48, allocations: 312.8 kB / 3.897 GB, free: 64.33 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04417/12.52, allocations: 25.76 MB / 3.922 GB, free: 55.15 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.924e-05/12.52, allocations: 59.38 kB / 3.923 GB, free: 55.14 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.184e-06/12.52, allocations: 7.125 kB / 3.923 GB, free: 55.14 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.85e-05/12.52, allocations: 10.97 kB / 3.923 GB, free: 55.14 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01605/12.54, allocations: 11.38 MB / 3.934 GB, free: 48.74 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.975e-05/12.54, allocations: 0 / 3.934 GB, free: 48.74 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003882/12.54, allocations: 307.8 kB / 3.934 GB, free: 48.7 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06124/12.6, allocations: 7.34 MB / 3.941 GB, free: 47.95 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001421/12.61, allocations: 111 kB / 3.941 GB, free: 47.91 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02101/12.63, allocations: 5.665 MB / 3.947 GB, free: 45.9 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.771e-06/12.63, allocations: 0 / 3.947 GB, free: 45.9 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02742/12.65, allocations: 9.377 MB / 3.956 GB, free: 38.73 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003343/12.66, allocations: 0.799 MB / 3.957 GB, free: 38.02 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001793/12.66, allocations: 83.53 kB / 3.957 GB, free: 37.95 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006081/12.66, allocations: 251.3 kB / 3.957 GB, free: 37.79 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001298/12.67, allocations: 149.4 kB / 3.957 GB, free: 37.71 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004715/12.67, allocations: 90.36 kB / 3.957 GB, free: 37.64 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.004177/12.67, allocations: 1.979 MB / 3.959 GB, free: 35.91 MB / 0.5573 GB Notification: Performance of sort global known variables: time 8.01e-07/12.67, allocations: 0 / 3.959 GB, free: 35.91 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0218/12.69, allocations: 3.152 MB / 3.962 GB, free: 32.89 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 12 (pipe1.p,pipe1.h[1],pipe1.h[2],pipe1.h[3],pipe1.h[4],pipe1.h[5],pipe1.h[6],pipe1.h[7],pipe1.h[8],pipe1.h[9],pipe1.h[10],pipe1.h[11]) * Number of discrete variables: 22 ($cse21.phase,$cse21.region,$cse22.phase,$cse22.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$cse26.phase,$cse26.region,$cse27.phase,$cse27.region,$cse28.phase,$cse28.region,$cse29.phase,$cse29.region,$cse30.phase,$cse30.region,$cse31.phase,$cse31.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (116): * Single equations (assignments): 104 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 11 * 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 {13 124} Notification: Performance of Backend phase and start with SimCode phase: time 0.03771/12.73, allocations: 11.35 MB / 3.973 GB, free: 22.96 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.04879/12.78, allocations: 14.01 MB / 3.987 GB, free: 10.7 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.138e-05/12.78, allocations: 0 / 3.987 GB, free: 10.7 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.01359/12.79, allocations: 3.225 MB / 3.99 GB, free: 7.906 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004774/12.8, allocations: 0.556 MB / 3.991 GB, free: 7.473 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4713/13.27, allocations: 9.928 MB / 4 GB, free: 111.7 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006191/13.28, allocations: 2.511 MB / 4.003 GB, free: 110.9 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.03874/13.31, allocations: 17.94 MB / 4.02 GB, free: 110.6 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004418/13.32, allocations: 1.596 MB / 4.022 GB, free: 110.6 MB / 0.573 GB Notification: Performance of SimCode: time 1.363e-06/13.32, allocations: 0 / 4.022 GB, free: 110.6 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3402/13.66, allocations: 161 MB / 4.179 GB, free: 31.72 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003332/13.66, allocations: 205.6 kB / 4.179 GB, free: 31.49 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.313/22.97, allocations: 3.938 kB / 4.179 GB, free: 31.49 MB / 0.573 GB