Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes3",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(ModelicaTest): time 2.515/2.515, allocations: 235.2 MB / 242.3 MB, free: 9.578 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.35e-05/2.385e-05, allocations: 4 kB / 299.6 MB, free: 204 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3751/0.3752, allocations: 54.86 MB / 354.4 MB, free: 15.2 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.706/9.081, allocations: 2.673 GB / 3.019 GB, free: 117.4 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002573/9.082, allocations: 81.12 kB / 3.019 GB, free: 117.4 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.771/13.85, allocations: 0.8605 GB / 3.879 GB, free: 16.56 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.254e-06/13.85, allocations: 4 kB / 3.879 GB, free: 16.55 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0003056/13.85, allocations: 63.77 kB / 3.879 GB, free: 16.5 MB / 0.4948 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.01826/13.87, allocations: 3.75 MB / 3.883 GB, free: 12.7 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.289e-05/13.87, allocations: 12.03 kB / 3.883 GB, free: 12.69 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009082/13.88, allocations: 0.7815 MB / 3.884 GB, free: 11.9 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008603/13.89, allocations: 1.967 MB / 3.886 GB, free: 9.918 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002334/13.89, allocations: 83.98 kB / 3.886 GB, free: 9.836 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008076/13.89, allocations: 115.9 kB / 3.886 GB, free: 9.723 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007191/13.9, allocations: 2.287 MB / 3.888 GB, free: 7.434 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00789/13.91, allocations: 2.542 MB / 3.891 GB, free: 4.73 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.632e-05/13.91, allocations: 7.938 kB / 3.891 GB, free: 4.723 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005051/13.91, allocations: 4 kB / 3.891 GB, free: 4.719 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003526/13.91, allocations: 147.2 kB / 3.891 GB, free: 4.574 MB / 0.4948 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.8942/14.8, allocations: 108.1 MB / 3.996 GB, free: 27.93 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00394/14.8, allocations: 1.434 MB / 3.998 GB, free: 27.9 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002377/14.81, allocations: 0.9459 MB / 3.999 GB, free: 27.88 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05903/14.87, allocations: 17.45 MB / 4.016 GB, free: 16.34 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003231/14.87, allocations: 1.143 MB / 4.017 GB, free: 16.19 MB / 0.5417 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00181/14.87, allocations: 149 kB / 4.017 GB, free: 16.18 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=145): time 8.967e-06/14.87, allocations: 0 / 4.017 GB, free: 16.18 MB / 0.5417 GB Notification: Performance of matching and sorting (n=157): time 0.06063/14.93, allocations: 8.751 MB / 4.025 GB, free: 14.66 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002476/14.93, allocations: 364.2 kB / 4.026 GB, free: 14.26 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002307/14.93, allocations: 1.022 MB / 4.027 GB, free: 14.09 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0005446/14.94, allocations: 29.48 kB / 4.027 GB, free: 14.06 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.001078/14.94, allocations: 0.9353 MB / 4.028 GB, free: 13.75 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008568/14.94, allocations: 0.5035 MB / 4.028 GB, free: 13.48 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002075/14.94, allocations: 1.531 kB / 4.028 GB, free: 13.48 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0002681/14.94, allocations: 378.3 kB / 4.029 GB, free: 13.18 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002337/14.94, allocations: 0.8981 MB / 4.03 GB, free: 13.18 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002758/14.94, allocations: 1.324 MB / 4.031 GB, free: 12.74 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0151/14.96, allocations: 1.816 MB / 4.033 GB, free: 12.69 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-05/14.96, allocations: 7.188 kB / 4.033 GB, free: 12.69 MB / 0.5417 GB Notification: Performance of matching and sorting (n=236) (initialization): time 0.02172/14.98, allocations: 3.467 MB / 4.036 GB, free: 12.45 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.002267/14.98, allocations: 4.309 MB / 4.04 GB, free: 24 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.81e-05/14.98, allocations: 16.95 kB / 4.04 GB, free: 24 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004223/14.99, allocations: 494.7 kB / 4.041 GB, free: 23.96 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004126/14.99, allocations: 463.8 kB / 4.041 GB, free: 23.96 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003609/14.99, allocations: 2.812 MB / 4.044 GB, free: 21.87 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00466/15, allocations: 264.1 kB / 4.044 GB, free: 21.84 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003977/15, allocations: 97.8 kB / 4.044 GB, free: 21.84 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.684e-05/15, allocations: 6.469 kB / 4.044 GB, free: 21.84 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01799/15.02, allocations: 2.932 MB / 4.047 GB, free: 21.74 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.306e-05/15.02, allocations: 12.67 kB / 4.047 GB, free: 21.74 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007674/15.02, allocations: 191.9 kB / 4.047 GB, free: 21.71 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004063/15.02, allocations: 463.3 kB / 4.048 GB, free: 21.71 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00192/15.02, allocations: 1.891 MB / 4.05 GB, free: 20.16 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004182/15.03, allocations: 242 kB / 4.05 GB, free: 20.13 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003533/15.03, allocations: 97.86 kB / 4.05 GB, free: 20.13 MB / 0.5573 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 (valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.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_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (215): * Single equations (assignments): 209 * 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 5} Notification: Performance of prepare postOptimizeDAE: time 0.000835/15.03, allocations: 243.1 kB / 4.05 GB, free: 19.95 MB / 0.5573 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01893/15.05, allocations: 2.879 MB / 4.053 GB, free: 19.75 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007203/15.05, allocations: 178.2 kB / 4.053 GB, free: 19.66 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02435/15.07, allocations: 6.668 MB / 4.06 GB, free: 19.13 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.686e-05/15.07, allocations: 71.44 kB / 4.06 GB, free: 19.13 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.303e-05/15.07, allocations: 3.562 kB / 4.06 GB, free: 19.13 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02085/15.09, allocations: 5.802 MB / 4.065 GB, free: 18.37 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03288/15.13, allocations: 9.906 MB / 4.075 GB, free: 17.4 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.696e-05/15.13, allocations: 10.86 kB / 4.075 GB, free: 17.4 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002783/15.13, allocations: 310.9 kB / 4.075 GB, free: 17.4 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003628/15.13, allocations: 1.237 MB / 4.077 GB, free: 17.32 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004327/15.13, allocations: 41.53 kB / 4.077 GB, free: 17.32 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004199/15.14, allocations: 3.399 MB / 4.08 GB, free: 15.21 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.231e-05/15.14, allocations: 6.438 kB / 4.08 GB, free: 15.21 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0235/15.16, allocations: 7.078 MB / 4.087 GB, free: 11.17 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00223/15.16, allocations: 0.6532 MB / 4.087 GB, free: 10.71 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009809/15.17, allocations: 28.17 kB / 4.087 GB, free: 10.7 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00325/15.17, allocations: 147.3 kB / 4.088 GB, free: 10.59 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006739/15.17, allocations: 133.4 kB / 4.088 GB, free: 10.52 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002734/15.17, allocations: 76.69 kB / 4.088 GB, free: 10.47 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.00223/15.17, allocations: 0.9522 MB / 4.089 GB, free: 9.902 MB / 0.5573 GB Notification: Performance of sort global known variables: time 8.32e-07/15.17, allocations: 0 / 4.089 GB, free: 9.902 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01339/15.19, allocations: 2.475 MB / 4.091 GB, free: 7.816 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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 (161): * Single equations (assignments): 139 * 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 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.04341/15.23, allocations: 11.62 MB / 4.103 GB, free: 15.77 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.01271/15.24, allocations: 4.307 MB / 4.107 GB, free: 13.28 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.363e-05/15.24, allocations: 0 / 4.107 GB, free: 13.28 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.005795/15.25, allocations: 2.14 MB / 4.109 GB, free: 12.16 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008244/15.26, allocations: 0.7847 MB / 4.11 GB, free: 11.73 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0225/15.28, allocations: 6.331 MB / 4.116 GB, free: 7.309 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002919/15.28, allocations: 2.102 MB / 4.118 GB, free: 5.73 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.009587/15.29, allocations: 2.473 MB / 4.12 GB, free: 4.281 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002769/15.29, allocations: 1.112 MB / 4.121 GB, free: 4.16 MB / 0.573 GB Notification: Performance of SimCode: time 1.783e-06/15.29, allocations: 0 / 4.121 GB, free: 4.16 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.707/16, allocations: 95.79 MB / 4.215 GB, free: 97.52 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002863/16, allocations: 196.3 kB / 4.215 GB, free: 97.32 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform dynamic: time 7.47/23.47, allocations: 0 / 4.215 GB, free: 97.32 MB / 0.573 GB