Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes14",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(ModelicaTest): time 2.491/2.491, allocations: 235.1 MB / 242.3 MB, free: 9.582 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.976e-05/2.973e-05, allocations: 8 kB / 299.6 MB, free: 208 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3683/0.3683, allocations: 54.85 MB / 354.4 MB, free: 15.29 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.275/8.644, allocations: 2.676 GB / 3.022 GB, free: 72.91 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002785/8.644, allocations: 77.58 kB / 3.022 GB, free: 72.88 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.27/13.91, allocations: 0.8944 GB / 3.917 GB, free: 36.45 MB / 0.5105 GB Notification: Performance of FrontEnd: time 3.467e-06/13.91, allocations: 3.234 kB / 3.917 GB, free: 36.45 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0002912/13.91, allocations: 65.11 kB / 3.917 GB, free: 36.43 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.01917/13.93, allocations: 3.963 MB / 3.921 GB, free: 34.65 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.44e-05/13.93, allocations: 7.719 kB / 3.921 GB, free: 34.65 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01054/13.94, allocations: 0.8756 MB / 3.922 GB, free: 34.51 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009378/13.95, allocations: 2.093 MB / 3.924 GB, free: 34.07 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002617/13.95, allocations: 99.22 kB / 3.924 GB, free: 34.07 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009947/13.95, allocations: 124.3 kB / 3.924 GB, free: 34.06 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008748/13.96, allocations: 2.617 MB / 3.926 GB, free: 34.05 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008798/13.97, allocations: 2.844 MB / 3.929 GB, free: 33.5 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.544e-05/13.97, allocations: 7.281 kB / 3.929 GB, free: 33.5 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004388/13.97, allocations: 12.23 kB / 3.929 GB, free: 33.5 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003661/13.97, allocations: 157.7 kB / 3.929 GB, free: 33.5 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.5076/14.48, allocations: 109.6 MB / 4.036 GB, free: 23.84 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005487/14.49, allocations: 2.097 MB / 4.038 GB, free: 23.09 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002797/14.49, allocations: 1.054 MB / 4.04 GB, free: 22.53 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05962/14.55, allocations: 17.34 MB / 4.056 GB, free: 5.645 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003199/14.55, allocations: 1.221 MB / 4.058 GB, free: 4.969 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=163): time 5.992e-06/14.55, allocations: 0 / 4.058 GB, free: 4.969 MB / 0.5573 GB Notification: Performance of matching and sorting (n=179): time 0.5094/15.06, allocations: 9.444 MB / 4.067 GB, free: 83.09 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001388/15.06, allocations: 363.8 kB / 4.067 GB, free: 82.68 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002788/15.06, allocations: 1.083 MB / 4.068 GB, free: 82.51 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0006284/15.07, allocations: 28.08 kB / 4.068 GB, free: 82.48 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.001333/15.07, allocations: 1.023 MB / 4.069 GB, free: 82.13 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.001084/15.07, allocations: 0.5773 MB / 4.07 GB, free: 81.83 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002393/15.07, allocations: 1.156 kB / 4.07 GB, free: 81.83 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001916/15.07, allocations: 389.9 kB / 4.07 GB, free: 81.53 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002718/15.07, allocations: 1 MB / 4.071 GB, free: 81.52 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002955/15.07, allocations: 1.485 MB / 4.073 GB, free: 81.03 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01596/15.09, allocations: 1.947 MB / 4.075 GB, free: 81.01 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.109e-05/15.09, allocations: 2.656 kB / 4.075 GB, free: 81.01 MB / 0.5573 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.02194/15.11, allocations: 3.612 MB / 4.078 GB, free: 80.8 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001163/15.11, allocations: 4.951 MB / 4.083 GB, free: 75.76 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.057e-05/15.11, allocations: 11.28 kB / 4.083 GB, free: 75.76 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001095/15.11, allocations: 221.6 kB / 4.083 GB, free: 75.73 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005003/15.12, allocations: 0.5275 MB / 4.084 GB, free: 75.73 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002037/15.12, allocations: 2.464 MB / 4.086 GB, free: 73.65 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005373/15.13, allocations: 304.9 kB / 4.086 GB, free: 73.64 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005019/15.13, allocations: 108.5 kB / 4.086 GB, free: 73.64 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.406e-05/15.13, allocations: 3.656 kB / 4.086 GB, free: 73.64 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01875/15.15, allocations: 3.164 MB / 4.09 GB, free: 73.56 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.431e-05/15.15, allocations: 13.28 kB / 4.09 GB, free: 73.56 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009412/15.15, allocations: 218.4 kB / 4.09 GB, free: 73.53 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004493/15.15, allocations: 0.5237 MB / 4.09 GB, free: 73.53 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001925/15.15, allocations: 2.458 MB / 4.093 GB, free: 71.45 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00487/15.16, allocations: 277.3 kB / 4.093 GB, free: 71.44 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000443/15.16, allocations: 102.8 kB / 4.093 GB, free: 71.44 MB / 0.5573 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 (valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.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,junctionIdeal.medium.phase,source.medium.phase,sink.medium.phase,pipe3.state_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_b.phase,pipe1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (254): * Single equations (assignments): 248 * 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.0009221/15.16, allocations: 248.8 kB / 4.093 GB, free: 71.27 MB / 0.5573 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01897/15.18, allocations: 3.04 MB / 4.096 GB, free: 71.07 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000687/15.18, allocations: 202.6 kB / 4.096 GB, free: 70.97 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02796/15.21, allocations: 6.945 MB / 4.103 GB, free: 70.51 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001004/15.21, allocations: 72.17 kB / 4.103 GB, free: 70.5 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.329e-05/15.21, allocations: 7.953 kB / 4.103 GB, free: 70.5 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02437/15.23, allocations: 6.042 MB / 4.109 GB, free: 69.76 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03898/15.27, allocations: 11.05 MB / 4.12 GB, free: 68.44 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.626e-05/15.27, allocations: 4.969 kB / 4.12 GB, free: 68.44 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003529/15.27, allocations: 389.5 kB / 4.12 GB, free: 68.44 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001568/15.28, allocations: 332.3 kB / 4.121 GB, free: 68.4 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003891/15.28, allocations: 46.97 kB / 4.121 GB, free: 68.4 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002012/15.28, allocations: 2.634 MB / 4.123 GB, free: 66.32 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-05/15.28, allocations: 12.67 kB / 4.123 GB, free: 66.31 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02734/15.31, allocations: 7.507 MB / 4.131 GB, free: 65.07 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002472/15.31, allocations: 0.6953 MB / 4.131 GB, free: 64.8 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007718/15.31, allocations: 27.69 kB / 4.131 GB, free: 64.8 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0031/15.31, allocations: 178.9 kB / 4.132 GB, free: 64.79 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004881/15.31, allocations: 157.5 kB / 4.132 GB, free: 64.78 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002584/15.31, allocations: 85.12 kB / 4.132 GB, free: 64.78 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.002098/15.32, allocations: 0.9897 MB / 4.133 GB, free: 64.67 MB / 0.5573 GB Notification: Performance of sort global known variables: time 5.51e-07/15.32, allocations: 1.938 kB / 4.133 GB, free: 64.67 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01295/15.33, allocations: 2.605 MB / 4.135 GB, free: 64.56 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * 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,junctionIdeal.medium.p,junctionIdeal.medium.h) * Number of discrete variables: 46 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse28.region3boundary,$cse29.region3boundary,$cse30.phase,$cse30.region,$cse32.region3boundary,$cse33.region3boundary,$cse34.phase,$cse34.region,$cse36.phase,$cse36.region,$cse37.region3boundary,$cse38.region3boundary,$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,junctionIdeal.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 (196): * Single equations (assignments): 171 * 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.04237/15.37, allocations: 12.64 MB / 4.148 GB, free: 60.95 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.0125/15.38, allocations: 4.77 MB / 4.152 GB, free: 60.64 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.237e-05/15.38, allocations: 3.281 kB / 4.152 GB, free: 60.64 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.005892/15.39, allocations: 2.388 MB / 4.155 GB, free: 60.51 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008356/15.4, allocations: 0.8448 MB / 4.155 GB, free: 60.48 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02125/15.42, allocations: 6.891 MB / 4.162 GB, free: 59.04 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002374/15.42, allocations: 2.204 MB / 4.164 GB, free: 58.27 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.00926/15.43, allocations: 2.598 MB / 4.167 GB, free: 58.22 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003356/15.43, allocations: 1.238 MB / 4.168 GB, free: 58.21 MB / 0.5573 GB Notification: Performance of SimCode: time 2.805e-06/15.43, allocations: 0 / 4.168 GB, free: 58.21 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7217/16.16, allocations: 100.6 MB / 4.266 GB, free: 72.82 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003494/16.16, allocations: 190.7 kB / 4.266 GB, free: 72.63 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform dynamic: time 7.862/24.02, allocations: 0 / 4.266 GB, free: 72.63 MB / 0.5573 GB