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.963/1.963, allocations: 209.3 MB / 221.9 MB, free: 1.934 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.21e-05/3.22e-05, allocations: 0 / 273.1 MB, free: 0.6484 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1065/0.1066, allocations: 48.71 MB / 321.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.729/7.835, allocations: 2.545 GB / 2.859 GB, free: 12.98 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002591/7.836, allocations: 73.78 kB / 2.859 GB, free: 12.94 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.382/10.22, allocations: 453 MB / 3.301 GB, free: 42.99 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.633e-06/10.22, allocations: 0 / 3.301 GB, free: 42.99 MB / 442.7 MB Notification: Performance of Transformations before backend: time 8.858e-05/10.22, allocations: 24.36 kB / 3.301 GB, free: 42.98 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.009267/10.23, allocations: 2.105 MB / 3.303 GB, free: 41.8 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.198e-05/10.23, allocations: 10.47 kB / 3.303 GB, free: 41.8 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002551/10.23, allocations: 128.9 kB / 3.303 GB, free: 41.71 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003419/10.23, allocations: 358.3 kB / 3.304 GB, free: 41.63 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002738/10.23, allocations: 0.8856 MB / 3.305 GB, free: 41.14 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.051e-05/10.23, allocations: 65.5 kB / 3.305 GB, free: 41.12 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000188/10.23, allocations: 81.41 kB / 3.305 GB, free: 41.09 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003941/10.24, allocations: 1.453 MB / 3.306 GB, free: 40.43 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.13e-05/10.24, allocations: 6.031 kB / 3.306 GB, free: 40.43 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000149/10.24, allocations: 37.86 kB / 3.306 GB, free: 40.41 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001066/10.24, allocations: 52.78 kB / 3.306 GB, free: 40.41 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003692/10.24, allocations: 1.254 MB / 3.308 GB, free: 40.02 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.01136/10.25, allocations: 6.558 MB / 3.314 GB, free: 34.96 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003145/10.26, allocations: 0.933 MB / 3.315 GB, free: 34.63 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008166/10.26, allocations: 392.2 kB / 3.315 GB, free: 34.47 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09606/10.35, allocations: 32.04 MB / 3.347 GB, free: 13.61 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.005e-05/10.35, allocations: 48.05 kB / 3.347 GB, free: 13.56 MB / 442.7 MB Notification: Performance of pre-optimization done (n=57): time 3.016e-06/10.35, allocations: 0 / 3.347 GB, free: 13.56 MB / 442.7 MB Notification: Performance of matching and sorting (n=61): time 0.009266/10.36, allocations: 2.798 MB / 3.349 GB, free: 11.43 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.762e-05/10.36, allocations: 196.4 kB / 3.35 GB, free: 11.2 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001119/10.36, allocations: 0.6359 MB / 3.35 GB, free: 10.61 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 9.193e-05/10.36, allocations: 37.7 kB / 3.35 GB, free: 10.56 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002711/10.36, allocations: 438.2 kB / 3.351 GB, free: 10.16 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002/10.36, allocations: 213.1 kB / 3.351 GB, free: 9.969 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.249e-05/10.36, allocations: 12 kB / 3.351 GB, free: 9.957 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 8.929e-05/10.36, allocations: 341.4 kB / 3.351 GB, free: 9.625 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008062/10.37, allocations: 345.4 kB / 3.351 GB, free: 9.324 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009677/10.37, allocations: 0.5504 MB / 3.352 GB, free: 8.727 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009313/10.37, allocations: 411.2 kB / 3.352 GB, free: 8.387 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.242e-06/10.37, allocations: 4 kB / 3.352 GB, free: 8.383 MB / 442.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.002775/10.37, allocations: 1.159 MB / 3.354 GB, free: 7.344 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005079/10.37, allocations: 2.267 MB / 3.356 GB, free: 4.91 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.716e-05/10.37, allocations: 4 kB / 3.356 GB, free: 4.906 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004731/10.38, allocations: 0.6402 MB / 3.356 GB, free: 4.422 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001124/10.38, allocations: 163.7 kB / 3.357 GB, free: 4.289 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001944/10.38, allocations: 1.257 MB / 3.358 GB, free: 3.125 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001526/10.38, allocations: 105.7 kB / 3.358 GB, free: 3.043 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001082/10.38, allocations: 47.27 kB / 3.358 GB, free: 3.004 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.163e-05/10.38, allocations: 4 kB / 3.358 GB, free: 3 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002893/10.38, allocations: 1.068 MB / 3.359 GB, free: 2.062 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.1e-05/10.38, allocations: 8 kB / 3.359 GB, free: 2.055 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002406/10.39, allocations: 375.9 kB / 3.359 GB, free: 1.77 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001134/10.39, allocations: 166.1 kB / 3.359 GB, free: 1.633 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001364/10.39, allocations: 1.063 MB / 3.36 GB, free: 0.6367 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001101/10.39, allocations: 102 kB / 3.361 GB, free: 0.5586 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.814e-05/10.39, allocations: 39.61 kB / 3.361 GB, free: 0.5234 MB / 442.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.0002822/10.39, allocations: 151.8 kB / 3.361 GB, free: 380 kB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003307/10.39, allocations: 89.72 kB / 3.361 GB, free: 292 kB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005905/10.4, allocations: 3.24 MB / 3.364 GB, free: 13.41 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.172e-05/10.4, allocations: 38.48 kB / 3.364 GB, free: 13.38 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.466e-06/10.4, allocations: 0 / 3.364 GB, free: 13.38 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004257/10.4, allocations: 2.686 MB / 3.367 GB, free: 10.86 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008468/10.41, allocations: 4.483 MB / 3.371 GB, free: 6.992 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.938e-06/10.41, allocations: 8 kB / 3.371 GB, free: 6.984 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001347/10.41, allocations: 180.5 kB / 3.371 GB, free: 6.844 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005343/10.41, allocations: 82.23 kB / 3.371 GB, free: 6.781 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.579e-05/10.41, allocations: 23.09 kB / 3.371 GB, free: 6.762 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000589/10.41, allocations: 0.6482 MB / 3.372 GB, free: 6.113 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/10.41, allocations: 7.141 kB / 3.372 GB, free: 6.109 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005128/10.42, allocations: 2.745 MB / 3.375 GB, free: 3.574 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001078/10.42, allocations: 456.1 kB / 3.375 GB, free: 3.18 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002621/10.42, allocations: 24.02 kB / 3.375 GB, free: 3.156 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001317/10.42, allocations: 89.88 kB / 3.375 GB, free: 3.09 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002027/10.42, allocations: 58.3 kB / 3.375 GB, free: 3.055 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.658e-05/10.42, allocations: 27.47 kB / 3.375 GB, free: 3.031 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001706/10.42, allocations: 0.7878 MB / 3.376 GB, free: 2.297 MB / 458.7 MB Notification: Performance of sort global known variables: time 4.2e-07/10.42, allocations: 4 kB / 3.376 GB, free: 2.293 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.008503/10.43, allocations: 1.723 MB / 3.378 GB, free: 0.6133 MB / 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.3479/10.78, allocations: 5.27 MB / 3.383 GB, free: 59.25 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004458/10.78, allocations: 1.657 MB / 3.385 GB, free: 59.23 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.995e-06/10.78, allocations: 1.094 kB / 3.385 GB, free: 59.23 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001811/10.78, allocations: 0.8375 MB / 3.385 GB, free: 59.22 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004113/10.79, allocations: 473.6 kB / 3.386 GB, free: 59.21 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01116/10.8, allocations: 3.218 MB / 3.389 GB, free: 58.62 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001203/10.8, allocations: 1.33 MB / 3.39 GB, free: 57.91 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001209/10.8, allocations: 0.5699 MB / 3.391 GB, free: 57.9 MB / 458.7 MB Notification: Performance of SimCode: time 1.153e-06/10.8, allocations: 2.406 kB / 3.391 GB, free: 57.9 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.051/14.85, allocations: 51.92 MB / 3.441 GB, free: 54.82 MB / 458.7 MB