Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes1",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(ModelicaTest): time 3.057/3.057, allocations: 235.2 MB / 242.3 MB, free: 9.574 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.72e-05/3.74e-05, allocations: 4 kB / 299.6 MB, free: 200 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4633/0.4633, allocations: 54.85 MB / 354.4 MB, free: 15.27 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 10.53/10.99, allocations: 2.655 GB / 3.001 GB, free: 94.2 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003211/10.99, allocations: 84.64 kB / 3.001 GB, free: 94.16 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.569/16.56, allocations: 0.789 GB / 3.79 GB, free: 29.22 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.164e-06/16.56, allocations: 0 / 3.79 GB, free: 29.22 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0004135/16.56, allocations: 69.27 kB / 3.79 GB, free: 29.21 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.02493/16.59, allocations: 3.941 MB / 3.794 GB, free: 27.22 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 6.035e-05/16.59, allocations: 17.23 kB / 3.794 GB, free: 27.22 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001507/16.59, allocations: 216.9 kB / 3.795 GB, free: 27.17 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01199/16.6, allocations: 0.8389 MB / 3.795 GB, free: 27.02 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01102/16.61, allocations: 2.082 MB / 3.797 GB, free: 26.51 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003609/16.61, allocations: 113.2 kB / 3.798 GB, free: 26.51 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001254/16.61, allocations: 118.1 kB / 3.798 GB, free: 26.5 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01072/16.62, allocations: 2.874 MB / 3.8 GB, free: 25.56 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01091/16.63, allocations: 2.88 MB / 3.803 GB, free: 24.22 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001109/16.63, allocations: 3.656 kB / 3.803 GB, free: 24.22 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005976/16.63, allocations: 11.41 kB / 3.803 GB, free: 24.21 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004305/16.63, allocations: 166.4 kB / 3.803 GB, free: 24.19 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 1.171/17.81, allocations: 108.9 MB / 3.91 GB, free: 16.29 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004977/17.81, allocations: 1.581 MB / 3.911 GB, free: 16.25 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002966/17.81, allocations: 0.9866 MB / 3.912 GB, free: 16.24 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07329/17.89, allocations: 17.53 MB / 3.929 GB, free: 20.71 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003719/17.89, allocations: 1.23 MB / 3.931 GB, free: 20.55 MB / 0.5261 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002175/17.89, allocations: 165.2 kB / 3.931 GB, free: 20.55 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=152): time 1.134e-05/17.89, allocations: 2.062 kB / 3.931 GB, free: 20.55 MB / 0.5261 GB Notification: Performance of matching and sorting (n=164): time 0.04391/17.94, allocations: 7.901 MB / 3.938 GB, free: 18.95 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003581/17.94, allocations: 0.5098 MB / 3.939 GB, free: 18.36 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003299/17.94, allocations: 1.193 MB / 3.94 GB, free: 18.19 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0006972/17.94, allocations: 28.98 kB / 3.94 GB, free: 18.16 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001476/17.94, allocations: 1.031 MB / 3.941 GB, free: 17.81 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001192/17.94, allocations: 0.5433 MB / 3.942 GB, free: 17.53 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003354/17.94, allocations: 7.125 kB / 3.942 GB, free: 17.53 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002979/17.95, allocations: 383.9 kB / 3.942 GB, free: 17.23 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003622/17.95, allocations: 1.039 MB / 3.943 GB, free: 17.22 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006472/17.96, allocations: 1.495 MB / 3.945 GB, free: 16.71 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03164/17.99, allocations: 2.851 MB / 3.947 GB, free: 16.64 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.394e-05/17.99, allocations: 3.156 kB / 3.947 GB, free: 16.64 MB / 0.5261 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.03541/18.02, allocations: 4.707 MB / 3.952 GB, free: 16.39 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.001976/18.02, allocations: 4.523 MB / 3.956 GB, free: 11.75 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.712e-05/18.02, allocations: 14.5 kB / 3.956 GB, free: 11.75 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009181/18.03, allocations: 0.8085 MB / 3.957 GB, free: 11.7 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005269/18.04, allocations: 472.3 kB / 3.958 GB, free: 11.7 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00722/18.05, allocations: 3.326 MB / 3.961 GB, free: 25.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005512/18.05, allocations: 237.5 kB / 3.961 GB, free: 25.57 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000825/18.05, allocations: 105.5 kB / 3.961 GB, free: 25.57 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.809e-05/18.05, allocations: 3.625 kB / 3.961 GB, free: 25.57 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03369/18.09, allocations: 4.212 MB / 3.965 GB, free: 25.44 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.875e-05/18.09, allocations: 14.84 kB / 3.965 GB, free: 25.44 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002564/18.09, allocations: 334.3 kB / 3.966 GB, free: 25.41 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005659/18.1, allocations: 0.4897 MB / 3.966 GB, free: 25.4 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007766/18.1, allocations: 3.988 MB / 3.97 GB, free: 22.62 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004992/18.11, allocations: 212.7 kB / 3.97 GB, free: 22.6 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006805/18.11, allocations: 98.56 kB / 3.97 GB, free: 22.6 MB / 0.5417 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,valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.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.001139/18.11, allocations: 233.3 kB / 3.971 GB, free: 22.43 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008515/18.11, allocations: 205.6 kB / 3.971 GB, free: 22.32 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02052/18.13, allocations: 6.681 MB / 3.977 GB, free: 21.79 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000133/18.13, allocations: 70.14 kB / 3.977 GB, free: 21.79 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.027e-05/18.13, allocations: 0.5625 kB / 3.977 GB, free: 21.79 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01751/18.15, allocations: 5.664 MB / 3.983 GB, free: 21.04 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02835/18.18, allocations: 9.037 MB / 3.992 GB, free: 20.44 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.197e-05/18.18, allocations: 4 kB / 3.992 GB, free: 20.43 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003852/18.18, allocations: 294.5 kB / 3.992 GB, free: 20.43 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009246/18.19, allocations: 2.346 MB / 3.994 GB, free: 20.33 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006182/18.19, allocations: 46.16 kB / 3.994 GB, free: 20.33 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008188/18.2, allocations: 4.421 MB / 3.999 GB, free: 18.21 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.118e-05/18.2, allocations: 4.656 kB / 3.999 GB, free: 18.21 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02153/18.22, allocations: 7.111 MB / 4.006 GB, free: 17.55 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002945/18.22, allocations: 0.7039 MB / 4.006 GB, free: 17.25 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001046/18.23, allocations: 21.38 kB / 4.006 GB, free: 17.25 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004242/18.23, allocations: 152.7 kB / 4.006 GB, free: 17.22 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007092/18.23, allocations: 129.7 kB / 4.007 GB, free: 17.22 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003715/18.23, allocations: 73.67 kB / 4.007 GB, free: 17.22 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.00327/18.23, allocations: 1.078 MB / 4.008 GB, free: 17.07 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.453e-06/18.23, allocations: 0 / 4.008 GB, free: 17.07 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01608/18.25, allocations: 2.708 MB / 4.01 GB, free: 16.95 MB / 0.5417 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,valve1.filter.x[1],valve1.filter.x[2],valve2.filter.x[1],valve2.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.04033/18.29, allocations: 10.05 MB / 4.02 GB, free: 12.34 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01639/18.31, allocations: 5.012 MB / 4.025 GB, free: 9.348 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 9.628e-06/18.31, allocations: 0 / 4.025 GB, free: 9.348 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.006717/18.31, allocations: 2.112 MB / 4.027 GB, free: 8.23 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01077/18.32, allocations: 0.7715 MB / 4.028 GB, free: 7.809 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02935/18.35, allocations: 6.742 MB / 4.034 GB, free: 3.004 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004119/18.36, allocations: 2.211 MB / 4.037 GB, free: 1.359 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.01306/18.37, allocations: 2.441 MB / 4.039 GB, free: 0 / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004588/18.38, allocations: 1.248 MB / 4.04 GB, free: 15.95 MB / 0.5573 GB Notification: Performance of SimCode: time 2.545e-06/18.38, allocations: 4 kB / 4.04 GB, free: 15.95 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.001/19.38, allocations: 105.8 MB / 4.143 GB, free: 77.14 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002894/19.38, allocations: 184.9 kB / 4.144 GB, free: 76.96 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform dynamic: time 10.61/29.99, allocations: 0 / 4.144 GB, free: 76.96 MB / 0.5573 GB