Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes18",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.411/2.411, allocations: 270 MB / 282.6 MB, free: 1.867 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.379e-05/3.384e-05, allocations: 4 kB / 347.1 MB, free: 3.145 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3972/0.3972, allocations: 61.87 MB / 408.9 MB, free: 10.66 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.71/9.107, allocations: 2.852 GB / 3.251 GB, free: 48.6 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002589/9.107, allocations: 81.44 kB / 3.251 GB, free: 48.56 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 5.945/15.05, allocations: 1.025 GB / 4.276 GB, free: 33.36 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.743e-06/15.05, allocations: 0 / 4.276 GB, free: 33.36 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0003642/15.05, allocations: 73.88 kB / 4.276 GB, free: 33.34 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: 575 * Number of variables: 575 Notification: Performance of Generate backend data structure: time 0.0206/15.07, allocations: 4.259 MB / 4.28 GB, free: 31.07 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.769e-05/15.07, allocations: 11.88 kB / 4.28 GB, free: 31.06 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001487/15.07, allocations: 323.6 kB / 4.281 GB, free: 30.88 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01025/15.08, allocations: 0.937 MB / 4.282 GB, free: 30.65 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009299/15.09, allocations: 2.2 MB / 4.284 GB, free: 29.64 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004321/15.09, allocations: 194.9 kB / 4.284 GB, free: 29.56 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001265/15.1, allocations: 221.7 kB / 4.284 GB, free: 29.5 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01359/15.11, allocations: 3.87 MB / 4.288 GB, free: 27.81 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001047/15.11, allocations: 7.875 kB / 4.288 GB, free: 27.81 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00055/15.11, allocations: 95.28 kB / 4.288 GB, free: 27.74 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000332/15.11, allocations: 173.8 kB / 4.288 GB, free: 27.71 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01228/15.12, allocations: 3.415 MB / 4.292 GB, free: 24.98 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.03518/15.16, allocations: 16.95 MB / 4.308 GB, free: 8.742 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009696/15.17, allocations: 3.054 MB / 4.311 GB, free: 6 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003342/15.17, allocations: 1.269 MB / 4.312 GB, free: 4.852 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.08375/15.26, allocations: 24.41 MB / 4.336 GB, free: 10.68 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00774/15.26, allocations: 1.882 MB / 4.338 GB, free: 8.773 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=192): time 6.251e-06/15.26, allocations: 0 / 4.338 GB, free: 8.773 MB / 0.5886 GB Notification: Performance of matching and sorting (n=212): time 0.5326/15.8, allocations: 8.924 MB / 4.347 GB, free: 66.29 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001467/15.8, allocations: 261.8 kB / 4.347 GB, free: 66 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005138/15.8, allocations: 1.499 MB / 4.348 GB, free: 65.79 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.0007868/15.8, allocations: 68.2 kB / 4.348 GB, free: 65.76 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.001437/15.8, allocations: 0.9585 MB / 4.349 GB, free: 65.61 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.001501/15.8, allocations: 0.7039 MB / 4.35 GB, free: 65.31 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003943/15.81, allocations: 48.84 kB / 4.35 GB, free: 65.31 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0002597/15.81, allocations: 406.3 kB / 4.351 GB, free: 65 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003643/15.81, allocations: 1.144 MB / 4.352 GB, free: 64.99 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004261/15.81, allocations: 1.643 MB / 4.353 GB, free: 64.49 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003971/15.82, allocations: 1.393 MB / 4.355 GB, free: 64.42 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.217e-05/15.82, allocations: 5.375 kB / 4.355 GB, free: 64.42 MB / 0.5886 GB Notification: Performance of matching and sorting (n=303) (initialization): time 0.01175/15.83, allocations: 3.368 MB / 4.358 GB, free: 64.2 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.001141/15.83, allocations: 4.948 MB / 4.363 GB, free: 59.05 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.478e-05/15.83, allocations: 13.97 kB / 4.363 GB, free: 59.05 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001875/15.83, allocations: 336 kB / 4.363 GB, free: 59.01 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005168/15.84, allocations: 0.597 MB / 4.364 GB, free: 59.01 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002426/15.84, allocations: 3.088 MB / 4.367 GB, free: 56.42 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005735/15.85, allocations: 337.5 kB / 4.367 GB, free: 56.41 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009353/15.85, allocations: 124.7 kB / 4.367 GB, free: 56.41 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.602e-05/15.85, allocations: 7.328 kB / 4.367 GB, free: 56.41 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01042/15.86, allocations: 3.208 MB / 4.37 GB, free: 56.26 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.061e-05/15.86, allocations: 11.59 kB / 4.37 GB, free: 56.26 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001675/15.86, allocations: 332.5 kB / 4.371 GB, free: 56.22 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005066/15.86, allocations: 0.5852 MB / 4.371 GB, free: 56.22 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002316/15.87, allocations: 3.09 MB / 4.374 GB, free: 53.63 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004761/15.87, allocations: 334.5 kB / 4.374 GB, free: 53.62 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007467/15.87, allocations: 118 kB / 4.375 GB, free: 53.62 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * Number of states: 0 () * Number of discrete variables: 31 (valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.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,junctionIdeal.medium.phase,junctionVolume.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 (283): * Single equations (assignments): 276 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,1 6,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.001094/15.87, allocations: 321.4 kB / 4.375 GB, free: 53.45 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008357/15.87, allocations: 244.8 kB / 4.375 GB, free: 53.33 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01817/15.89, allocations: 8.205 MB / 4.383 GB, free: 52.62 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001233/15.89, allocations: 89.25 kB / 4.383 GB, free: 52.62 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.535e-05/15.89, allocations: 1.812 kB / 4.383 GB, free: 52.62 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01455/15.91, allocations: 7.12 MB / 4.39 GB, free: 51.65 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03116/15.94, allocations: 13.2 MB / 4.403 GB, free: 50.09 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.479e-05/15.94, allocations: 6.125 kB / 4.403 GB, free: 50.09 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00416/15.94, allocations: 492.6 kB / 4.404 GB, free: 50.09 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002527/15.95, allocations: 457.2 kB / 4.404 GB, free: 50.04 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006929/15.95, allocations: 81.02 kB / 4.404 GB, free: 50.04 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00248/15.95, allocations: 3.224 MB / 4.407 GB, free: 47.44 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.077e-05/15.95, allocations: 8.562 kB / 4.407 GB, free: 47.44 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01793/15.97, allocations: 8.238 MB / 4.415 GB, free: 46.01 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002923/15.97, allocations: 0.8276 MB / 4.416 GB, free: 45.68 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001179/15.97, allocations: 78.31 kB / 4.416 GB, free: 45.68 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004437/15.98, allocations: 237.9 kB / 4.416 GB, free: 45.66 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008933/15.98, allocations: 197.5 kB / 4.417 GB, free: 45.65 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003859/15.98, allocations: 99.83 kB / 4.417 GB, free: 45.65 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.003372/15.98, allocations: 1.324 MB / 4.418 GB, free: 45.49 MB / 0.5886 GB Notification: Performance of sort global known variables: time 8.01e-07/15.98, allocations: 3.25 kB / 4.418 GB, free: 45.49 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01579/16, allocations: 2.951 MB / 4.421 GB, free: 45.38 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 9 (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,junctionVolume.medium.h) * Number of discrete variables: 59 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse12.phase,$cse12.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,$cse30.phase,$cse30.region,$cse31.phase,$cse31.region,$cse35.phase,$cse35.region,$cse38.phase,$cse38.region,$cse40.region3boundary,$cse41.region3boundary,$cse42.phase,$cse42.region,$cse44.region3boundary,$cse45.region3boundary,$cse46.phase,$cse46.region,$cse48.phase,$cse48.region,$cse49.region3boundary,$cse50.region3boundary,$cse51.phase,$cse51.region,$cse52.phase,$cse52.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,junctionIdeal.medium.phase,junctionVolume.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 (239): * Single equations (assignments): 208 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 24 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,2 4,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.03381/16.03, allocations: 13.09 MB / 4.434 GB, free: 41.89 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.01485/16.04, allocations: 5.495 MB / 4.439 GB, free: 41.56 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.395e-05/16.04, allocations: 0 / 4.439 GB, free: 41.56 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.007701/16.05, allocations: 2.933 MB / 4.442 GB, free: 41.43 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01088/16.06, allocations: 1.226 MB / 4.443 GB, free: 41.39 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02543/16.09, allocations: 8.059 MB / 4.451 GB, free: 39.84 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002774/16.09, allocations: 2.347 MB / 4.453 GB, free: 39.08 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003546/16.1, allocations: 1.457 MB / 4.455 GB, free: 39.07 MB / 0.5886 GB Notification: Performance of SimCode: time 1.944e-06/16.1, allocations: 2.625 kB / 4.455 GB, free: 39.07 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.068/22.16, allocations: 154.1 MB / 4.605 GB, free: 82.17 MB / 0.6042 GB