Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes13",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(ModelicaTest): time 2.502/2.502, allocations: 235.1 MB / 242.3 MB, free: 9.582 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.544e-05/2.541e-05, allocations: 4 kB / 299.6 MB, free: 208 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3797/0.3797, allocations: 54.85 MB / 354.4 MB, free: 15.2 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.317/8.697, allocations: 2.656 GB / 3.002 GB, free: 93.14 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002719/8.697, allocations: 72.47 kB / 3.002 GB, free: 93.11 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.266/13.96, allocations: 0.8552 GB / 3.857 GB, free: 35.02 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.335e-06/13.96, allocations: 0 / 3.857 GB, free: 35.02 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0003679/13.96, allocations: 59.91 kB / 3.857 GB, free: 35.02 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: 476 * Number of variables: 476 Notification: Performance of Generate backend data structure: time 0.01908/13.98, allocations: 3.822 MB / 3.861 GB, free: 33.89 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.558e-05/13.98, allocations: 9.547 kB / 3.861 GB, free: 33.89 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008972/13.99, allocations: 0.7821 MB / 3.862 GB, free: 33.77 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008409/14, allocations: 1.952 MB / 3.864 GB, free: 33.33 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000284/14, allocations: 82.84 kB / 3.864 GB, free: 33.33 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00102/14, allocations: 109.5 kB / 3.864 GB, free: 33.33 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007889/14.01, allocations: 2.332 MB / 3.866 GB, free: 33.32 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008571/14.02, allocations: 2.564 MB / 3.869 GB, free: 32.87 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.267e-05/14.02, allocations: 5.125 kB / 3.869 GB, free: 32.87 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000389/14.02, allocations: 7.625 kB / 3.869 GB, free: 32.87 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003388/14.02, allocations: 145.7 kB / 3.869 GB, free: 32.86 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.444/14.46, allocations: 108.2 MB / 3.974 GB, free: 24.95 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004172/14.47, allocations: 1.412 MB / 3.976 GB, free: 24.92 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002414/14.47, allocations: 0.8744 MB / 3.977 GB, free: 24.91 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06303/14.53, allocations: 17.53 MB / 3.994 GB, free: 13.36 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002706/14.54, allocations: 1.091 MB / 3.995 GB, free: 13.2 MB / 0.5573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001857/14.54, allocations: 149.2 kB / 3.995 GB, free: 13.14 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=136): time 6.582e-06/14.54, allocations: 0 / 3.995 GB, free: 13.14 MB / 0.5573 GB Notification: Performance of matching and sorting (n=148): time 0.03229/14.57, allocations: 7.187 MB / 4.002 GB, free: 11.52 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002508/14.57, allocations: 362.9 kB / 4.002 GB, free: 11.11 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002373/14.57, allocations: 1.059 MB / 4.003 GB, free: 10.95 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0004661/14.57, allocations: 32.73 kB / 4.003 GB, free: 10.91 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.00109/14.57, allocations: 0.9512 MB / 4.004 GB, free: 10.48 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.000737/14.57, allocations: 492.6 kB / 4.005 GB, free: 10.17 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002005/14.57, allocations: 7.562 kB / 4.005 GB, free: 10.16 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.000225/14.58, allocations: 373.1 kB / 4.005 GB, free: 9.859 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002248/14.58, allocations: 0.8949 MB / 4.006 GB, free: 9.859 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002475/14.58, allocations: 1.304 MB / 4.007 GB, free: 9.418 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02126/14.6, allocations: 2.66 MB / 4.01 GB, free: 9.352 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.638e-05/14.6, allocations: 6.969 kB / 4.01 GB, free: 9.352 MB / 0.5573 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.02783/14.63, allocations: 4.328 MB / 4.014 GB, free: 9.102 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0022/14.63, allocations: 4.309 MB / 4.018 GB, free: 20.65 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.529e-05/14.63, allocations: 12.5 kB / 4.018 GB, free: 20.65 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004314/14.64, allocations: 0.519 MB / 4.019 GB, free: 20.61 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00392/14.64, allocations: 443.3 kB / 4.019 GB, free: 20.61 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004327/14.64, allocations: 2.945 MB / 4.022 GB, free: 18.52 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004354/14.65, allocations: 232.6 kB / 4.022 GB, free: 18.49 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000354/14.65, allocations: 92.44 kB / 4.023 GB, free: 18.49 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.378e-05/14.65, allocations: 7.906 kB / 4.023 GB, free: 18.48 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02438/14.67, allocations: 3.779 MB / 4.026 GB, free: 18.37 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.103e-05/14.67, allocations: 13.84 kB / 4.026 GB, free: 18.37 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007353/14.67, allocations: 180.5 kB / 4.026 GB, free: 18.35 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004023/14.68, allocations: 460.7 kB / 4.027 GB, free: 18.34 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002161/14.68, allocations: 1.895 MB / 4.029 GB, free: 16.78 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004013/14.68, allocations: 212.3 kB / 4.029 GB, free: 16.75 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006518/14.69, allocations: 93.48 kB / 4.029 GB, free: 16.75 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 29 (pipe3.state_a.phase,pipe2.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.state_a.phase,pipe1.state_a.phase,$whenCondition1,$whenCondition2,pipe1.statesFM[2].phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,valveOpening2.nextEventScaled,source.medium.phase,sink.medium.phase,pipe3.state_b.phase,pipe2.state_b.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (205): * Single equations (assignments): 199 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,2 9} Notification: Performance of prepare postOptimizeDAE: time 0.0008969/14.69, allocations: 233.6 kB / 4.029 GB, free: 16.57 MB / 0.573 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.009956/14.7, allocations: 2.337 MB / 4.031 GB, free: 16.38 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009449/14.7, allocations: 182.4 kB / 4.032 GB, free: 16.28 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0155/14.71, allocations: 6.291 MB / 4.038 GB, free: 15.69 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.733e-05/14.71, allocations: 64.59 kB / 4.038 GB, free: 15.69 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.427e-05/14.71, allocations: 7.609 kB / 4.038 GB, free: 15.69 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01186/14.72, allocations: 5.298 MB / 4.043 GB, free: 14.61 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0209/14.75, allocations: 8.473 MB / 4.051 GB, free: 10.35 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.075e-05/14.75, allocations: 0 / 4.051 GB, free: 10.35 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002699/14.75, allocations: 288.4 kB / 4.052 GB, free: 10.14 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004363/14.75, allocations: 1.505 MB / 4.053 GB, free: 9.148 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004957/14.75, allocations: 39.41 kB / 4.053 GB, free: 9.125 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005305/14.76, allocations: 3.698 MB / 4.057 GB, free: 6.238 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.163e-05/14.76, allocations: 4.031 kB / 4.057 GB, free: 6.234 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01704/14.78, allocations: 6.366 MB / 4.063 GB, free: 2.66 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002494/14.78, allocations: 0.6584 MB / 4.064 GB, free: 2.188 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008929/14.78, allocations: 14.3 kB / 4.064 GB, free: 2.18 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003137/14.78, allocations: 140.4 kB / 4.064 GB, free: 2.078 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004427/14.78, allocations: 124.5 kB / 4.064 GB, free: 2.02 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002542/14.78, allocations: 64.12 kB / 4.064 GB, free: 1.977 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.002505/14.79, allocations: 0.9875 MB / 4.065 GB, free: 1.391 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.914e-06/14.79, allocations: 4 kB / 4.065 GB, free: 1.387 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.4772/15.26, allocations: 2.57 MB / 4.067 GB, free: 95.46 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 45 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse22.phase,$cse22.region,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse26.region3boundary,$cse27.region3boundary,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse31.region3boundary,$cse32.region3boundary,$cse33.phase,$cse33.region,$cse35.phase,$cse35.region,$whenCondition1,$whenCondition2,pipe1.statesFM[2].phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,valveOpening2.nextEventScaled) * Number of discrete states: 12 (valveOpening2.nextEvent,valveOpening2.last,valveOpening2.nextEventScaled,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (147): * Single equations (assignments): 125 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 16 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,2 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.03307/15.3, allocations: 9.632 MB / 4.077 GB, free: 94.2 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.01217/15.31, allocations: 4.309 MB / 4.081 GB, free: 93.9 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.096e-05/15.31, allocations: 1.469 kB / 4.081 GB, free: 93.9 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.005132/15.31, allocations: 1.99 MB / 4.083 GB, free: 93.76 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008376/15.32, allocations: 0.793 MB / 4.084 GB, free: 93.74 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0227/15.34, allocations: 6.269 MB / 4.09 GB, free: 92.64 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003088/15.35, allocations: 2.094 MB / 4.092 GB, free: 91.88 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.009005/15.36, allocations: 2.388 MB / 4.094 GB, free: 91.84 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002783/15.36, allocations: 1.094 MB / 4.095 GB, free: 91.84 MB / 0.573 GB Notification: Performance of SimCode: time 2.134e-06/15.36, allocations: 0 / 4.095 GB, free: 91.84 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2536/15.61, allocations: 96.95 MB / 4.19 GB, free: 86.64 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002733/15.61, allocations: 193 kB / 4.19 GB, free: 86.45 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform dynamic: time 7.546/23.16, allocations: 0 / 4.19 GB, free: 86.45 MB / 0.573 GB