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 2.58/2.58, allocations: 235.2 MB / 242.3 MB, free: 9.578 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.56e-05/2.56e-05, allocations: 4 kB / 299.6 MB, free: 204 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3778/0.3778, allocations: 54.86 MB / 354.4 MB, free: 15.2 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.218/8.596, allocations: 2.655 GB / 3.001 GB, free: 93.38 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002755/8.597, allocations: 78.39 kB / 3.001 GB, free: 93.34 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.539/13.14, allocations: 0.7879 GB / 3.789 GB, free: 29.25 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.185e-06/13.14, allocations: 0 / 3.789 GB, free: 29.25 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0003193/13.14, allocations: 71.78 kB / 3.789 GB, free: 29.23 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.02023/13.16, allocations: 3.949 MB / 3.793 GB, free: 27.24 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.16e-05/13.16, allocations: 10.72 kB / 3.793 GB, free: 27.24 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009188/13.17, allocations: 0.8312 MB / 3.794 GB, free: 27.1 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008528/13.17, allocations: 2.096 MB / 3.796 GB, free: 26.58 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002122/13.17, allocations: 91.69 kB / 3.796 GB, free: 26.58 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007178/13.17, allocations: 111.5 kB / 3.796 GB, free: 26.58 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008059/13.18, allocations: 2.884 MB / 3.799 GB, free: 25.73 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007715/13.19, allocations: 2.871 MB / 3.802 GB, free: 24.39 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.015e-05/13.19, allocations: 7.812 kB / 3.802 GB, free: 24.39 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003907/13.19, allocations: 10.77 kB / 3.802 GB, free: 24.39 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003353/13.19, allocations: 158.5 kB / 3.802 GB, free: 24.37 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.8609/14.05, allocations: 108.9 MB / 3.908 GB, free: 16.74 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004037/14.06, allocations: 1.586 MB / 3.91 GB, free: 16.71 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002243/14.06, allocations: 0.9806 MB / 3.911 GB, free: 16.7 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06125/14.12, allocations: 17.54 MB / 3.928 GB, free: 21.16 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003354/14.12, allocations: 1.218 MB / 3.929 GB, free: 21 MB / 0.5261 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001923/14.13, allocations: 166.2 kB / 3.929 GB, free: 21 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=152): time 9.918e-06/14.13, allocations: 2.906 kB / 3.929 GB, free: 21 MB / 0.5261 GB Notification: Performance of matching and sorting (n=164): time 0.03621/14.16, allocations: 7.905 MB / 3.937 GB, free: 19.41 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003116/14.16, allocations: 0.5081 MB / 3.938 GB, free: 18.81 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002844/14.16, allocations: 1.202 MB / 3.939 GB, free: 18.64 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0006146/14.17, allocations: 29.23 kB / 3.939 GB, free: 18.61 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001308/14.17, allocations: 1.032 MB / 3.94 GB, free: 18.27 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.00104/14.17, allocations: 0.532 MB / 3.94 GB, free: 17.99 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002929/14.17, allocations: 3.094 kB / 3.94 GB, free: 17.99 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002495/14.17, allocations: 383.9 kB / 3.941 GB, free: 17.69 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002748/14.17, allocations: 1.047 MB / 3.942 GB, free: 17.68 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003267/14.17, allocations: 1.495 MB / 3.943 GB, free: 17.17 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02199/14.2, allocations: 2.853 MB / 3.946 GB, free: 17.1 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.018e-05/14.2, allocations: 3.875 kB / 3.946 GB, free: 17.1 MB / 0.5261 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.03808/14.23, allocations: 4.702 MB / 3.951 GB, free: 16.85 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.002583/14.24, allocations: 4.523 MB / 3.955 GB, free: 12.21 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001334/14.24, allocations: 16.73 kB / 3.955 GB, free: 12.21 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01021/14.25, allocations: 0.803 MB / 3.956 GB, free: 12.16 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005987/14.25, allocations: 474.3 kB / 3.956 GB, free: 12.16 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008718/14.26, allocations: 3.33 MB / 3.959 GB, free: 26.05 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006653/14.27, allocations: 233.8 kB / 3.96 GB, free: 26.03 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008743/14.27, allocations: 107.3 kB / 3.96 GB, free: 26.03 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.275e-05/14.27, allocations: 4.312 kB / 3.96 GB, free: 26.03 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03263/14.3, allocations: 4.2 MB / 3.964 GB, free: 25.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.946e-05/14.3, allocations: 11.88 kB / 3.964 GB, free: 25.9 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002225/14.31, allocations: 349.1 kB / 3.964 GB, free: 25.86 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004937/14.31, allocations: 497.8 kB / 3.965 GB, free: 25.86 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006932/14.32, allocations: 3.99 MB / 3.969 GB, free: 23.08 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004356/14.32, allocations: 206.9 kB / 3.969 GB, free: 23.06 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007059/14.32, allocations: 108.4 kB / 3.969 GB, free: 23.05 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.0009481/14.32, allocations: 234.8 kB / 3.969 GB, free: 22.88 MB / 0.5417 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01107/14.33, allocations: 2.638 MB / 3.972 GB, free: 22.68 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001005/14.34, allocations: 196.4 kB / 3.972 GB, free: 22.58 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01692/14.35, allocations: 6.696 MB / 3.978 GB, free: 22.05 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001048/14.35, allocations: 72.45 kB / 3.979 GB, free: 22.05 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.817e-06/14.35, allocations: 0 / 3.979 GB, free: 22.05 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01298/14.37, allocations: 5.661 MB / 3.984 GB, free: 21.3 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02212/14.39, allocations: 9.044 MB / 3.993 GB, free: 20.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.801e-05/14.39, allocations: 3.688 kB / 3.993 GB, free: 20.7 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002934/14.39, allocations: 297.4 kB / 3.993 GB, free: 20.7 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007008/14.4, allocations: 2.343 MB / 3.995 GB, free: 20.59 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005199/14.4, allocations: 44.44 kB / 3.996 GB, free: 20.59 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006405/14.4, allocations: 4.426 MB / 4 GB, free: 18.46 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-05/14.4, allocations: 9.125 kB / 4 GB, free: 18.46 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01664/14.42, allocations: 7.102 MB / 4.007 GB, free: 17.81 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002432/14.42, allocations: 0.6933 MB / 4.007 GB, free: 17.51 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001192/14.43, allocations: 27.62 kB / 4.007 GB, free: 17.51 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003581/14.43, allocations: 147.7 kB / 4.008 GB, free: 17.49 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006738/14.43, allocations: 137.1 kB / 4.008 GB, free: 17.49 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002774/14.43, allocations: 65.42 kB / 4.008 GB, free: 17.49 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.002599/14.43, allocations: 1.08 MB / 4.009 GB, free: 17.34 MB / 0.5417 GB Notification: Performance of sort global known variables: time 8.92e-07/14.43, allocations: 2.531 kB / 4.009 GB, free: 17.34 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01304/14.45, allocations: 2.7 MB / 4.012 GB, free: 17.22 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.03087/14.48, allocations: 10.06 MB / 4.021 GB, free: 11.36 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01268/14.49, allocations: 5.015 MB / 4.026 GB, free: 8.367 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 8.426e-06/14.49, allocations: 6.719 kB / 4.026 GB, free: 8.363 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.005504/14.49, allocations: 2.096 MB / 4.028 GB, free: 7.25 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008536/14.5, allocations: 0.7779 MB / 4.029 GB, free: 6.824 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02428/14.53, allocations: 6.733 MB / 4.036 GB, free: 2.031 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003392/14.53, allocations: 2.214 MB / 4.038 GB, free: 400 kB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0141/14.55, allocations: 2.639 MB / 4.04 GB, free: 15.42 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002966/14.55, allocations: 1.207 MB / 4.042 GB, free: 14.71 MB / 0.5573 GB Notification: Performance of SimCode: time 1.703e-06/14.55, allocations: 0 / 4.042 GB, free: 14.71 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7194/15.27, allocations: 103.5 MB / 4.143 GB, free: 78.23 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002525/15.27, allocations: 184.5 kB / 4.143 GB, free: 78.04 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform dynamic: time 7.905/23.17, allocations: 0 / 4.143 GB, free: 78.04 MB / 0.5573 GB