Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes2",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(ModelicaTest): time 3.477/3.477, allocations: 235.2 MB / 242.3 MB, free: 9.574 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.525e-05/2.535e-05, allocations: 0 / 299.6 MB, free: 212 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4399/0.4399, allocations: 54.86 MB / 354.4 MB, free: 15.2 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 10.13/10.57, allocations: 2.672 GB / 3.018 GB, free: 76.69 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003217/10.57, allocations: 84.27 kB / 3.018 GB, free: 76.65 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.887/16.46, allocations: 0.7927 GB / 3.811 GB, free: 29.3 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.845e-06/16.46, allocations: 0 / 3.811 GB, free: 29.3 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0003597/16.46, allocations: 55.86 kB / 3.811 GB, free: 29.29 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: 467 * Number of variables: 467 Notification: Performance of Generate backend data structure: time 0.02446/16.48, allocations: 3.648 MB / 3.815 GB, free: 27.27 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 6.334e-05/16.48, allocations: 10.47 kB / 3.815 GB, free: 27.27 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001294/16.48, allocations: 198.5 kB / 3.815 GB, free: 27.16 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01188/16.49, allocations: 0.7845 MB / 3.815 GB, free: 26.96 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01109/16.51, allocations: 1.991 MB / 3.817 GB, free: 25.61 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000328/16.51, allocations: 105.6 kB / 3.818 GB, free: 25.52 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00108/16.51, allocations: 104 kB / 3.818 GB, free: 25.41 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01002/16.52, allocations: 2.546 MB / 3.82 GB, free: 23.15 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01007/16.53, allocations: 2.509 MB / 3.823 GB, free: 20.89 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001194/16.53, allocations: 15.94 kB / 3.823 GB, free: 20.88 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005036/16.53, allocations: 8 kB / 3.823 GB, free: 20.87 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004585/16.53, allocations: 141.8 kB / 3.823 GB, free: 20.75 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.141/17.67, allocations: 107.9 MB / 3.928 GB, free: 27.71 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00495/17.67, allocations: 1.438 MB / 3.929 GB, free: 27.66 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003006/17.68, allocations: 0.9614 MB / 3.93 GB, free: 27.65 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07302/17.75, allocations: 17.46 MB / 3.947 GB, free: 16.11 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003565/17.75, allocations: 1.144 MB / 3.949 GB, free: 15.96 MB / 0.5261 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002066/17.76, allocations: 151.5 kB / 3.949 GB, free: 15.95 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=145): time 8.245e-06/17.76, allocations: 0.6562 kB / 3.949 GB, free: 15.95 MB / 0.5261 GB Notification: Performance of matching and sorting (n=157): time 0.07509/17.83, allocations: 8.727 MB / 3.957 GB, free: 14.43 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002461/17.83, allocations: 359.7 kB / 3.958 GB, free: 14.03 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002666/17.83, allocations: 1.024 MB / 3.959 GB, free: 13.86 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.000635/17.84, allocations: 29.45 kB / 3.959 GB, free: 13.83 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001275/17.84, allocations: 0.9236 MB / 3.96 GB, free: 13.52 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.00109/17.84, allocations: 0.5029 MB / 3.96 GB, free: 13.25 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002674/17.84, allocations: 3.312 kB / 3.96 GB, free: 13.25 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002684/17.84, allocations: 379.5 kB / 3.96 GB, free: 12.95 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002802/17.84, allocations: 0.8969 MB / 3.961 GB, free: 12.95 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003353/17.84, allocations: 1.319 MB / 3.963 GB, free: 12.5 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01877/17.86, allocations: 1.827 MB / 3.964 GB, free: 12.46 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.195e-05/17.86, allocations: 11.8 kB / 3.964 GB, free: 12.45 MB / 0.5261 GB Notification: Performance of matching and sorting (n=236) (initialization): time 0.02648/17.89, allocations: 3.451 MB / 3.968 GB, free: 12.22 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.002731/17.89, allocations: 4.309 MB / 3.972 GB, free: 23.77 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.04e-05/17.89, allocations: 23.03 kB / 3.972 GB, free: 23.77 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005163/17.9, allocations: 491.8 kB / 3.972 GB, free: 23.73 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005139/17.9, allocations: 455.1 kB / 3.973 GB, free: 23.73 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004753/17.91, allocations: 2.817 MB / 3.976 GB, free: 21.64 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005937/17.91, allocations: 250.5 kB / 3.976 GB, free: 21.61 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008084/17.91, allocations: 103.4 kB / 3.976 GB, free: 21.61 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.682e-05/17.91, allocations: 3.969 kB / 3.976 GB, free: 21.61 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02249/17.94, allocations: 2.94 MB / 3.979 GB, free: 21.51 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.091e-05/17.94, allocations: 11.22 kB / 3.979 GB, free: 21.51 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009065/17.94, allocations: 182.4 kB / 3.979 GB, free: 21.49 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005197/17.94, allocations: 467.6 kB / 3.979 GB, free: 21.48 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002396/17.95, allocations: 1.894 MB / 3.981 GB, free: 19.93 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005183/17.95, allocations: 233.2 kB / 3.982 GB, free: 19.9 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005669/17.95, allocations: 98.05 kB / 3.982 GB, free: 19.9 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 29 (valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.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_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (215): * Single equations (assignments): 209 * 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,2 5} Notification: Performance of prepare postOptimizeDAE: time 0.001099/17.95, allocations: 234 kB / 3.982 GB, free: 19.72 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007322/17.95, allocations: 176.6 kB / 3.982 GB, free: 19.63 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03109/17.98, allocations: 6.676 MB / 3.989 GB, free: 19.11 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00012/17.98, allocations: 66.48 kB / 3.989 GB, free: 19.11 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.557e-05/17.98, allocations: 1.844 kB / 3.989 GB, free: 19.11 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02825/18.01, allocations: 5.82 MB / 3.994 GB, free: 18.34 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04558/18.06, allocations: 9.886 MB / 4.004 GB, free: 17.33 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.094e-05/18.06, allocations: 7.75 kB / 4.004 GB, free: 17.33 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004179/18.06, allocations: 309.1 kB / 4.004 GB, free: 17.33 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005695/18.07, allocations: 1.25 MB / 4.005 GB, free: 17.25 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000589/18.07, allocations: 46.44 kB / 4.005 GB, free: 17.25 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006227/18.08, allocations: 3.391 MB / 4.009 GB, free: 15.14 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.806e-05/18.08, allocations: 10.16 kB / 4.009 GB, free: 15.14 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03713/18.11, allocations: 7.082 MB / 4.016 GB, free: 13.96 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003014/18.12, allocations: 0.6441 MB / 4.016 GB, free: 13.68 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009585/18.12, allocations: 22.67 kB / 4.016 GB, free: 13.68 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004299/18.12, allocations: 146.8 kB / 4.017 GB, free: 13.66 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006204/18.12, allocations: 136.7 kB / 4.017 GB, free: 13.66 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004303/18.12, allocations: 75.36 kB / 4.017 GB, free: 13.66 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.003191/18.13, allocations: 0.9473 MB / 4.018 GB, free: 13.54 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.142e-06/18.13, allocations: 0.5625 kB / 4.018 GB, free: 13.54 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01649/18.14, allocations: 2.442 MB / 4.02 GB, free: 13.39 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,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,$cse9.phase,$cse9.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.phase,$cse32.region,$cse34.region3boundary,$cse35.region3boundary,$cse36.phase,$cse36.region,$cse38.phase,$cse38.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 (161): * Single equations (assignments): 139 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 16 * 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,2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.05751/18.2, allocations: 11.52 MB / 4.031 GB, free: 5.414 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01643/18.22, allocations: 4.31 MB / 4.035 GB, free: 2.918 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.923e-05/18.22, allocations: 4 kB / 4.035 GB, free: 2.914 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.008242/18.22, allocations: 2.155 MB / 4.038 GB, free: 1.781 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01071/18.24, allocations: 0.7258 MB / 4.038 GB, free: 1.375 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02927/18.26, allocations: 6.306 MB / 4.044 GB, free: 12.9 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003921/18.27, allocations: 2.085 MB / 4.046 GB, free: 11.33 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.01672/18.29, allocations: 2.483 MB / 4.049 GB, free: 9.879 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004917/18.29, allocations: 1.097 MB / 4.05 GB, free: 9.758 MB / 0.5573 GB Notification: Performance of SimCode: time 3.297e-06/18.29, allocations: 4 kB / 4.05 GB, free: 9.754 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.04/19.33, allocations: 96.26 MB / 4.144 GB, free: 85.48 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.000273/19.33, allocations: 180.6 kB / 4.144 GB, free: 85.3 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform dynamic: time 9.426/28.76, allocations: 0 / 4.144 GB, free: 85.3 MB / 0.5573 GB