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 3.174/3.174, allocations: 235.2 MB / 242.3 MB, free: 9.559 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.114e-05/3.139e-05, allocations: 0 / 299.5 MB, free: 204 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4371/0.4372, allocations: 54.86 MB / 354.4 MB, free: 15.18 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 10.86/11.3, allocations: 2.676 GB / 3.022 GB, free: 71.84 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004428/11.3, allocations: 76.66 kB / 3.022 GB, free: 71.8 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.578/17.88, allocations: 0.8957 GB / 3.918 GB, free: 35.42 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.955e-06/17.88, allocations: 0 / 3.918 GB, free: 35.42 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0003885/17.88, allocations: 58.67 kB / 3.918 GB, free: 35.41 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.02195/17.9, allocations: 3.962 MB / 3.922 GB, free: 33.64 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.963e-05/17.9, allocations: 7.281 kB / 3.922 GB, free: 33.64 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001519/17.9, allocations: 227.3 kB / 3.922 GB, free: 33.59 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01232/17.91, allocations: 0.8701 MB / 3.923 GB, free: 33.45 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01077/17.92, allocations: 2.098 MB / 3.925 GB, free: 33 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003505/17.92, allocations: 117.5 kB / 3.925 GB, free: 33 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001243/17.93, allocations: 123 kB / 3.925 GB, free: 32.99 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009606/17.94, allocations: 2.614 MB / 3.928 GB, free: 32.98 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01089/17.95, allocations: 2.841 MB / 3.931 GB, free: 32.44 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000116/17.95, allocations: 11.5 kB / 3.931 GB, free: 32.44 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005542/17.95, allocations: 6.312 kB / 3.931 GB, free: 32.44 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004101/17.95, allocations: 162.7 kB / 3.931 GB, free: 32.43 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.4833/18.43, allocations: 109.6 MB / 4.038 GB, free: 22.73 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006122/18.44, allocations: 2.09 MB / 4.04 GB, free: 21.4 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003212/18.44, allocations: 1.057 MB / 4.041 GB, free: 20.84 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06791/18.51, allocations: 17.34 MB / 4.058 GB, free: 3.961 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004463/18.51, allocations: 1.234 MB / 4.059 GB, free: 3.277 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=163): time 6.161e-06/18.51, allocations: 0 / 4.059 GB, free: 3.277 MB / 0.5573 GB Notification: Performance of matching and sorting (n=179): time 0.6735/19.19, allocations: 9.822 MB / 4.069 GB, free: 82.07 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001598/19.19, allocations: 362.8 kB / 4.069 GB, free: 81.67 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003585/19.19, allocations: 1.084 MB / 4.07 GB, free: 81.5 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0007742/19.19, allocations: 30.72 kB / 4.07 GB, free: 81.47 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.001647/19.19, allocations: 1.021 MB / 4.071 GB, free: 81.12 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.001437/19.19, allocations: 0.5781 MB / 4.072 GB, free: 80.82 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003142/19.19, allocations: 1.406 kB / 4.072 GB, free: 80.82 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0002507/19.19, allocations: 388.9 kB / 4.072 GB, free: 80.52 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003313/19.2, allocations: 1.004 MB / 4.073 GB, free: 80.51 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003708/19.2, allocations: 1.474 MB / 4.075 GB, free: 80.02 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01835/19.22, allocations: 1.95 MB / 4.076 GB, free: 79.99 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.922e-05/19.22, allocations: 6.047 kB / 4.076 GB, free: 79.99 MB / 0.5573 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.02477/19.24, allocations: 3.602 MB / 4.08 GB, free: 79.79 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.00119/19.25, allocations: 4.949 MB / 4.085 GB, free: 74.75 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.161e-05/19.25, allocations: 11.44 kB / 4.085 GB, free: 74.75 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001213/19.25, allocations: 221.4 kB / 4.085 GB, free: 74.71 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005544/19.25, allocations: 0.5307 MB / 4.086 GB, free: 74.71 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002278/19.26, allocations: 2.455 MB / 4.088 GB, free: 72.64 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005895/19.26, allocations: 306.5 kB / 4.088 GB, free: 72.62 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008978/19.26, allocations: 112.6 kB / 4.088 GB, free: 72.62 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.778e-05/19.26, allocations: 3.938 kB / 4.088 GB, free: 72.62 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02208/19.28, allocations: 3.166 MB / 4.091 GB, free: 72.55 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.025e-05/19.28, allocations: 12.84 kB / 4.091 GB, free: 72.55 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001074/19.29, allocations: 224.8 kB / 4.092 GB, free: 72.51 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005199/19.29, allocations: 0.5204 MB / 4.092 GB, free: 72.51 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002247/19.29, allocations: 2.452 MB / 4.095 GB, free: 70.44 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005204/19.3, allocations: 273.7 kB / 4.095 GB, free: 70.43 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007818/19.3, allocations: 105.3 kB / 4.095 GB, free: 70.43 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.001153/19.3, allocations: 248.5 kB / 4.095 GB, free: 70.25 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008808/19.3, allocations: 193.3 kB / 4.095 GB, free: 70.16 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03757/19.34, allocations: 6.953 MB / 4.102 GB, free: 69.7 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001211/19.34, allocations: 76.5 kB / 4.102 GB, free: 69.7 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.682e-05/19.34, allocations: 2.125 kB / 4.102 GB, free: 69.7 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02834/19.37, allocations: 6.043 MB / 4.108 GB, free: 68.95 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0442/19.41, allocations: 11.05 MB / 4.119 GB, free: 67.61 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.074e-05/19.41, allocations: 6.344 kB / 4.119 GB, free: 67.61 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003929/19.42, allocations: 389.3 kB / 4.119 GB, free: 67.61 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001763/19.42, allocations: 329.1 kB / 4.12 GB, free: 67.57 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005948/19.42, allocations: 48.89 kB / 4.12 GB, free: 67.57 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002251/19.42, allocations: 2.632 MB / 4.122 GB, free: 65.48 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.624e-05/19.42, allocations: 13.78 kB / 4.122 GB, free: 65.48 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03202/19.45, allocations: 7.5 MB / 4.13 GB, free: 64.24 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002819/19.46, allocations: 0.7013 MB / 4.13 GB, free: 63.95 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001104/19.46, allocations: 27.27 kB / 4.13 GB, free: 63.95 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004705/19.46, allocations: 175.6 kB / 4.13 GB, free: 63.93 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008497/19.46, allocations: 168 kB / 4.131 GB, free: 63.92 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003791/19.46, allocations: 80.38 kB / 4.131 GB, free: 63.92 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.002699/19.47, allocations: 0.9908 MB / 4.132 GB, free: 63.81 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.272e-06/19.47, allocations: 1.969 kB / 4.132 GB, free: 63.81 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01565/19.48, allocations: 2.602 MB / 4.134 GB, free: 63.7 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.05159/19.53, allocations: 12.65 MB / 4.147 GB, free: 60.11 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.01503/19.55, allocations: 4.766 MB / 4.151 GB, free: 59.79 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.458e-05/19.55, allocations: 1.625 kB / 4.151 GB, free: 59.79 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.006843/19.55, allocations: 2.386 MB / 4.154 GB, free: 59.66 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01022/19.56, allocations: 0.8446 MB / 4.154 GB, free: 59.64 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02553/19.59, allocations: 6.905 MB / 4.161 GB, free: 58.19 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003247/19.59, allocations: 2.204 MB / 4.163 GB, free: 57.42 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.01084/19.6, allocations: 2.585 MB / 4.166 GB, free: 57.37 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003545/19.61, allocations: 1.243 MB / 4.167 GB, free: 57.36 MB / 0.5573 GB Notification: Performance of SimCode: time 1.553e-06/19.61, allocations: 0 / 4.167 GB, free: 57.36 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8959/20.5, allocations: 102.7 MB / 4.267 GB, free: 72.32 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003327/20.5, allocations: 196.1 kB / 4.267 GB, free: 72.13 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform dynamic: time 9.895/30.4, allocations: 1.125 kB / 4.267 GB, free: 72.13 MB / 0.5573 GB