Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes12",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(ModelicaTest): time 3.191/3.191, allocations: 235.2 MB / 242.3 MB, free: 9.57 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.277e-05/3.281e-05, allocations: 4 kB / 299.6 MB, free: 220 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4834/0.4835, allocations: 54.87 MB / 354.4 MB, free: 15.18 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 10.99/11.47, allocations: 2.655 GB / 3.001 GB, free: 93.52 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002702/11.47, allocations: 78.97 kB / 3.001 GB, free: 93.48 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.495/16.96, allocations: 0.7959 GB / 3.797 GB, free: 29.39 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.365e-06/16.96, allocations: 0 / 3.797 GB, free: 29.39 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0004485/16.97, allocations: 69.05 kB / 3.797 GB, free: 29.38 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: 518 * Number of variables: 518 Notification: Performance of Generate backend data structure: time 0.02467/16.99, allocations: 3.946 MB / 3.801 GB, free: 27.17 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.749e-05/16.99, allocations: 7.719 kB / 3.801 GB, free: 27.17 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001423/16.99, allocations: 213.1 kB / 3.801 GB, free: 27.06 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01181/17, allocations: 0.8379 MB / 3.802 GB, free: 26.84 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01123/17.01, allocations: 2.171 MB / 3.804 GB, free: 25.86 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000339/17.01, allocations: 110.9 kB / 3.804 GB, free: 25.84 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001327/17.02, allocations: 115.4 kB / 3.805 GB, free: 25.84 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0106/17.03, allocations: 2.881 MB / 3.807 GB, free: 24.81 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01204/17.04, allocations: 2.881 MB / 3.81 GB, free: 23.46 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001532/17.04, allocations: 3.938 kB / 3.81 GB, free: 23.46 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001316/17.04, allocations: 7.875 kB / 3.81 GB, free: 23.46 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004727/17.04, allocations: 167.4 kB / 3.81 GB, free: 23.43 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 1.114/18.15, allocations: 108.9 MB / 3.917 GB, free: 29.22 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004824/18.16, allocations: 1.583 MB / 3.918 GB, free: 29.19 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002713/18.16, allocations: 0.9889 MB / 3.919 GB, free: 29.18 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06857/18.23, allocations: 17.53 MB / 3.936 GB, free: 17.64 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003559/18.23, allocations: 1.221 MB / 3.937 GB, free: 17.48 MB / 0.5261 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002102/18.24, allocations: 158.6 kB / 3.938 GB, free: 17.48 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=152): time 8.225e-06/18.24, allocations: 4.562 kB / 3.938 GB, free: 17.48 MB / 0.5261 GB Notification: Performance of matching and sorting (n=164): time 0.04128/18.28, allocations: 7.91 MB / 3.945 GB, free: 15.88 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003603/18.28, allocations: 0.5073 MB / 3.946 GB, free: 15.29 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003034/18.28, allocations: 1.188 MB / 3.947 GB, free: 15.12 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0006316/18.28, allocations: 29.64 kB / 3.947 GB, free: 15.09 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001422/18.28, allocations: 1.032 MB / 3.948 GB, free: 14.74 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001095/18.28, allocations: 0.5356 MB / 3.949 GB, free: 14.46 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003277/18.29, allocations: 6.625 kB / 3.949 GB, free: 14.46 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002968/18.29, allocations: 386.6 kB / 3.949 GB, free: 14.16 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002998/18.29, allocations: 1.042 MB / 3.95 GB, free: 14.15 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0035/18.29, allocations: 1.499 MB / 3.951 GB, free: 13.64 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02502/18.32, allocations: 2.847 MB / 3.954 GB, free: 13.57 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.11e-05/18.32, allocations: 3.969 kB / 3.954 GB, free: 13.57 MB / 0.5261 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.0324/18.35, allocations: 4.714 MB / 3.959 GB, free: 13.32 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.002534/18.35, allocations: 4.515 MB / 3.963 GB, free: 24.69 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.552e-05/18.35, allocations: 15.47 kB / 3.963 GB, free: 24.69 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008291/18.36, allocations: 0.8133 MB / 3.964 GB, free: 24.63 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005032/18.37, allocations: 472.2 kB / 3.965 GB, free: 24.63 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006665/18.37, allocations: 3.328 MB / 3.968 GB, free: 22.53 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005251/18.38, allocations: 229 kB / 3.968 GB, free: 22.51 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008662/18.38, allocations: 106.1 kB / 3.968 GB, free: 22.51 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.757e-05/18.38, allocations: 7.156 kB / 3.968 GB, free: 22.5 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03076/18.41, allocations: 4.202 MB / 3.972 GB, free: 22.38 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.563e-05/18.41, allocations: 16.94 kB / 3.972 GB, free: 22.38 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002202/18.41, allocations: 338.8 kB / 3.973 GB, free: 22.34 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004959/18.42, allocations: 498.6 kB / 3.973 GB, free: 22.34 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007265/18.42, allocations: 3.992 MB / 3.977 GB, free: 19.55 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004586/18.43, allocations: 212.1 kB / 3.977 GB, free: 19.53 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005216/18.43, allocations: 101.2 kB / 3.977 GB, free: 19.53 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * 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_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,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 (223): * Single equations (assignments): 213 * Array equations: 2 * Algorithm blocks: 2 * Record equations: 2 * 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,3 19} Notification: Performance of prepare postOptimizeDAE: time 0.00102/18.43, allocations: 235 kB / 3.977 GB, free: 19.36 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007181/18.43, allocations: 194.3 kB / 3.978 GB, free: 19.26 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01826/18.45, allocations: 6.701 MB / 3.984 GB, free: 18.72 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001193/18.45, allocations: 72.48 kB / 3.984 GB, free: 18.71 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.126e-05/18.45, allocations: 4.125 kB / 3.984 GB, free: 18.71 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01418/18.46, allocations: 5.66 MB / 3.99 GB, free: 17.97 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02367/18.49, allocations: 9.03 MB / 3.999 GB, free: 17.37 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.222e-05/18.49, allocations: 5.906 kB / 3.999 GB, free: 17.37 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003241/18.49, allocations: 296.9 kB / 3.999 GB, free: 17.37 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008037/18.5, allocations: 2.343 MB / 4.001 GB, free: 17.26 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005809/18.5, allocations: 42.77 kB / 4.001 GB, free: 17.26 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007383/18.51, allocations: 4.42 MB / 4.006 GB, free: 15.14 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.09e-05/18.51, allocations: 1.875 kB / 4.006 GB, free: 15.14 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02002/18.53, allocations: 7.125 MB / 4.012 GB, free: 14.46 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002712/18.53, allocations: 0.692 MB / 4.013 GB, free: 14.17 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008364/18.53, allocations: 20.19 kB / 4.013 GB, free: 14.17 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003497/18.53, allocations: 153.6 kB / 4.013 GB, free: 14.15 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005096/18.53, allocations: 127.8 kB / 4.013 GB, free: 14.15 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000332/18.54, allocations: 66.59 kB / 4.013 GB, free: 14.15 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.00281/18.54, allocations: 1.077 MB / 4.015 GB, free: 14 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.122e-06/18.54, allocations: 0 / 4.015 GB, free: 14 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01456/18.55, allocations: 2.705 MB / 4.017 GB, free: 12.23 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 10 (pipe1.mediums[1].p,pipe1.mediums[1].h,valveIncompressible.filter.x[1],valveIncompressible.filter.x[2],valveIncompressible1.filter.x[1],valveIncompressible1.filter.x[2],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,$cse10.phase,$cse10.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse25.phase,$cse25.region,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$cse29.region3boundary,$cse30.region3boundary,$cse31.phase,$cse31.region,$cse33.phase,$cse33.region,$cse35.region3boundary,$cse36.region3boundary,$cse37.phase,$cse37.region,$cse39.phase,$cse39.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 (151): * Single equations (assignments): 130 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 15 * 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,3 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.03527/18.59, allocations: 10.06 MB / 4.027 GB, free: 5.91 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01568/18.6, allocations: 5.016 MB / 4.032 GB, free: 2.91 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 8.466e-06/18.6, allocations: 0 / 4.032 GB, free: 2.91 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.00629/18.61, allocations: 2.105 MB / 4.034 GB, free: 1.793 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009238/18.62, allocations: 0.787 MB / 4.035 GB, free: 1.363 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02614/18.65, allocations: 6.738 MB / 4.041 GB, free: 12.55 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004058/18.65, allocations: 2.207 MB / 4.043 GB, free: 10.91 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.01103/18.66, allocations: 2.419 MB / 4.046 GB, free: 9.492 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003184/18.66, allocations: 1.208 MB / 4.047 GB, free: 9.371 MB / 0.5573 GB Notification: Performance of SimCode: time 2.003e-06/18.66, allocations: 0 / 4.047 GB, free: 9.371 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8634/19.53, allocations: 106 MB / 4.15 GB, free: 82.54 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002595/19.53, allocations: 188 kB / 4.151 GB, free: 82.35 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform dynamic: time 10.06/29.59, allocations: 11.88 kB / 4.151 GB, free: 82.34 MB / 0.5573 GB