Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes4",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(ModelicaTest): time 3.057/3.057, allocations: 235.2 MB / 242.3 MB, free: 9.566 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.129e-05/3.134e-05, allocations: 4 kB / 299.6 MB, free: 208 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4462/0.4463, allocations: 54.85 MB / 354.4 MB, free: 15.29 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 10.13/10.58, allocations: 2.659 GB / 3.006 GB, free: 89.54 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004236/10.58, allocations: 78.34 kB / 3.006 GB, free: 89.5 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.471/18.05, allocations: 0.8922 GB / 3.898 GB, free: 33.91 MB / 0.5105 GB Notification: Performance of FrontEnd: time 3.907e-06/18.05, allocations: 0 / 3.898 GB, free: 33.91 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0006063/18.05, allocations: 69.66 kB / 3.898 GB, free: 33.9 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: 536 * Number of variables: 536 Notification: Performance of Generate backend data structure: time 0.03519/18.09, allocations: 4.031 MB / 3.902 GB, free: 32.13 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 7.948e-05/18.09, allocations: 6.094 kB / 3.902 GB, free: 32.13 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002322/18.09, allocations: 222.7 kB / 3.902 GB, free: 32.08 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02284/18.11, allocations: 0.8654 MB / 3.903 GB, free: 31.94 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01687/18.13, allocations: 2.084 MB / 3.905 GB, free: 31.49 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005896/18.13, allocations: 118.2 kB / 3.905 GB, free: 31.49 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001802/18.13, allocations: 118.9 kB / 3.905 GB, free: 31.49 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01501/18.15, allocations: 2.658 MB / 3.908 GB, free: 31.48 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01778/18.16, allocations: 2.875 MB / 3.911 GB, free: 30.96 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002315/18.16, allocations: 6.344 kB / 3.911 GB, free: 30.96 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001605/18.17, allocations: 7.062 kB / 3.911 GB, free: 30.96 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007809/18.17, allocations: 166.4 kB / 3.911 GB, free: 30.96 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.6978/18.86, allocations: 109.6 MB / 4.018 GB, free: 21.55 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006212/18.87, allocations: 2.067 MB / 4.02 GB, free: 20.94 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003096/18.87, allocations: 0.9707 MB / 4.021 GB, free: 20.91 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07295/18.95, allocations: 17.53 MB / 4.038 GB, free: 9.359 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003853/18.95, allocations: 1.17 MB / 4.039 GB, free: 9.188 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=153): time 8.436e-06/18.95, allocations: 2.391 kB / 4.039 GB, free: 9.188 MB / 0.5573 GB Notification: Performance of matching and sorting (n=169): time 0.04556/19, allocations: 7.768 MB / 4.046 GB, free: 4.055 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00027/19, allocations: 359 kB / 4.047 GB, free: 3.629 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003315/19, allocations: 1.145 MB / 4.048 GB, free: 2.898 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0006597/19, allocations: 29.7 kB / 4.048 GB, free: 2.863 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.001565/19, allocations: 1.041 MB / 4.049 GB, free: 2.246 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.001283/19, allocations: 0.5448 MB / 4.05 GB, free: 1.812 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003659/19, allocations: 0 / 4.05 GB, free: 1.812 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0004571/19, allocations: 390.4 kB / 4.05 GB, free: 17.48 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003432/19.01, allocations: 0.9923 MB / 4.051 GB, free: 16.97 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003963/19.01, allocations: 1.442 MB / 4.052 GB, free: 15.9 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02744/19.04, allocations: 2.786 MB / 4.055 GB, free: 14.38 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.564e-05/19.04, allocations: 4 kB / 4.055 GB, free: 14.38 MB / 0.573 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.03701/19.08, allocations: 4.437 MB / 4.059 GB, free: 11.79 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.00295/19.08, allocations: 4.945 MB / 4.064 GB, free: 6.66 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.187e-05/19.08, allocations: 12 kB / 4.064 GB, free: 6.648 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001427/19.08, allocations: 226.9 kB / 4.064 GB, free: 6.508 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006295/19.09, allocations: 0.5112 MB / 4.065 GB, free: 6.121 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003473/19.09, allocations: 2.456 MB / 4.067 GB, free: 3.812 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006124/19.1, allocations: 276.5 kB / 4.068 GB, free: 3.609 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001/19.1, allocations: 104.2 kB / 4.068 GB, free: 3.535 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 2.74e-05/19.1, allocations: 8.734 kB / 4.068 GB, free: 3.527 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03439/19.13, allocations: 3.992 MB / 4.072 GB, free: 1.277 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.613e-05/19.13, allocations: 12 kB / 4.072 GB, free: 1.266 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001336/19.13, allocations: 218.3 kB / 4.072 GB, free: 1.129 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006268/19.14, allocations: 0.5122 MB / 4.072 GB, free: 0.7461 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.581/19.72, allocations: 2.449 MB / 4.075 GB, free: 93.02 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005736/19.73, allocations: 250.1 kB / 4.075 GB, free: 93.02 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001037/19.73, allocations: 100.7 kB / 4.075 GB, free: 93.02 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 30 (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_b.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,splitter.medium.phase,source.medium.phase,sink.medium.phase,pipe3.state_b.phase,pipe2.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (247): * Single equations (assignments): 241 * 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,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.001455/19.73, allocations: 241.8 kB / 4.075 GB, free: 92.85 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001059/19.73, allocations: 188 kB / 4.075 GB, free: 92.85 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.023/19.75, allocations: 6.306 MB / 4.082 GB, free: 92.48 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001341/19.75, allocations: 68.94 kB / 4.082 GB, free: 92.48 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.592e-05/19.75, allocations: 0 / 4.082 GB, free: 92.48 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01643/19.77, allocations: 5.257 MB / 4.087 GB, free: 91.75 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02952/19.8, allocations: 8.997 MB / 4.096 GB, free: 91.06 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.649e-05/19.8, allocations: 3.031 kB / 4.096 GB, free: 91.06 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004414/19.8, allocations: 359.9 kB / 4.096 GB, free: 91.06 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002063/19.81, allocations: 326.1 kB / 4.096 GB, free: 91.02 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00066/19.81, allocations: 39.84 kB / 4.096 GB, free: 91.02 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00264/19.81, allocations: 2.63 MB / 4.099 GB, free: 88.96 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.051e-05/19.81, allocations: 5.875 kB / 4.099 GB, free: 88.96 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02046/19.83, allocations: 6.242 MB / 4.105 GB, free: 88.44 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003018/19.83, allocations: 0.6915 MB / 4.106 GB, free: 88.2 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001161/19.83, allocations: 18.59 kB / 4.106 GB, free: 88.2 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004679/19.84, allocations: 176.5 kB / 4.106 GB, free: 88.19 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008493/19.84, allocations: 136.2 kB / 4.106 GB, free: 88.19 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004064/19.84, allocations: 67.53 kB / 4.106 GB, free: 88.19 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.003271/19.84, allocations: 1.046 MB / 4.107 GB, free: 88.08 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.272e-06/19.84, allocations: 1.5 kB / 4.107 GB, free: 88.08 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01696/19.86, allocations: 2.71 MB / 4.11 GB, free: 88.08 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h,splitter.medium.p,splitter.medium.h) * Number of discrete variables: 46 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.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.region3boundary,$cse31.region3boundary,$cse32.phase,$cse32.region,$cse34.phase,$cse34.region,$cse35.region3boundary,$cse36.region3boundary,$cse37.phase,$cse37.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,splitter.medium.phase) * 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 (183): * Single equations (assignments): 158 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 19 * 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,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.04084/19.9, allocations: 10.06 MB / 4.119 GB, free: 86.56 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.01667/19.92, allocations: 4.761 MB / 4.124 GB, free: 86.26 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.357e-05/19.92, allocations: 5.406 kB / 4.124 GB, free: 86.26 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.006699/19.93, allocations: 2.142 MB / 4.126 GB, free: 86.12 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01113/19.94, allocations: 0.851 MB / 4.127 GB, free: 86.12 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03032/19.97, allocations: 6.776 MB / 4.134 GB, free: 84.84 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004811/19.97, allocations: 2.193 MB / 4.136 GB, free: 84.07 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.01219/19.98, allocations: 2.56 MB / 4.138 GB, free: 84.02 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003834/19.99, allocations: 1.219 MB / 4.14 GB, free: 84.01 MB / 0.573 GB Notification: Performance of SimCode: time 2.445e-06/19.99, allocations: 3.75 kB / 4.14 GB, free: 84.01 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3615/20.35, allocations: 103.5 MB / 4.241 GB, free: 60.91 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003983/20.35, allocations: 188.4 kB / 4.241 GB, free: 60.71 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform dynamic: time 9.727/30.08, allocations: 3.938 kB / 4.241 GB, free: 60.71 MB / 0.573 GB