Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes18",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(ModelicaTest): time 2.482/2.482, allocations: 235.1 MB / 242.3 MB, free: 15.8 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.915e-05/2.914e-05, allocations: 0 / 299.6 MB, free: 6.449 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3911/0.3912, allocations: 54.87 MB / 354.4 MB, free: 14.16 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.163/8.555, allocations: 2.677 GB / 3.023 GB, free: 98.23 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002714/8.555, allocations: 79.89 kB / 3.023 GB, free: 98.2 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.881/14.44, allocations: 0.9989 GB / 4.022 GB, free: 29.68 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.374e-06/14.44, allocations: 4 kB / 4.022 GB, free: 29.68 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.000345/14.44, allocations: 71.69 kB / 4.022 GB, free: 29.67 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: 575 * Number of variables: 575 Notification: Performance of Generate backend data structure: time 0.02051/14.46, allocations: 4.248 MB / 4.026 GB, free: 27.38 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.223e-05/14.46, allocations: 10.28 kB / 4.026 GB, free: 27.38 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01122/14.47, allocations: 0.9329 MB / 4.027 GB, free: 27.14 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009698/14.48, allocations: 2.205 MB / 4.029 GB, free: 26.13 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002508/14.48, allocations: 100.5 kB / 4.029 GB, free: 26.11 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008894/14.48, allocations: 135 kB / 4.029 GB, free: 26.11 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008711/14.49, allocations: 2.797 MB / 4.032 GB, free: 25.13 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008907/14.5, allocations: 3.009 MB / 4.035 GB, free: 23.71 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.783e-05/14.5, allocations: 7.875 kB / 4.035 GB, free: 23.7 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004544/14.5, allocations: 11.91 kB / 4.035 GB, free: 23.7 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003713/14.5, allocations: 174.8 kB / 4.035 GB, free: 23.67 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.6499/15.15, allocations: 49.68 MB / 4.084 GB, free: 44.29 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006948/15.16, allocations: 2.332 MB / 4.086 GB, free: 43.7 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003593/15.16, allocations: 1.171 MB / 4.087 GB, free: 43.68 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05916/15.22, allocations: 17.2 MB / 4.104 GB, free: 32.99 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003925/15.22, allocations: 1.35 MB / 4.105 GB, free: 32.83 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=186): time 8.265e-06/15.22, allocations: 0 / 4.105 GB, free: 32.83 MB / 0.5261 GB Notification: Performance of matching and sorting (n=206): time 0.07142/15.29, allocations: 10.29 MB / 4.115 GB, free: 31.2 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001406/15.29, allocations: 366.3 kB / 4.116 GB, free: 30.79 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002663/15.3, allocations: 1.149 MB / 4.117 GB, free: 30.62 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0007307/15.3, allocations: 34.91 kB / 4.117 GB, free: 30.59 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001377/15.3, allocations: 1.072 MB / 4.118 GB, free: 30.23 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001326/15.3, allocations: 0.6646 MB / 4.119 GB, free: 29.88 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002991/15.3, allocations: 0 / 4.119 GB, free: 29.88 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002111/15.3, allocations: 400 kB / 4.119 GB, free: 29.58 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003098/15.3, allocations: 1.097 MB / 4.12 GB, free: 29.57 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003943/15.31, allocations: 1.636 MB / 4.122 GB, free: 29.02 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01727/15.32, allocations: 2.085 MB / 4.124 GB, free: 29 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.437e-05/15.32, allocations: 3.625 kB / 4.124 GB, free: 29 MB / 0.5261 GB Notification: Performance of matching and sorting (n=309) (initialization): time 0.02439/15.35, allocations: 3.976 MB / 4.128 GB, free: 28.78 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.001295/15.35, allocations: 5.592 MB / 4.133 GB, free: 23.09 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.47e-05/15.35, allocations: 11.38 kB / 4.133 GB, free: 23.09 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001625/15.35, allocations: 318.1 kB / 4.133 GB, free: 23.05 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005751/15.36, allocations: 0.6024 MB / 4.134 GB, free: 23.05 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002897/15.36, allocations: 3.14 MB / 4.137 GB, free: 20.46 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005937/15.37, allocations: 325.8 kB / 4.137 GB, free: 20.45 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006948/15.37, allocations: 124.9 kB / 4.137 GB, free: 20.45 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.629e-05/15.37, allocations: 3.531 kB / 4.137 GB, free: 20.45 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02153/15.39, allocations: 3.487 MB / 4.141 GB, free: 20.36 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.537e-05/15.39, allocations: 14.22 kB / 4.141 GB, free: 20.36 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001372/15.39, allocations: 317.6 kB / 4.141 GB, free: 20.32 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005606/15.4, allocations: 0.5885 MB / 4.142 GB, free: 20.32 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002858/15.4, allocations: 3.139 MB / 4.145 GB, free: 17.72 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005533/15.41, allocations: 301.2 kB / 4.145 GB, free: 17.71 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008574/15.41, allocations: 123.3 kB / 4.145 GB, free: 17.71 MB / 0.5261 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.junctionVolume.medium.u:DUMMY_DER(fixed = false ) "Specific internal energy of medium" type: Real junctionVolume.mb_flow:VARIABLE(unit = "kg/s" ) "Mass flows across boundaries" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * Number of states: 0 () * Number of discrete variables: 31 (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,junctionVolume.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 (287): * Single equations (assignments): 280 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,2 5,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.001076/15.41, allocations: 255.1 kB / 4.145 GB, free: 17.54 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02208/15.43, allocations: 3.374 MB / 4.149 GB, free: 17.31 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001182/15.43, allocations: 216.9 kB / 4.149 GB, free: 17.2 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03287/15.46, allocations: 8.005 MB / 4.157 GB, free: 16.54 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001169/15.46, allocations: 82.95 kB / 4.157 GB, free: 16.54 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.554e-05/15.46, allocations: 0 / 4.157 GB, free: 16.54 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02868/15.49, allocations: 6.913 MB / 4.164 GB, free: 15.68 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04649/15.54, allocations: 12.48 MB / 4.176 GB, free: 14.23 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.971e-05/15.54, allocations: 5.688 kB / 4.176 GB, free: 14.23 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004133/15.54, allocations: 448.4 kB / 4.176 GB, free: 14.23 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002092/15.55, allocations: 436.1 kB / 4.177 GB, free: 14.18 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005748/15.55, allocations: 51.47 kB / 4.177 GB, free: 14.18 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002939/15.55, allocations: 3.362 MB / 4.18 GB, free: 11.57 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.426e-05/15.55, allocations: 12.94 kB / 4.18 GB, free: 11.57 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03086/15.58, allocations: 8.369 MB / 4.188 GB, free: 10.1 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002533/15.58, allocations: 0.7853 MB / 4.189 GB, free: 9.773 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007857/15.58, allocations: 27.38 kB / 4.189 GB, free: 9.773 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003427/15.59, allocations: 193.1 kB / 4.189 GB, free: 9.762 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005544/15.59, allocations: 187.8 kB / 4.189 GB, free: 9.75 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003011/15.59, allocations: 92.62 kB / 4.189 GB, free: 9.75 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002325/15.59, allocations: 1.084 MB / 4.191 GB, free: 9.605 MB / 0.5261 GB Notification: Performance of sort global known variables: time 6.21e-07/15.59, allocations: 0 / 4.191 GB, free: 9.605 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01515/15.6, allocations: 2.755 MB / 4.193 GB, free: 9.496 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 9 (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,junctionVolume.medium.h) * Number of discrete variables: 51 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse22.phase,$cse22.region,$cse23.phase,$cse23.region,$cse29.phase,$cse29.region,$cse30.phase,$cse30.region,$cse34.phase,$cse34.region,$cse35.region3boundary,$cse36.region3boundary,$cse37.phase,$cse37.region,$cse39.region3boundary,$cse40.region3boundary,$cse41.phase,$cse41.region,$cse43.phase,$cse43.region,$cse44.region3boundary,$cse45.region3boundary,$cse46.phase,$cse46.region,$cse49.phase,$cse49.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,junctionVolume.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 (228): * Single equations (assignments): 200 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 21 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,2 4,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.04853/15.65, allocations: 13.68 MB / 4.207 GB, free: 5.73 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01467/15.67, allocations: 5.348 MB / 4.212 GB, free: 5.41 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.573e-05/15.67, allocations: 2.812 kB / 4.212 GB, free: 5.41 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.006625/15.67, allocations: 2.693 MB / 4.214 GB, free: 5.277 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009704/15.68, allocations: 1.006 MB / 4.215 GB, free: 5.246 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2659/15.95, allocations: 61.97 MB / 4.276 GB, free: 11.72 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003347/15.95, allocations: 2.336 MB / 4.278 GB, free: 9.898 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.01141/15.97, allocations: 2.692 MB / 4.281 GB, free: 8.324 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004219/15.97, allocations: 1.363 MB / 4.282 GB, free: 7.07 MB / 0.5573 GB Notification: Performance of SimCode: time 2.064e-06/15.97, allocations: 0 / 4.282 GB, free: 7.07 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7848/16.75, allocations: 111.3 MB / 4.391 GB, free: 64.66 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002321/16.75, allocations: 189.8 kB / 4.391 GB, free: 64.46 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform dynamic: time 8.618/25.37, allocations: 4 kB / 4.391 GB, free: 64.46 MB / 0.5573 GB