Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes14",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.162/2.162, allocations: 209.4 MB / 216.9 MB, free: 6.668 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.351e-05/2.353e-05, allocations: 4 kB / 267.6 MB, free: 5.328 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1042/0.1042, allocations: 48.7 MB / 316.3 MB, free: 4.535 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.56/7.664, allocations: 2.566 GB / 2.875 GB, free: 24.78 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000246/7.665, allocations: 78.7 kB / 2.875 GB, free: 24.74 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.645/12.31, allocations: 0.8722 GB / 3.747 GB, free: 4.164 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.054e-06/12.31, allocations: 0 / 3.747 GB, free: 4.164 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0003556/12.31, allocations: 75.48 kB / 3.747 GB, free: 4.094 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 532 * Number of variables: 532 Notification: Performance of Generate backend data structure: time 0.02076/12.33, allocations: 3.835 MB / 3.751 GB, free: 212 kB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.632e-05/12.33, allocations: 8.031 kB / 3.751 GB, free: 204 kB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.4004/12.73, allocations: 0.8484 MB / 3.752 GB, free: 31.93 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01022/12.74, allocations: 2.076 MB / 3.754 GB, free: 31.59 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000356/12.74, allocations: 92.7 kB / 3.754 GB, free: 31.59 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001282/12.74, allocations: 119.2 kB / 3.754 GB, free: 31.59 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009328/12.75, allocations: 2.605 MB / 3.756 GB, free: 31.58 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01032/12.76, allocations: 2.837 MB / 3.759 GB, free: 31.03 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.66e-05/12.76, allocations: 8.406 kB / 3.759 GB, free: 31.03 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004675/12.76, allocations: 8.078 kB / 3.759 GB, free: 31.03 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003473/12.76, allocations: 171.9 kB / 3.759 GB, free: 31.02 MB / 474.7 MB 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.4106/13.17, allocations: 109.5 MB / 3.866 GB, free: 22.23 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005064/13.18, allocations: 2.087 MB / 3.868 GB, free: 21.63 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00286/13.18, allocations: 1.044 MB / 3.869 GB, free: 21.62 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0555/13.24, allocations: 17.35 MB / 3.886 GB, free: 10.18 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003334/13.24, allocations: 1.208 MB / 3.888 GB, free: 10.02 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=159): time 6.502e-06/13.24, allocations: 0 / 3.888 GB, free: 10.02 MB / 0.5105 GB Notification: Performance of matching and sorting (n=175): time 0.06225/13.3, allocations: 9.453 MB / 3.897 GB, free: 24.3 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002326/13.3, allocations: 361.1 kB / 3.897 GB, free: 23.9 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002454/13.31, allocations: 1.083 MB / 3.898 GB, free: 23.73 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0006797/13.31, allocations: 28.7 kB / 3.898 GB, free: 23.7 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001179/13.31, allocations: 0.9783 MB / 3.899 GB, free: 23.26 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001118/13.31, allocations: 0.5714 MB / 3.9 GB, free: 22.88 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002308/13.31, allocations: 5.312 kB / 3.9 GB, free: 22.88 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002802/13.31, allocations: 394 kB / 3.9 GB, free: 22.57 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002387/13.31, allocations: 0.9878 MB / 3.901 GB, free: 22.56 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003001/13.32, allocations: 1.469 MB / 3.903 GB, free: 22.05 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01491/13.33, allocations: 1.945 MB / 3.904 GB, free: 22 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.561e-05/13.33, allocations: 7.359 kB / 3.904 GB, free: 21.99 MB / 0.5261 GB Notification: Performance of matching and sorting (n=266) (initialization): time 0.02505/13.36, allocations: 3.533 MB / 3.908 GB, free: 21.82 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.002354/13.36, allocations: 4.863 MB / 3.913 GB, free: 16.73 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.68e-05/13.36, allocations: 12.59 kB / 3.913 GB, free: 16.73 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001257/13.36, allocations: 222.4 kB / 3.913 GB, free: 16.69 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005917/13.37, allocations: 0.5294 MB / 3.913 GB, free: 16.69 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003131/13.37, allocations: 2.453 MB / 3.916 GB, free: 14.61 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006626/13.38, allocations: 306.7 kB / 3.916 GB, free: 14.57 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009484/13.38, allocations: 103.5 kB / 3.916 GB, free: 14.57 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.083e-05/13.38, allocations: 6.031 kB / 3.916 GB, free: 14.57 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02387/13.4, allocations: 3.194 MB / 3.919 GB, free: 14.46 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.698e-05/13.4, allocations: 12.88 kB / 3.919 GB, free: 14.46 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001165/13.4, allocations: 223.8 kB / 3.92 GB, free: 14.43 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005509/13.41, allocations: 0.5193 MB / 3.92 GB, free: 14.42 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003031/13.41, allocations: 2.453 MB / 3.922 GB, free: 12.34 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005352/13.42, allocations: 284.3 kB / 3.923 GB, free: 12.3 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006251/13.42, allocations: 105 kB / 3.923 GB, free: 12.3 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 28 (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,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,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.001187/13.42, allocations: 234.6 kB / 3.923 GB, free: 12.12 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01857/13.44, allocations: 3.069 MB / 3.926 GB, free: 10.96 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001057/13.44, allocations: 198.8 kB / 3.926 GB, free: 10.77 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05177/13.49, allocations: 6.965 MB / 3.933 GB, free: 6.902 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000116/13.49, allocations: 73.64 kB / 3.933 GB, free: 6.875 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.675e-05/13.49, allocations: 4.125 kB / 3.933 GB, free: 6.871 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.04651/13.54, allocations: 6.065 MB / 3.939 GB, free: 3.254 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4351/13.97, allocations: 11.22 MB / 3.95 GB, free: 92.46 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.996e-05/13.97, allocations: 7.672 kB / 3.95 GB, free: 92.46 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003445/13.97, allocations: 390.1 kB / 3.95 GB, free: 92.46 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001584/13.98, allocations: 321.8 kB / 3.951 GB, free: 92.43 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005332/13.98, allocations: 42.81 kB / 3.951 GB, free: 92.43 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002156/13.98, allocations: 2.642 MB / 3.953 GB, free: 90.37 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.669e-05/13.98, allocations: 15.92 kB / 3.953 GB, free: 90.37 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03311/14.01, allocations: 7.499 MB / 3.961 GB, free: 89.31 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003367/14.02, allocations: 0.6916 MB / 3.961 GB, free: 89.21 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008971/14.02, allocations: 25.09 kB / 3.961 GB, free: 89.21 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003306/14.02, allocations: 174.9 kB / 3.961 GB, free: 89.21 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005626/14.02, allocations: 165.4 kB / 3.962 GB, free: 89.21 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002821/14.02, allocations: 75.78 kB / 3.962 GB, free: 89.21 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002393/14.02, allocations: 0.9927 MB / 3.963 GB, free: 89.1 MB / 0.5261 GB Notification: Performance of sort global known variables: time 8.02e-07/14.02, allocations: 1.562 kB / 3.963 GB, free: 89.1 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01387/14.04, allocations: 2.58 MB / 3.965 GB, free: 89.1 MB / 0.5261 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: 44 ($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,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,junctionIdeal.medium.phase) * Number of discrete states: 10 (valveOpening2.last,valveOpening2.nextEvent,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.last,valveOpening1.nextEvent,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.0417/14.08, allocations: 12.61 MB / 3.978 GB, free: 85.69 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01163/14.09, allocations: 4.643 MB / 3.982 GB, free: 85.39 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.608e-05/14.09, allocations: 3.625 kB / 3.982 GB, free: 85.39 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.004974/14.1, allocations: 2.285 MB / 3.984 GB, free: 85.26 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008403/14.1, allocations: 0.8453 MB / 3.985 GB, free: 85.23 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02373/14.13, allocations: 6.866 MB / 3.992 GB, free: 83.79 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002424/14.13, allocations: 2.154 MB / 3.994 GB, free: 83.04 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003157/14.13, allocations: 1.267 MB / 3.995 GB, free: 83.04 MB / 0.5261 GB Notification: Performance of SimCode: time 2.845e-06/14.13, allocations: 0 / 3.995 GB, free: 83.04 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.359/19.49, allocations: 125.8 MB / 4.118 GB, free: 38.62 MB / 0.5261 GB