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 2.425/2.425, allocations: 235.2 MB / 242.3 MB, free: 9.574 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.582e-05/2.586e-05, allocations: 4 kB / 299.6 MB, free: 208 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3703/0.3704, allocations: 54.85 MB / 354.4 MB, free: 15.19 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.328/8.699, allocations: 2.659 GB / 3.006 GB, free: 88.42 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002588/8.699, allocations: 74.09 kB / 3.006 GB, free: 88.39 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.378/14.08, allocations: 0.8909 GB / 3.897 GB, free: 34.28 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.545e-06/14.08, allocations: 1.312 kB / 3.897 GB, free: 34.28 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0003002/14.08, allocations: 72.41 kB / 3.897 GB, free: 34.27 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.01889/14.1, allocations: 4.018 MB / 3.901 GB, free: 32.5 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.971e-05/14.1, allocations: 12.62 kB / 3.901 GB, free: 32.5 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009601/14.11, allocations: 0.8708 MB / 3.901 GB, free: 32.36 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00876/14.11, allocations: 2.082 MB / 3.903 GB, free: 31.91 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002035/14.12, allocations: 95.91 kB / 3.903 GB, free: 31.91 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005699/14.12, allocations: 115.3 kB / 3.904 GB, free: 31.91 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007202/14.12, allocations: 2.662 MB / 3.906 GB, free: 31.89 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008591/14.13, allocations: 2.867 MB / 3.909 GB, free: 31.38 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.312e-05/14.13, allocations: 13.86 kB / 3.909 GB, free: 31.38 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004075/14.13, allocations: 7.031 kB / 3.909 GB, free: 31.38 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000334/14.13, allocations: 167.9 kB / 3.909 GB, free: 31.38 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.4329/14.57, allocations: 109.6 MB / 4.016 GB, free: 21.94 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005025/14.57, allocations: 2.067 MB / 4.018 GB, free: 21.34 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002531/14.57, allocations: 0.9639 MB / 4.019 GB, free: 21.32 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06094/14.63, allocations: 17.53 MB / 4.036 GB, free: 9.758 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003115/14.64, allocations: 1.177 MB / 4.037 GB, free: 9.586 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=153): time 4.739e-06/14.64, allocations: 0 / 4.037 GB, free: 9.586 MB / 0.5573 GB Notification: Performance of matching and sorting (n=169): time 0.03652/14.67, allocations: 7.771 MB / 4.045 GB, free: 4.633 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004079/14.67, allocations: 359 kB / 4.045 GB, free: 20.21 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002624/14.68, allocations: 1.136 MB / 4.046 GB, free: 19.48 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0005643/14.68, allocations: 29.7 kB / 4.046 GB, free: 19.45 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.001202/14.68, allocations: 1.041 MB / 4.047 GB, free: 18.83 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.001011/14.68, allocations: 0.5524 MB / 4.048 GB, free: 18.39 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002602/14.68, allocations: 3.938 kB / 4.048 GB, free: 18.39 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0002968/14.68, allocations: 390.7 kB / 4.048 GB, free: 18.06 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002641/14.68, allocations: 0.9909 MB / 4.049 GB, free: 17.55 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003142/14.69, allocations: 1.44 MB / 4.051 GB, free: 16.48 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02195/14.71, allocations: 2.786 MB / 4.053 GB, free: 14.95 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.422e-05/14.71, allocations: 4 kB / 4.054 GB, free: 14.95 MB / 0.573 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.02913/14.74, allocations: 4.437 MB / 4.058 GB, free: 12.35 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.002297/14.74, allocations: 4.951 MB / 4.063 GB, free: 7.223 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.696e-05/14.74, allocations: 16 kB / 4.063 GB, free: 7.207 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001168/14.74, allocations: 213.9 kB / 4.063 GB, free: 7.074 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005017/14.75, allocations: 0.5165 MB / 4.063 GB, free: 6.688 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002812/14.75, allocations: 2.454 MB / 4.066 GB, free: 4.379 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004942/14.75, allocations: 273.5 kB / 4.066 GB, free: 4.176 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007664/14.75, allocations: 106 kB / 4.066 GB, free: 4.102 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/14.75, allocations: 7.469 kB / 4.066 GB, free: 4.098 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02585/14.78, allocations: 3.995 MB / 4.07 GB, free: 1.848 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.707e-05/14.78, allocations: 12 kB / 4.07 GB, free: 1.836 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009722/14.78, allocations: 223.2 kB / 4.07 GB, free: 1.695 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004609/14.79, allocations: 0.5114 MB / 4.071 GB, free: 1.312 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4561/15.24, allocations: 2.451 MB / 4.073 GB, free: 93.93 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004625/15.25, allocations: 244.7 kB / 4.073 GB, free: 93.93 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007007/15.25, allocations: 105 kB / 4.074 GB, free: 93.93 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.0009542/15.25, allocations: 233.3 kB / 4.074 GB, free: 93.76 MB / 0.573 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01156/15.26, allocations: 2.452 MB / 4.076 GB, free: 93.69 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009424/15.26, allocations: 188.9 kB / 4.076 GB, free: 93.69 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01654/15.28, allocations: 6.291 MB / 4.082 GB, free: 93.32 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001005/15.28, allocations: 72.55 kB / 4.083 GB, free: 93.32 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.354e-05/15.28, allocations: 6.844 kB / 4.083 GB, free: 93.32 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01238/15.29, allocations: 5.254 MB / 4.088 GB, free: 92.59 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02305/15.31, allocations: 8.989 MB / 4.096 GB, free: 91.9 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.297e-05/15.31, allocations: 0 / 4.096 GB, free: 91.9 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003521/15.32, allocations: 363.4 kB / 4.097 GB, free: 91.9 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001595/15.32, allocations: 321.4 kB / 4.097 GB, free: 91.87 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005209/15.32, allocations: 39.06 kB / 4.097 GB, free: 91.87 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002089/15.32, allocations: 2.634 MB / 4.1 GB, free: 89.79 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.105e-06/15.32, allocations: 3.906 kB / 4.1 GB, free: 89.79 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01537/15.34, allocations: 6.238 MB / 4.106 GB, free: 89.2 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002358/15.34, allocations: 0.6959 MB / 4.106 GB, free: 88.96 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008249/15.34, allocations: 16.97 kB / 4.106 GB, free: 88.96 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003289/15.34, allocations: 179.8 kB / 4.107 GB, free: 88.95 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005526/15.34, allocations: 140.3 kB / 4.107 GB, free: 88.95 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003086/15.34, allocations: 70.06 kB / 4.107 GB, free: 88.95 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.002544/15.35, allocations: 1.041 MB / 4.108 GB, free: 88.84 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.744e-06/15.35, allocations: 2.125 kB / 4.108 GB, free: 88.84 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01414/15.36, allocations: 2.705 MB / 4.111 GB, free: 88.84 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.03257/15.39, allocations: 10.07 MB / 4.12 GB, free: 87.28 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.01287/15.41, allocations: 4.758 MB / 4.125 GB, free: 86.98 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.002e-05/15.41, allocations: 0 / 4.125 GB, free: 86.98 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.005041/15.41, allocations: 2.145 MB / 4.127 GB, free: 86.84 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00882/15.42, allocations: 0.8539 MB / 4.128 GB, free: 86.83 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02225/15.44, allocations: 6.766 MB / 4.135 GB, free: 85.55 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002454/15.45, allocations: 2.195 MB / 4.137 GB, free: 84.78 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.009451/15.45, allocations: 2.569 MB / 4.139 GB, free: 84.73 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003074/15.46, allocations: 1.224 MB / 4.14 GB, free: 84.72 MB / 0.573 GB Notification: Performance of SimCode: time 2.574e-06/15.46, allocations: 3.344 kB / 4.14 GB, free: 84.72 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2621/15.72, allocations: 101.4 MB / 4.239 GB, free: 61.73 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003129/15.72, allocations: 196.5 kB / 4.24 GB, free: 61.52 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform dynamic: time 7.971/23.69, allocations: 0 / 4.24 GB, free: 61.52 MB / 0.573 GB