Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeClosingValve",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.861/1.861, allocations: 209.3 MB / 221.9 MB, free: 1.926 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.115e-05/3.116e-05, allocations: 0 / 273.2 MB, free: 0.6328 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1011/0.1012, allocations: 48.7 MB / 321.9 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.549/7.65, allocations: 2.545 GB / 2.859 GB, free: 15.14 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002592/7.65, allocations: 77.95 kB / 2.859 GB, free: 15.1 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.407/10.06, allocations: 453 MB / 3.301 GB, free: 42.32 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.024e-06/10.06, allocations: 0 / 3.301 GB, free: 42.32 MB / 442.7 MB Notification: Performance of Transformations before backend: time 9.862e-05/10.06, allocations: 22.88 kB / 3.301 GB, free: 42.31 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 196 * Number of variables: 196 Notification: Performance of Generate backend data structure: time 0.009923/10.07, allocations: 2.105 MB / 3.303 GB, free: 41.14 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.802e-05/10.07, allocations: 10.09 kB / 3.303 GB, free: 41.14 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000361/10.07, allocations: 126.2 kB / 3.304 GB, free: 41.05 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003763/10.07, allocations: 362.8 kB / 3.304 GB, free: 40.97 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003148/10.07, allocations: 0.8723 MB / 3.305 GB, free: 40.48 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001103/10.07, allocations: 71.03 kB / 3.305 GB, free: 40.46 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002165/10.07, allocations: 80.33 kB / 3.305 GB, free: 40.43 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004318/10.08, allocations: 1.447 MB / 3.306 GB, free: 39.78 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.667e-05/10.08, allocations: 6.859 kB / 3.306 GB, free: 39.78 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001506/10.08, allocations: 35.22 kB / 3.306 GB, free: 39.76 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001276/10.08, allocations: 65.72 kB / 3.306 GB, free: 39.74 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004024/10.08, allocations: 1.227 MB / 3.308 GB, free: 39.37 MB / 442.7 MB 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.01191/10.1, allocations: 6.555 MB / 3.314 GB, free: 34.32 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003171/10.1, allocations: 0.9263 MB / 3.315 GB, free: 33.98 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008425/10.1, allocations: 389.4 kB / 3.315 GB, free: 33.82 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1002/10.2, allocations: 32.05 MB / 3.347 GB, free: 12.96 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.746e-05/10.2, allocations: 39.06 kB / 3.347 GB, free: 12.92 MB / 442.7 MB Notification: Performance of pre-optimization done (n=57): time 3.567e-06/10.2, allocations: 4 kB / 3.347 GB, free: 12.91 MB / 442.7 MB Notification: Performance of matching and sorting (n=61): time 0.009312/10.21, allocations: 2.805 MB / 3.349 GB, free: 11.12 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.19e-05/10.21, allocations: 184.5 kB / 3.349 GB, free: 10.9 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001116/10.21, allocations: 0.6369 MB / 3.35 GB, free: 10.31 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 9.03e-05/10.21, allocations: 40.84 kB / 3.35 GB, free: 10.27 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002556/10.21, allocations: 429.3 kB / 3.351 GB, free: 9.867 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001963/10.21, allocations: 213.8 kB / 3.351 GB, free: 9.68 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.332e-05/10.21, allocations: 12.06 kB / 3.351 GB, free: 9.668 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 8.158e-05/10.21, allocations: 347.6 kB / 3.351 GB, free: 9.328 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007939/10.21, allocations: 350.2 kB / 3.351 GB, free: 9.023 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009034/10.21, allocations: 0.546 MB / 3.352 GB, free: 8.434 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000894/10.21, allocations: 422.1 kB / 3.352 GB, free: 8.078 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.841e-06/10.21, allocations: 0 / 3.352 GB, free: 8.078 MB / 442.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.002707/10.22, allocations: 1.141 MB / 3.353 GB, free: 7.059 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004511/10.22, allocations: 2.264 MB / 3.356 GB, free: 4.629 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.453e-05/10.22, allocations: 8 kB / 3.356 GB, free: 4.621 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00479/10.22, allocations: 0.6335 MB / 3.356 GB, free: 4.145 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001163/10.22, allocations: 166.2 kB / 3.356 GB, free: 4.008 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001918/10.23, allocations: 1.256 MB / 3.358 GB, free: 2.848 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001578/10.23, allocations: 105.4 kB / 3.358 GB, free: 2.766 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001049/10.23, allocations: 34.16 kB / 3.358 GB, free: 2.734 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.237e-05/10.23, allocations: 4 kB / 3.358 GB, free: 2.73 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002866/10.23, allocations: 1.053 MB / 3.359 GB, free: 1.809 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.045e-05/10.23, allocations: 8 kB / 3.359 GB, free: 1.801 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002427/10.23, allocations: 378.3 kB / 3.359 GB, free: 1.516 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001169/10.23, allocations: 170.2 kB / 3.359 GB, free: 1.375 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001465/10.23, allocations: 1.061 MB / 3.36 GB, free: 16.38 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001154/10.24, allocations: 105.8 kB / 3.361 GB, free: 16.3 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.812e-05/10.24, allocations: 39.05 kB / 3.361 GB, free: 16.27 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * Number of states: 0 () * Number of discrete variables: 9 (valve.state_b.phase,valve.state_a.phase,pipe.state_a.phase,source.medium.phase,pipe.statesFM[2].phase,sink.medium.phase,sink.state.phase,pipe.state_b.phase,source.state.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (68): * Single equations (assignments): 67 * 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 {2 23} Notification: Performance of prepare postOptimizeDAE: time 0.0003075/10.24, allocations: 145.6 kB / 3.361 GB, free: 16.12 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002902/10.24, allocations: 90.97 kB / 3.361 GB, free: 16.03 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00578/10.24, allocations: 3.244 MB / 3.364 GB, free: 13.14 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.204e-05/10.24, allocations: 38.94 kB / 3.364 GB, free: 13.12 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.527e-06/10.24, allocations: 0 / 3.364 GB, free: 13.12 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004201/10.25, allocations: 2.685 MB / 3.367 GB, free: 10.6 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008302/10.26, allocations: 4.492 MB / 3.371 GB, free: 6.727 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.371e-05/10.26, allocations: 4 kB / 3.371 GB, free: 6.723 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001356/10.26, allocations: 173.9 kB / 3.371 GB, free: 6.582 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005445/10.26, allocations: 87.64 kB / 3.371 GB, free: 6.516 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.073e-05/10.26, allocations: 23.8 kB / 3.371 GB, free: 6.496 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005725/10.26, allocations: 0.6408 MB / 3.372 GB, free: 5.855 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.149e-06/10.26, allocations: 0 / 3.372 GB, free: 5.855 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005046/10.26, allocations: 2.746 MB / 3.375 GB, free: 3.316 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001051/10.26, allocations: 458.5 kB / 3.375 GB, free: 2.922 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002576/10.26, allocations: 23.95 kB / 3.375 GB, free: 2.898 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001347/10.27, allocations: 86.27 kB / 3.375 GB, free: 2.836 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002058/10.27, allocations: 62.67 kB / 3.375 GB, free: 2.797 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.919e-05/10.27, allocations: 26.34 kB / 3.375 GB, free: 2.773 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001771/10.27, allocations: 0.7844 MB / 3.376 GB, free: 2.043 MB / 458.7 MB Notification: Performance of sort global known variables: time 6.12e-07/10.27, allocations: 0 / 3.376 GB, free: 2.043 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.008602/10.28, allocations: 1.726 MB / 3.378 GB, free: 364 kB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (pipe.mediums[1].p,pipe.mediums[1].h) * Number of discrete variables: 21 ($cse5.phase,$cse5.region,$cse7.region3boundary,$cse8.region3boundary,$cse9.phase,$cse9.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,$cse23.phase,$cse23.region,source.medium.phase,pipe.statesFM[2].phase,sink.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (76): * Single equations (assignments): 65 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * 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 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.3386/10.62, allocations: 5.277 MB / 3.383 GB, free: 58.17 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.00437/10.62, allocations: 1.632 MB / 3.384 GB, free: 58.15 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.025e-06/10.62, allocations: 2.156 kB / 3.384 GB, free: 58.15 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00179/10.62, allocations: 0.8355 MB / 3.385 GB, free: 58.14 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004178/10.63, allocations: 476.1 kB / 3.386 GB, free: 58.13 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0114/10.64, allocations: 3.211 MB / 3.389 GB, free: 57.55 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001287/10.64, allocations: 1.329 MB / 3.39 GB, free: 56.83 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001223/10.64, allocations: 0.5662 MB / 3.391 GB, free: 56.82 MB / 458.7 MB Notification: Performance of SimCode: time 1.613e-06/10.64, allocations: 2.188 kB / 3.391 GB, free: 56.82 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.997/14.64, allocations: 51.95 MB / 3.441 GB, free: 53.62 MB / 458.7 MB