Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes4",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.401/2.401, allocations: 270 MB / 282.6 MB, free: 1.809 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 4.012e-05/4.019e-05, allocations: 11.98 kB / 347.1 MB, free: 3.102 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.395/0.3951, allocations: 61.86 MB / 408.9 MB, free: 10.73 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.498/8.893, allocations: 2.834 GB / 3.234 GB, free: 68.72 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000232/8.893, allocations: 85.09 kB / 3.234 GB, free: 68.68 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 4.675/13.57, allocations: 0.9141 GB / 4.148 GB, free: 1.504 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.964e-06/13.57, allocations: 0 / 4.148 GB, free: 1.504 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.000303/13.57, allocations: 67.92 kB / 4.148 GB, free: 1.438 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: 536 * Number of variables: 536 Notification: Performance of Generate backend data structure: time 0.02008/13.59, allocations: 4.039 MB / 4.152 GB, free: 13.33 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 5.026e-05/13.59, allocations: 8.031 kB / 4.152 GB, free: 13.32 MB / 0.573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0013/13.59, allocations: 299.6 kB / 4.152 GB, free: 13.02 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009539/13.6, allocations: 0.871 MB / 4.153 GB, free: 12.14 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009057/13.61, allocations: 2.074 MB / 4.155 GB, free: 10.01 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003785/13.61, allocations: 187.9 kB / 4.155 GB, free: 9.828 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001041/13.61, allocations: 200 kB / 4.155 GB, free: 9.633 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01293/13.62, allocations: 3.654 MB / 4.159 GB, free: 5.789 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.179e-05/13.62, allocations: 7.938 kB / 4.159 GB, free: 5.781 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004452/13.62, allocations: 87.97 kB / 4.159 GB, free: 5.695 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003928/13.62, allocations: 167.7 kB / 4.159 GB, free: 5.531 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01229/13.64, allocations: 3.275 MB / 4.162 GB, free: 2.254 MB / 0.573 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.4983/14.14, allocations: 15.57 MB / 4.178 GB, free: 33.86 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007573/14.14, allocations: 2.183 MB / 4.18 GB, free: 33.84 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002669/14.15, allocations: 1.059 MB / 4.181 GB, free: 33.82 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07871/14.22, allocations: 24.62 MB / 4.205 GB, free: 34.82 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005957/14.23, allocations: 1.717 MB / 4.206 GB, free: 34.7 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=163): time 4.9e-06/14.23, allocations: 0 / 4.206 GB, free: 34.7 MB / 0.5886 GB Notification: Performance of matching and sorting (n=179): time 0.03067/14.26, allocations: 7.665 MB / 4.214 GB, free: 33.74 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001678/14.26, allocations: 256.1 kB / 4.214 GB, free: 33.46 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00308/14.26, allocations: 1.497 MB / 4.216 GB, free: 33.29 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.0005235/14.26, allocations: 58.95 kB / 4.216 GB, free: 33.25 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008795/14.27, allocations: 0.9099 MB / 4.217 GB, free: 32.89 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008344/14.27, allocations: 0.5962 MB / 4.217 GB, free: 32.6 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002233/14.27, allocations: 44.5 kB / 4.217 GB, free: 32.6 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0002105/14.27, allocations: 391.8 kB / 4.218 GB, free: 32.29 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002594/14.27, allocations: 1.023 MB / 4.219 GB, free: 32.28 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002816/14.27, allocations: 1.446 MB / 4.22 GB, free: 31.83 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003138/14.28, allocations: 1.27 MB / 4.221 GB, free: 31.74 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.821e-05/14.28, allocations: 3.656 kB / 4.221 GB, free: 31.74 MB / 0.5886 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.008771/14.28, allocations: 2.977 MB / 4.224 GB, free: 31.52 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.001752/14.29, allocations: 4.336 MB / 4.228 GB, free: 27.02 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.418e-05/14.29, allocations: 11.52 kB / 4.228 GB, free: 27.02 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001305/14.29, allocations: 234.3 kB / 4.229 GB, free: 26.98 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004426/14.29, allocations: 0.5134 MB / 4.229 GB, free: 26.98 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002103/14.29, allocations: 2.424 MB / 4.232 GB, free: 24.91 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004643/14.3, allocations: 265.2 kB / 4.232 GB, free: 24.91 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006407/14.3, allocations: 108.4 kB / 4.232 GB, free: 24.91 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.494e-05/14.3, allocations: 3.188 kB / 4.232 GB, free: 24.91 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007741/14.31, allocations: 2.831 MB / 4.235 GB, free: 24.76 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.634e-05/14.31, allocations: 11.25 kB / 4.235 GB, free: 24.76 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001177/14.31, allocations: 236 kB / 4.235 GB, free: 24.73 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004238/14.31, allocations: 0.5037 MB / 4.235 GB, free: 24.73 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002066/14.32, allocations: 2.426 MB / 4.238 GB, free: 22.66 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003663/14.32, allocations: 263.5 kB / 4.238 GB, free: 22.65 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004481/14.32, allocations: 102 kB / 4.238 GB, free: 22.65 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 30 (pipe3.state_a.phase,pipe2.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.state_a.phase,pipe1.state_b.phase,pipe1.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,splitter.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 (243): * Single equations (assignments): 237 * 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.0008848/14.32, allocations: 307.9 kB / 4.238 GB, free: 22.48 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007018/14.32, allocations: 209.8 kB / 4.239 GB, free: 22.37 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01481/14.34, allocations: 7.637 MB / 4.246 GB, free: 21.67 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.246e-05/14.34, allocations: 86.61 kB / 4.246 GB, free: 21.67 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.205e-05/14.34, allocations: 3.953 kB / 4.246 GB, free: 21.67 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01149/14.35, allocations: 6.644 MB / 4.253 GB, free: 20.74 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02182/14.37, allocations: 10.9 MB / 4.263 GB, free: 20.02 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.582e-05/14.37, allocations: 2.438 kB / 4.263 GB, free: 20.02 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003597/14.37, allocations: 418.9 kB / 4.264 GB, free: 20.02 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0019/14.37, allocations: 334.1 kB / 4.264 GB, free: 19.98 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004864/14.38, allocations: 65.34 kB / 4.264 GB, free: 19.98 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002069/14.38, allocations: 2.524 MB / 4.266 GB, free: 17.91 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.007e-06/14.38, allocations: 0 / 4.266 GB, free: 17.91 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01406/14.39, allocations: 6.93 MB / 4.273 GB, free: 17.24 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00258/14.39, allocations: 0.7815 MB / 4.274 GB, free: 16.93 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008403/14.39, allocations: 51.55 kB / 4.274 GB, free: 16.93 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003657/14.4, allocations: 206.3 kB / 4.274 GB, free: 16.91 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005839/14.4, allocations: 154.5 kB / 4.274 GB, free: 16.91 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002758/14.4, allocations: 80.91 kB / 4.274 GB, free: 16.91 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.003047/14.4, allocations: 1.329 MB / 4.276 GB, free: 16.75 MB / 0.5886 GB Notification: Performance of sort global known variables: time 1.042e-06/14.4, allocations: 0 / 4.276 GB, free: 16.75 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01306/14.42, allocations: 2.885 MB / 4.279 GB, free: 16.63 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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,splitter.medium.p,splitter.medium.h) * Number of discrete variables: 56 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,$cse25.phase,$cse25.region,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$cse31.phase,$cse31.region,$cse33.region3boundary,$cse34.region3boundary,$cse35.phase,$cse35.region,$cse37.region3boundary,$cse38.region3boundary,$cse39.phase,$cse39.region,$cse41.region3boundary,$cse42.region3boundary,$cse43.phase,$cse43.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,splitter.medium.phase) * 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 (202): * Single equations (assignments): 173 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 23 * 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.03098/14.45, allocations: 10.32 MB / 4.289 GB, free: 15.21 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.01344/14.46, allocations: 4.995 MB / 4.294 GB, free: 14.88 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 7.985e-06/14.46, allocations: 0 / 4.294 GB, free: 14.88 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.005153/14.47, allocations: 2.36 MB / 4.296 GB, free: 14.75 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009429/14.47, allocations: 1.042 MB / 4.297 GB, free: 14.72 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02273/14.5, allocations: 7.439 MB / 4.304 GB, free: 29.39 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002324/14.5, allocations: 2.241 MB / 4.306 GB, free: 28.64 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003005/14.5, allocations: 1.344 MB / 4.308 GB, free: 28.63 MB / 0.6042 GB Notification: Performance of SimCode: time 1.382e-06/14.5, allocations: 1.422 kB / 4.308 GB, free: 28.63 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.552/20.06, allocations: 133.3 MB / 4.438 GB, free: 74.76 MB / 0.6042 GB