Running command: "" <> buildModelFMU(ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFEM_K,fileNamePrefix="ThermoPower_ThermoPower_Test_DistributedParameterComponents_TestWaterFlow1DFEM_K",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ThermoPower): time 2.424/2.424, allocations: 254.6 MB / 267.7 MB, free: 12.46 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.98e-05/3.993e-05, allocations: 4 kB / 330.9 MB, free: 13.11 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4044/0.4045, allocations: 60.24 MB / 391.1 MB, free: 4.879 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.939/9.344, allocations: 2.945 GB / 3.327 GB, free: 62.86 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002876/9.344, allocations: 76.03 kB / 3.327 GB, free: 62.82 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 1.827/11.17, allocations: 291.1 MB / 3.611 GB, free: 69.78 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.024e-06/11.17, allocations: 0 / 3.611 GB, free: 69.78 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.000157/11.17, allocations: 81.31 kB / 3.611 GB, free: 69.78 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: 1176 * Number of variables: 1176 Notification: Performance of Generate backend data structure: time 0.04643/11.22, allocations: 8.586 MB / 3.619 GB, free: 68.39 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 6.268e-05/11.22, allocations: 15.97 kB / 3.619 GB, free: 68.39 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004481/11.22, allocations: 0.6459 MB / 3.62 GB, free: 68.32 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007498/11.23, allocations: 0.7072 MB / 3.621 GB, free: 68.12 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01402/11.24, allocations: 2.675 MB / 3.623 GB, free: 67.71 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005394/11.24, allocations: 339.3 kB / 3.624 GB, free: 67.7 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00347/11.25, allocations: 445.6 kB / 3.624 GB, free: 67.69 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03966/11.29, allocations: 10.4 MB / 3.634 GB, free: 67.39 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002284/11.29, allocations: 0 / 3.634 GB, free: 67.39 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003152/11.29, allocations: 183.1 kB / 3.635 GB, free: 67.39 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002091/11.29, allocations: 179 kB / 3.635 GB, free: 67.38 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05777/11.35, allocations: 12.06 MB / 3.646 GB, free: 67.36 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.05205/11.4, allocations: 20.4 MB / 3.666 GB, free: 58.59 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01626/11.42, allocations: 4.136 MB / 3.67 GB, free: 58.21 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005195/11.42, allocations: 1.86 MB / 3.672 GB, free: 57.46 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2037/11.63, allocations: 63.99 MB / 3.735 GB, free: 32.46 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.961e-05/11.63, allocations: 56.94 kB / 3.735 GB, free: 32.4 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=221): time 4.559e-06/11.63, allocations: 4 kB / 3.735 GB, free: 32.4 MB / 0.5261 GB Notification: Performance of matching and sorting (n=221): time 0.04535/11.67, allocations: 8.451 MB / 3.743 GB, free: 27.59 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.653e-05/11.67, allocations: 73.41 kB / 3.743 GB, free: 27.51 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007356/11.68, allocations: 3.047 MB / 3.746 GB, free: 24.81 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.001598/11.68, allocations: 61.7 kB / 3.746 GB, free: 24.74 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.00271/11.68, allocations: 2.699 MB / 3.749 GB, free: 22.33 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.002539/11.69, allocations: 0.8945 MB / 3.75 GB, free: 21.56 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00211/11.69, allocations: 144 kB / 3.75 GB, free: 21.42 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0008009/11.69, allocations: 0.6608 MB / 3.75 GB, free: 20.84 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009645/11.7, allocations: 3.28 MB / 3.754 GB, free: 17.91 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01312/11.71, allocations: 7.526 MB / 3.761 GB, free: 8.789 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01408/11.73, allocations: 4.72 MB / 3.766 GB, free: 4.859 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001734/11.73, allocations: 44 kB / 3.766 GB, free: 4.816 MB / 0.5261 GB Notification: Performance of matching and sorting (n=939) (initialization): time 0.04372/11.77, allocations: 11.7 MB / 3.777 GB, free: 10.76 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.4162/12.19, allocations: 59.43 MB / 3.835 GB, free: 68.26 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005849/12.19, allocations: 153.4 kB / 3.835 GB, free: 68.26 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07689/12.26, allocations: 8.299 MB / 3.843 GB, free: 68.23 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01089/12.28, allocations: 1.74 MB / 3.845 GB, free: 68.23 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02619/12.3, allocations: 6.546 MB / 3.851 GB, free: 67.67 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01197/12.31, allocations: 1.124 MB / 3.853 GB, free: 67.62 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003153/12.32, allocations: 0.5499 MB / 3.853 GB, free: 67.62 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 2.653e-05/12.32, allocations: 3.906 kB / 3.853 GB, free: 67.62 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.07005/12.39, allocations: 14.94 MB / 3.868 GB, free: 67.13 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000713/12.39, allocations: 165.5 kB / 3.868 GB, free: 67.12 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.05015/12.44, allocations: 6.741 MB / 3.874 GB, free: 67.1 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01117/12.45, allocations: 1.794 MB / 3.876 GB, free: 66.96 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09335/12.54, allocations: 27.3 MB / 3.903 GB, free: 65.13 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01036/12.55, allocations: 0.8442 MB / 3.904 GB, free: 64.97 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002747/12.56, allocations: 0.5474 MB / 3.904 GB, free: 64.97 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: 683 * 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 (803): * Single equations (assignments): 802 * 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 124} Notification: Performance of prepare postOptimizeDAE: time 0.004253/12.56, allocations: 0.8724 MB / 3.905 GB, free: 64.59 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001206/12.56, allocations: 312.1 kB / 3.905 GB, free: 64.42 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0464/12.61, allocations: 26.16 MB / 3.931 GB, free: 54.14 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.017e-05/12.61, allocations: 61.69 kB / 3.931 GB, free: 54.12 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.274e-06/12.61, allocations: 0 / 3.931 GB, free: 54.12 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.174e-05/12.61, allocations: 11.53 kB / 3.931 GB, free: 54.12 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01688/12.63, allocations: 11.47 MB / 3.942 GB, free: 47.7 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.731e-05/12.63, allocations: 3.891 kB / 3.942 GB, free: 47.7 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003581/12.63, allocations: 280.4 kB / 3.942 GB, free: 47.66 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.07508/12.7, allocations: 8.991 MB / 3.951 GB, free: 46.29 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0013/12.71, allocations: 109.3 kB / 3.951 GB, free: 46.22 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02396/12.73, allocations: 6.418 MB / 3.958 GB, free: 40.82 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.73e-06/12.73, allocations: 4.703 kB / 3.958 GB, free: 40.81 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03982/12.77, allocations: 11.04 MB / 3.968 GB, free: 31.44 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003428/12.77, allocations: 0.8186 MB / 3.969 GB, free: 30.71 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001657/12.77, allocations: 76.86 kB / 3.969 GB, free: 30.64 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006318/12.78, allocations: 267.5 kB / 3.969 GB, free: 30.48 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001479/12.78, allocations: 145 kB / 3.97 GB, free: 30.4 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007701/12.78, allocations: 91.7 kB / 3.97 GB, free: 30.34 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.004628/12.79, allocations: 2.002 MB / 3.972 GB, free: 28.58 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.713e-06/12.79, allocations: 0.9375 kB / 3.972 GB, free: 28.58 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.02224/12.81, allocations: 3.203 MB / 3.975 GB, free: 25.51 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 ($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,$cse32.phase,$cse32.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (97): * Single equations (assignments): 85 * 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 {14 145} Notification: Performance of Backend phase and start with SimCode phase: time 0.05305/12.86, allocations: 13 MB / 3.987 GB, free: 14.65 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.4383/13.3, allocations: 14.7 MB / 4.002 GB, free: 96.58 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.388e-05/13.3, allocations: 1.031 kB / 4.002 GB, free: 96.58 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.01722/13.32, allocations: 3.512 MB / 4.005 GB, free: 96.55 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005854/13.32, allocations: 0.5793 MB / 4.006 GB, free: 96.54 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03801/13.36, allocations: 10.08 MB / 4.016 GB, free: 95.29 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004899/13.37, allocations: 2.551 MB / 4.018 GB, free: 94.52 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.03709/13.4, allocations: 17.72 MB / 4.035 GB, free: 94.24 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004213/13.41, allocations: 1.622 MB / 4.037 GB, free: 94.24 MB / 0.5573 GB Notification: Performance of SimCode: time 2.585e-06/13.41, allocations: 0 / 4.037 GB, free: 94.24 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3446/13.75, allocations: 165.6 MB / 4.199 GB, free: 1.559 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002245/13.75, allocations: 209.9 kB / 4.199 GB, free: 1.32 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.625/23.38, allocations: 0 / 4.199 GB, free: 1.32 MB / 0.5573 GB