Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.553/2.553, allocations: 270 MB / 282.6 MB, free: 1.953 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.58e-05/3.586e-05, allocations: 3.938 kB / 347 MB, free: 3.211 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3909/0.3909, allocations: 61.87 MB / 408.9 MB, free: 10.72 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.495/8.886, allocations: 2.847 GB / 3.247 GB, free: 54.48 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002734/8.886, allocations: 75.22 kB / 3.247 GB, free: 54.44 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 4.667/13.55, allocations: 0.8825 GB / 4.129 GB, free: 5.969 MB / 0.5573 GB Notification: Performance of FrontEnd: time 2.345e-06/13.55, allocations: 0 / 4.129 GB, free: 5.969 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0003148/13.55, allocations: 67.86 kB / 4.129 GB, free: 5.902 MB / 0.5573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 476 * Number of variables: 476 Notification: Performance of Generate backend data structure: time 0.01854/13.57, allocations: 3.757 MB / 4.133 GB, free: 2.078 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 5.668e-05/13.57, allocations: 12.03 kB / 4.133 GB, free: 2.066 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001216/13.57, allocations: 270.3 kB / 4.133 GB, free: 1.793 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008559/13.58, allocations: 0.7932 MB / 4.134 GB, free: 0.9961 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.4665/14.05, allocations: 1.956 MB / 4.136 GB, free: 36.5 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004335/14.05, allocations: 166 kB / 4.136 GB, free: 36.5 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001103/14.05, allocations: 182.2 kB / 4.136 GB, free: 36.5 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0111/14.06, allocations: 3.25 MB / 4.14 GB, free: 36.02 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.045e-05/14.06, allocations: 13.75 kB / 4.14 GB, free: 36.02 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003996/14.06, allocations: 78.89 kB / 4.14 GB, free: 36.02 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002953/14.06, allocations: 148.4 kB / 4.14 GB, free: 36.02 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009901/14.07, allocations: 2.809 MB / 4.143 GB, free: 36.01 MB / 0.5573 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.02804/14.1, allocations: 14.07 MB / 4.156 GB, free: 27.65 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006773/14.11, allocations: 1.975 MB / 4.158 GB, free: 27.62 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002613/14.11, allocations: 1.062 MB / 4.159 GB, free: 27.62 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.08055/14.19, allocations: 24.68 MB / 4.183 GB, free: 28.52 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005744/14.2, allocations: 1.633 MB / 4.185 GB, free: 28.39 MB / 0.573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001888/14.2, allocations: 173.3 kB / 4.185 GB, free: 28.36 MB / 0.573 GB Notification: Performance of pre-optimization done (n=155): time 5.611e-06/14.2, allocations: 2.188 kB / 4.185 GB, free: 28.36 MB / 0.573 GB Notification: Performance of matching and sorting (n=167): time 0.02779/14.23, allocations: 7.028 MB / 4.192 GB, free: 27.44 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001797/14.23, allocations: 259.7 kB / 4.192 GB, free: 27.16 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002832/14.23, allocations: 1.327 MB / 4.194 GB, free: 26.99 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0005843/14.23, allocations: 58.58 kB / 4.194 GB, free: 26.96 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008519/14.23, allocations: 0.8192 MB / 4.194 GB, free: 26.63 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008786/14.23, allocations: 0.5591 MB / 4.195 GB, free: 26.36 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002029/14.23, allocations: 30.59 kB / 4.195 GB, free: 26.36 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.000224/14.23, allocations: 383.6 kB / 4.195 GB, free: 26.04 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002286/14.23, allocations: 0.9285 MB / 4.196 GB, free: 26.04 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002588/14.24, allocations: 1.328 MB / 4.198 GB, free: 25.66 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002701/14.24, allocations: 1.164 MB / 4.199 GB, free: 25.57 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.169e-05/14.24, allocations: 9.266 kB / 4.199 GB, free: 25.57 MB / 0.573 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.008451/14.25, allocations: 2.841 MB / 4.201 GB, free: 25.36 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001631/14.25, allocations: 3.73 MB / 4.205 GB, free: 21.49 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.338e-05/14.25, allocations: 11.09 kB / 4.205 GB, free: 21.49 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004375/14.25, allocations: 0.5151 MB / 4.206 GB, free: 21.46 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003758/14.26, allocations: 444.8 kB / 4.206 GB, free: 21.46 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002971/14.26, allocations: 2.706 MB / 4.209 GB, free: 19.38 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004487/14.26, allocations: 262.4 kB / 4.209 GB, free: 19.37 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004672/14.27, allocations: 98.22 kB / 4.209 GB, free: 19.37 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.498e-05/14.27, allocations: 7.406 kB / 4.209 GB, free: 19.37 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006831/14.27, allocations: 2.591 MB / 4.212 GB, free: 19.24 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.742e-05/14.27, allocations: 8.125 kB / 4.212 GB, free: 19.24 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008938/14.27, allocations: 198.4 kB / 4.212 GB, free: 19.21 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003742/14.28, allocations: 466 kB / 4.212 GB, free: 19.21 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001674/14.28, allocations: 1.868 MB / 4.214 GB, free: 17.66 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003585/14.28, allocations: 267.5 kB / 4.214 GB, free: 17.64 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003237/14.28, allocations: 93.42 kB / 4.214 GB, free: 17.64 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * 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,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.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,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 (211): * Single equations (assignments): 205 * 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.0008604/14.28, allocations: 296.5 kB / 4.215 GB, free: 17.46 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006855/14.28, allocations: 199.8 kB / 4.215 GB, free: 17.36 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0142/14.3, allocations: 7.453 MB / 4.222 GB, free: 16.58 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.107e-05/14.3, allocations: 86.78 kB / 4.222 GB, free: 16.58 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.1e-05/14.3, allocations: 0 / 4.222 GB, free: 16.58 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01131/14.31, allocations: 6.502 MB / 4.229 GB, free: 15.64 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02433/14.33, allocations: 11.26 MB / 4.24 GB, free: 30.5 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.057e-05/14.33, allocations: 6.625 kB / 4.24 GB, free: 30.5 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002953/14.34, allocations: 365.7 kB / 4.24 GB, free: 30.5 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004118/14.34, allocations: 1.306 MB / 4.241 GB, free: 30.43 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005087/14.34, allocations: 68.53 kB / 4.241 GB, free: 30.43 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003352/14.35, allocations: 3.197 MB / 4.244 GB, free: 28.34 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.979e-06/14.35, allocations: 11.12 kB / 4.244 GB, free: 28.34 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0138/14.36, allocations: 7.292 MB / 4.252 GB, free: 27.07 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002296/14.36, allocations: 0.7341 MB / 4.252 GB, free: 26.75 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008148/14.36, allocations: 52.72 kB / 4.252 GB, free: 26.75 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003353/14.37, allocations: 195.1 kB / 4.252 GB, free: 26.74 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000503/14.37, allocations: 157.5 kB / 4.253 GB, free: 26.73 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002624/14.37, allocations: 89.05 kB / 4.253 GB, free: 26.73 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.002559/14.37, allocations: 1.196 MB / 4.254 GB, free: 26.57 MB / 0.5886 GB Notification: Performance of sort global known variables: time 1.964e-06/14.37, allocations: 0 / 4.254 GB, free: 26.57 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01295/14.38, allocations: 2.637 MB / 4.256 GB, free: 26.47 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * 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: 55 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse30.phase,$cse30.region,$cse32.region3boundary,$cse33.region3boundary,$cse34.phase,$cse34.region,$cse36.phase,$cse36.region,$cse37.region3boundary,$cse38.region3boundary,$cse39.phase,$cse39.region,$cse41.phase,$cse41.region,$whenCondition1,$whenCondition2,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.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 (179): * Single equations (assignments): 153 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 20 * 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.02786/14.41, allocations: 11.39 MB / 4.268 GB, free: 23.42 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0104/14.42, allocations: 4.514 MB / 4.272 GB, free: 23.11 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.353e-05/14.42, allocations: 7.312 kB / 4.272 GB, free: 23.11 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.005408/14.43, allocations: 2.429 MB / 4.274 GB, free: 22.98 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008769/14.43, allocations: 0.985 MB / 4.275 GB, free: 22.95 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02037/14.46, allocations: 6.965 MB / 4.282 GB, free: 21.57 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002138/14.46, allocations: 2.147 MB / 4.284 GB, free: 20.83 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00255/14.46, allocations: 1.243 MB / 4.285 GB, free: 20.7 MB / 0.5886 GB Notification: Performance of SimCode: time 1.583e-06/14.46, allocations: 0 / 4.285 GB, free: 20.7 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.556/20.02, allocations: 125.7 MB / 4.408 GB, free: 80.77 MB / 0.6042 GB