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 2.487/2.487, allocations: 235.2 MB / 242.3 MB, free: 15.8 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.656e-05/2.647e-05, allocations: 4 kB / 299.6 MB, free: 6.453 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3952/0.3953, allocations: 54.86 MB / 354.4 MB, free: 14.05 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.318/8.713, allocations: 2.655 GB / 3.001 GB, free: 120.2 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002769/8.713, allocations: 83.44 kB / 3.001 GB, free: 120.1 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.63/13.34, allocations: 0.7948 GB / 3.796 GB, free: 32.36 MB / 0.4948 GB Notification: Performance of FrontEnd: time 3.206e-06/13.34, allocations: 0 / 3.796 GB, free: 32.36 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0003081/13.34, allocations: 73.42 kB / 3.796 GB, free: 32.34 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.02046/13.36, allocations: 3.942 MB / 3.8 GB, free: 30.36 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.089e-05/13.36, allocations: 10.41 kB / 3.8 GB, free: 30.36 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009215/13.37, allocations: 0.8393 MB / 3.801 GB, free: 30.21 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008921/13.38, allocations: 2.174 MB / 3.803 GB, free: 29.69 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002372/13.38, allocations: 90.75 kB / 3.803 GB, free: 29.69 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000946/13.38, allocations: 116.7 kB / 3.803 GB, free: 29.68 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008518/13.39, allocations: 2.88 MB / 3.806 GB, free: 29.67 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008426/13.4, allocations: 2.875 MB / 3.809 GB, free: 29.11 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.848e-05/13.4, allocations: 3.875 kB / 3.809 GB, free: 29.11 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003927/13.4, allocations: 6.469 kB / 3.809 GB, free: 29.11 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003395/13.4, allocations: 162.6 kB / 3.809 GB, free: 29.1 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 0.859/14.26, allocations: 109.3 MB / 3.916 GB, free: 28.41 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003877/14.27, allocations: 1.584 MB / 3.917 GB, free: 28.38 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002124/14.27, allocations: 0.9851 MB / 3.918 GB, free: 28.37 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05612/14.32, allocations: 17.52 MB / 3.935 GB, free: 16.84 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002941/14.33, allocations: 1.225 MB / 3.937 GB, free: 16.69 MB / 0.5105 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001729/14.33, allocations: 163.1 kB / 3.937 GB, free: 16.68 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=152): time 5.56e-06/14.33, allocations: 0 / 3.937 GB, free: 16.68 MB / 0.5105 GB Notification: Performance of matching and sorting (n=164): time 0.03298/14.36, allocations: 7.914 MB / 3.944 GB, free: 15.09 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001656/14.36, allocations: 0.5089 MB / 3.945 GB, free: 14.5 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002781/14.36, allocations: 1.192 MB / 3.946 GB, free: 14.33 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0005826/14.36, allocations: 29.36 kB / 3.946 GB, free: 14.3 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0012/14.37, allocations: 1.034 MB / 3.947 GB, free: 13.95 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001035/14.37, allocations: 0.537 MB / 3.948 GB, free: 13.67 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002878/14.37, allocations: 3.469 kB / 3.948 GB, free: 13.67 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002306/14.37, allocations: 388.1 kB / 3.948 GB, free: 13.37 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002922/14.37, allocations: 1.037 MB / 3.949 GB, free: 13.36 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003505/14.37, allocations: 1.496 MB / 3.951 GB, free: 12.85 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02192/14.4, allocations: 2.854 MB / 3.953 GB, free: 12.78 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.032e-05/14.4, allocations: 3.969 kB / 3.953 GB, free: 12.78 MB / 0.5105 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.02848/14.42, allocations: 4.701 MB / 3.958 GB, free: 12.53 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.002249/14.43, allocations: 4.525 MB / 3.962 GB, free: 23.89 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.898e-05/14.43, allocations: 18.95 kB / 3.962 GB, free: 23.89 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007054/14.43, allocations: 0.804 MB / 3.963 GB, free: 23.84 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004326/14.44, allocations: 465.3 kB / 3.964 GB, free: 23.84 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005661/14.44, allocations: 3.33 MB / 3.967 GB, free: 21.74 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004562/14.45, allocations: 233.6 kB / 3.967 GB, free: 21.72 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006965/14.45, allocations: 110.3 kB / 3.967 GB, free: 21.71 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.533e-05/14.45, allocations: 3.281 kB / 3.967 GB, free: 21.71 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0269/14.48, allocations: 4.201 MB / 3.971 GB, free: 21.59 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.578e-05/14.48, allocations: 16.61 kB / 3.971 GB, free: 21.59 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001941/14.48, allocations: 341.3 kB / 3.972 GB, free: 21.55 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004483/14.48, allocations: 0.4895 MB / 3.972 GB, free: 21.55 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006317/14.49, allocations: 3.99 MB / 3.976 GB, free: 18.77 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00406/14.49, allocations: 215 kB / 3.976 GB, free: 18.74 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004235/14.49, allocations: 101.2 kB / 3.976 GB, free: 18.74 MB / 0.5261 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.0009117/14.49, allocations: 230.3 kB / 3.976 GB, free: 18.57 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01037/14.51, allocations: 2.641 MB / 3.979 GB, free: 18.37 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008336/14.51, allocations: 194.9 kB / 3.979 GB, free: 18.27 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01607/14.52, allocations: 6.701 MB / 3.986 GB, free: 17.73 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.819e-05/14.52, allocations: 66.09 kB / 3.986 GB, free: 17.73 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.197e-06/14.52, allocations: 7.875 kB / 3.986 GB, free: 17.73 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01255/14.54, allocations: 5.656 MB / 3.991 GB, free: 16.99 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02163/14.56, allocations: 9.035 MB / 4 GB, free: 16.38 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.196e-05/14.56, allocations: 0 / 4 GB, free: 16.38 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0028/14.56, allocations: 299 kB / 4.001 GB, free: 16.38 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006782/14.57, allocations: 2.344 MB / 4.003 GB, free: 16.27 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005236/14.57, allocations: 36.72 kB / 4.003 GB, free: 16.27 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006349/14.57, allocations: 4.433 MB / 4.007 GB, free: 14.15 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.518e-06/14.57, allocations: 0 / 4.007 GB, free: 14.15 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01657/14.59, allocations: 7.117 MB / 4.014 GB, free: 13.48 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002342/14.59, allocations: 0.6933 MB / 4.015 GB, free: 13.18 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008066/14.59, allocations: 24.53 kB / 4.015 GB, free: 13.18 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003049/14.6, allocations: 153.5 kB / 4.015 GB, free: 13.16 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004793/14.6, allocations: 128.5 kB / 4.015 GB, free: 13.16 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002509/14.6, allocations: 62.75 kB / 4.015 GB, free: 13.16 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002429/14.6, allocations: 1.077 MB / 4.016 GB, free: 13.02 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.343e-06/14.6, allocations: 0 / 4.016 GB, free: 13.02 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01276/14.61, allocations: 2.704 MB / 4.019 GB, free: 12.89 MB / 0.5261 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.03631/14.65, allocations: 10.06 MB / 4.029 GB, free: 11.18 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01826/14.67, allocations: 5.01 MB / 4.034 GB, free: 9.805 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.22e-05/14.67, allocations: 4 kB / 4.034 GB, free: 9.801 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.007362/14.67, allocations: 2.113 MB / 4.036 GB, free: 8.688 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01118/14.69, allocations: 0.7804 MB / 4.036 GB, free: 8.262 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02771/14.71, allocations: 6.724 MB / 4.043 GB, free: 3.465 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00347/14.72, allocations: 2.21 MB / 4.045 GB, free: 1.824 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.0104/14.73, allocations: 2.419 MB / 4.047 GB, free: 412 kB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005104/14.73, allocations: 1.294 MB / 4.049 GB, free: 15.87 MB / 0.5417 GB Notification: Performance of SimCode: time 1.393e-06/14.73, allocations: 1.688 kB / 4.049 GB, free: 15.87 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7473/15.48, allocations: 103.5 MB / 4.15 GB, free: 64.77 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003018/15.48, allocations: 188.5 kB / 4.15 GB, free: 64.57 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform dynamic: time 7.743/23.22, allocations: 3.938 kB / 4.15 GB, free: 64.57 MB / 0.5417 GB