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 3.147/3.147, allocations: 235.2 MB / 242.3 MB, free: 9.555 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.263e-05/3.272e-05, allocations: 4 kB / 299.6 MB, free: 196 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4593/0.4594, allocations: 54.85 MB / 354.4 MB, free: 15.16 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 10.65/11.11, allocations: 2.656 GB / 3.002 GB, free: 91.96 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003603/11.11, allocations: 78.7 kB / 3.002 GB, free: 91.92 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.281/17.39, allocations: 0.8565 GB / 3.858 GB, free: 34.89 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.986e-06/17.39, allocations: 1.031 kB / 3.858 GB, free: 34.89 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.000409/17.39, allocations: 59.53 kB / 3.858 GB, free: 34.89 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.02169/17.42, allocations: 3.822 MB / 3.862 GB, free: 33.34 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.99e-05/17.42, allocations: 11.53 kB / 3.862 GB, free: 33.34 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001345/17.42, allocations: 198 kB / 3.862 GB, free: 33.29 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01114/17.43, allocations: 0.7817 MB / 3.863 GB, free: 33.16 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.011/17.44, allocations: 1.944 MB / 3.865 GB, free: 32.73 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003446/17.44, allocations: 106.7 kB / 3.865 GB, free: 32.73 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001185/17.44, allocations: 106.8 kB / 3.865 GB, free: 32.72 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009/17.45, allocations: 2.331 MB / 3.868 GB, free: 32.71 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01067/17.46, allocations: 2.564 MB / 3.87 GB, free: 32.26 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001271/17.46, allocations: 11.28 kB / 3.87 GB, free: 32.26 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008958/17.46, allocations: 7.562 kB / 3.87 GB, free: 32.26 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003805/17.46, allocations: 144.4 kB / 3.87 GB, free: 32.26 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.5308/17.99, allocations: 108.3 MB / 3.976 GB, free: 24.21 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004539/18, allocations: 1.406 MB / 3.977 GB, free: 24.17 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002543/18, allocations: 0.8747 MB / 3.978 GB, free: 24.16 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07402/18.07, allocations: 17.53 MB / 3.995 GB, free: 12.61 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003171/18.08, allocations: 1.1 MB / 3.996 GB, free: 12.45 MB / 0.5573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002057/18.08, allocations: 146.6 kB / 3.996 GB, free: 12.39 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=136): time 6.873e-06/18.08, allocations: 0 / 3.996 GB, free: 12.39 MB / 0.5573 GB Notification: Performance of matching and sorting (n=148): time 0.03713/18.12, allocations: 7.197 MB / 4.003 GB, free: 10.77 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002645/18.12, allocations: 353.5 kB / 4.004 GB, free: 10.36 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002729/18.12, allocations: 1.066 MB / 4.005 GB, free: 10.2 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0005251/18.12, allocations: 29.3 kB / 4.005 GB, free: 10.16 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.001169/18.12, allocations: 0.9474 MB / 4.006 GB, free: 9.734 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008877/18.12, allocations: 486.2 kB / 4.006 GB, free: 9.422 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002558/18.12, allocations: 7.406 kB / 4.006 GB, free: 9.418 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0002576/18.12, allocations: 379.3 kB / 4.007 GB, free: 9.113 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002878/18.13, allocations: 0.8946 MB / 4.008 GB, free: 9.113 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003511/18.13, allocations: 1.288 MB / 4.009 GB, free: 8.668 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02633/18.16, allocations: 2.668 MB / 4.011 GB, free: 8.602 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.669e-05/18.16, allocations: 3.938 kB / 4.011 GB, free: 8.602 MB / 0.5573 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.03384/18.19, allocations: 4.328 MB / 4.016 GB, free: 8.352 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.002391/18.19, allocations: 4.306 MB / 4.02 GB, free: 19.91 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.397e-05/18.19, allocations: 24.64 kB / 4.02 GB, free: 19.9 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005223/18.2, allocations: 0.5179 MB / 4.02 GB, free: 19.86 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004607/18.2, allocations: 444.5 kB / 4.021 GB, free: 19.85 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005068/18.21, allocations: 2.933 MB / 4.024 GB, free: 17.77 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00497/18.21, allocations: 236.1 kB / 4.024 GB, free: 17.73 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006559/18.21, allocations: 92.41 kB / 4.024 GB, free: 17.73 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.639e-05/18.21, allocations: 3.875 kB / 4.024 GB, free: 17.73 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02877/18.24, allocations: 3.786 MB / 4.028 GB, free: 17.62 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.37e-05/18.24, allocations: 13.5 kB / 4.028 GB, free: 17.62 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008546/18.24, allocations: 178.7 kB / 4.028 GB, free: 17.59 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004693/18.25, allocations: 458.1 kB / 4.028 GB, free: 17.59 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002287/18.25, allocations: 1.898 MB / 4.03 GB, free: 16.03 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004368/18.26, allocations: 214.3 kB / 4.03 GB, free: 16 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006329/18.26, allocations: 92.58 kB / 4.03 GB, free: 16 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.0009603/18.26, allocations: 231.3 kB / 4.031 GB, free: 15.81 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008195/18.26, allocations: 176.5 kB / 4.031 GB, free: 15.72 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0178/18.28, allocations: 6.299 MB / 4.037 GB, free: 15.13 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001169/18.28, allocations: 68.62 kB / 4.037 GB, free: 15.13 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.448e-05/18.28, allocations: 3.953 kB / 4.037 GB, free: 15.13 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01406/18.29, allocations: 5.294 MB / 4.042 GB, free: 14.27 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02448/18.31, allocations: 8.479 MB / 4.05 GB, free: 10.01 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.103e-05/18.31, allocations: 0 / 4.05 GB, free: 10.01 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003186/18.32, allocations: 291.6 kB / 4.051 GB, free: 9.801 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005633/18.32, allocations: 1.496 MB / 4.052 GB, free: 8.812 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005522/18.32, allocations: 41.3 kB / 4.052 GB, free: 8.789 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006338/18.33, allocations: 3.698 MB / 4.056 GB, free: 5.898 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-05/18.33, allocations: 6.844 kB / 4.056 GB, free: 5.895 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02204/18.35, allocations: 6.37 MB / 4.062 GB, free: 2.316 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003858/18.36, allocations: 0.6555 MB / 4.063 GB, free: 1.844 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001632/18.36, allocations: 21.17 kB / 4.063 GB, free: 1.832 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005475/18.36, allocations: 141 kB / 4.063 GB, free: 1.73 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001024/18.36, allocations: 121.4 kB / 4.063 GB, free: 1.672 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006153/18.37, allocations: 62.3 kB / 4.063 GB, free: 1.629 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.004753/18.37, allocations: 0.9911 MB / 4.064 GB, free: 1.043 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.713e-06/18.37, allocations: 0 / 4.064 GB, free: 1.043 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.5634/18.93, allocations: 2.578 MB / 4.067 GB, free: 95.36 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.03859/18.97, allocations: 9.623 MB / 4.076 GB, free: 94.1 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.01423/18.99, allocations: 4.306 MB / 4.08 GB, free: 93.79 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.177e-05/18.99, allocations: 6.531 kB / 4.08 GB, free: 93.79 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.006282/18.99, allocations: 1.991 MB / 4.082 GB, free: 93.65 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01061/19, allocations: 0.7993 MB / 4.083 GB, free: 93.64 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02594/19.03, allocations: 6.262 MB / 4.089 GB, free: 92.55 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004127/19.03, allocations: 2.094 MB / 4.091 GB, free: 91.8 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.01447/19.05, allocations: 2.389 MB / 4.093 GB, free: 91.75 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004304/19.05, allocations: 1.091 MB / 4.094 GB, free: 91.75 MB / 0.573 GB Notification: Performance of SimCode: time 3.627e-06/19.05, allocations: 3.781 kB / 4.094 GB, free: 91.75 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3643/19.42, allocations: 98.97 MB / 4.191 GB, free: 86.54 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002769/19.42, allocations: 189.7 kB / 4.191 GB, free: 86.34 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform dynamic: time 9.278/28.7, allocations: 0 / 4.191 GB, free: 86.34 MB / 0.573 GB