Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes14",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.49/2.49, allocations: 270 MB / 282.6 MB, free: 1.863 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.499e-05/3.512e-05, allocations: 4 kB / 347 MB, free: 3.125 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4006/0.4006, allocations: 61.87 MB / 408.9 MB, free: 10.66 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.467/8.867, allocations: 2.851 GB / 3.251 GB, free: 50.2 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002652/8.868, allocations: 76.95 kB / 3.251 GB, free: 50.16 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 5.52/14.39, allocations: 0.9176 GB / 4.168 GB, free: 39.55 MB / 0.5573 GB Notification: Performance of FrontEnd: time 3.476e-06/14.39, allocations: 0 / 4.168 GB, free: 39.55 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0003295/14.39, allocations: 70.38 kB / 4.168 GB, free: 39.54 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.0188/14.41, allocations: 3.974 MB / 4.172 GB, free: 37.86 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 5.807e-05/14.41, allocations: 10.75 kB / 4.172 GB, free: 37.86 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001417/14.41, allocations: 303.9 kB / 4.172 GB, free: 37.81 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009454/14.42, allocations: 0.8811 MB / 4.173 GB, free: 37.67 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008738/14.43, allocations: 2.089 MB / 4.175 GB, free: 37.22 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003647/14.43, allocations: 187 kB / 4.176 GB, free: 37.22 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001141/14.43, allocations: 202.7 kB / 4.176 GB, free: 37.22 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01189/14.44, allocations: 3.618 MB / 4.179 GB, free: 36.68 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.918e-05/14.44, allocations: 10.94 kB / 4.179 GB, free: 36.68 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004297/14.44, allocations: 94.72 kB / 4.179 GB, free: 36.68 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003191/14.44, allocations: 162 kB / 4.18 GB, free: 36.67 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01139/14.45, allocations: 3.185 MB / 4.183 GB, free: 36.66 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.03273/14.49, allocations: 15.64 MB / 4.198 GB, free: 27.22 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008832/14.49, allocations: 2.698 MB / 4.201 GB, free: 26.62 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003454/14.5, allocations: 1.172 MB / 4.202 GB, free: 26.61 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.08085/14.58, allocations: 24.57 MB / 4.226 GB, free: 27.58 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006697/14.59, allocations: 1.725 MB / 4.227 GB, free: 27.45 MB / 0.573 GB Notification: Performance of pre-optimization done (n=173): time 6.503e-06/14.59, allocations: 0 / 4.227 GB, free: 27.45 MB / 0.573 GB Notification: Performance of matching and sorting (n=189): time 0.03505/14.62, allocations: 7.874 MB / 4.235 GB, free: 26.39 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001902/14.62, allocations: 260.8 kB / 4.235 GB, free: 26.11 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003784/14.63, allocations: 1.397 MB / 4.237 GB, free: 25.93 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0007359/14.63, allocations: 66.2 kB / 4.237 GB, free: 25.9 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.001322/14.63, allocations: 0.9089 MB / 4.238 GB, free: 25.46 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.001215/14.63, allocations: 0.6297 MB / 4.238 GB, free: 25.06 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003041/14.63, allocations: 37.53 kB / 4.238 GB, free: 25.06 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0002862/14.63, allocations: 397.8 kB / 4.239 GB, free: 24.74 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003084/14.63, allocations: 1.034 MB / 4.24 GB, free: 24.74 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003742/14.64, allocations: 1.479 MB / 4.241 GB, free: 24.29 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003709/14.64, allocations: 1.279 MB / 4.242 GB, free: 24.2 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.941e-05/14.64, allocations: 3.781 kB / 4.242 GB, free: 24.2 MB / 0.573 GB Notification: Performance of matching and sorting (n=264) (initialization): time 0.01004/14.65, allocations: 2.992 MB / 4.245 GB, free: 23.99 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.002072/14.65, allocations: 4.338 MB / 4.25 GB, free: 19.45 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.539e-05/14.65, allocations: 11.75 kB / 4.25 GB, free: 19.45 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001359/14.65, allocations: 237.7 kB / 4.25 GB, free: 19.42 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004693/14.66, allocations: 0.522 MB / 4.25 GB, free: 19.41 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002325/14.66, allocations: 2.424 MB / 4.253 GB, free: 17.34 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005231/14.67, allocations: 305.2 kB / 4.253 GB, free: 17.3 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009313/14.67, allocations: 114.7 kB / 4.253 GB, free: 17.3 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.762e-05/14.67, allocations: 3.781 kB / 4.253 GB, free: 17.3 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009007/14.68, allocations: 2.844 MB / 4.256 GB, free: 17.15 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.978e-05/14.68, allocations: 11.81 kB / 4.256 GB, free: 17.15 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001177/14.68, allocations: 233.3 kB / 4.256 GB, free: 17.11 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004569/14.68, allocations: 0.5174 MB / 4.257 GB, free: 17.11 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002401/14.68, allocations: 2.425 MB / 4.259 GB, free: 15.03 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004234/14.69, allocations: 307 kB / 4.259 GB, free: 14.99 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008362/14.69, allocations: 106.4 kB / 4.259 GB, free: 14.99 MB / 0.573 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 (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,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 (250): * Single equations (assignments): 244 * 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.001372/14.69, allocations: 306.2 kB / 4.26 GB, free: 14.81 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007924/14.69, allocations: 214.9 kB / 4.26 GB, free: 14.7 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01672/14.71, allocations: 7.56 MB / 4.267 GB, free: 13.89 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000104/14.71, allocations: 91.83 kB / 4.267 GB, free: 13.89 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.237e-05/14.71, allocations: 0 / 4.267 GB, free: 13.89 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01291/14.72, allocations: 6.569 MB / 4.274 GB, free: 12.95 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02816/14.75, allocations: 12.25 MB / 4.286 GB, free: 10.46 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.541e-05/14.75, allocations: 7.781 kB / 4.286 GB, free: 10.46 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003623/14.75, allocations: 442.4 kB / 4.286 GB, free: 10.44 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001975/14.76, allocations: 335.9 kB / 4.286 GB, free: 10.33 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000565/14.76, allocations: 74.8 kB / 4.286 GB, free: 10.3 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002438/14.76, allocations: 2.521 MB / 4.289 GB, free: 24.03 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.069e-05/14.76, allocations: 8.438 kB / 4.289 GB, free: 24.03 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01439/14.77, allocations: 7.568 MB / 4.296 GB, free: 20.17 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002616/14.78, allocations: 0.7754 MB / 4.297 GB, free: 19.69 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000964/14.78, allocations: 59.98 kB / 4.297 GB, free: 19.66 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003872/14.78, allocations: 220.1 kB / 4.297 GB, free: 19.61 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007181/14.78, allocations: 184.1 kB / 4.298 GB, free: 19.57 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003123/14.78, allocations: 88.25 kB / 4.298 GB, free: 19.55 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.002881/14.78, allocations: 1.254 MB / 4.299 GB, free: 19.05 MB / 0.5886 GB Notification: Performance of sort global known variables: time 2.344e-06/14.78, allocations: 3.594 kB / 4.299 GB, free: 19.05 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0133/14.8, allocations: 2.783 MB / 4.302 GB, free: 18.5 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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: 56 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse12.phase,$cse12.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,$cse26.phase,$cse26.region,$cse27.phase,$cse27.region,$cse29.phase,$cse29.region,$cse32.phase,$cse32.region,$cse34.region3boundary,$cse35.region3boundary,$cse36.phase,$cse36.region,$cse38.region3boundary,$cse39.region3boundary,$cse40.phase,$cse40.region,$cse42.phase,$cse42.region,$cse43.region3boundary,$cse44.region3boundary,$cse45.phase,$cse45.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) * 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 (214): * Single equations (assignments): 185 * 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.03144/14.83, allocations: 12.25 MB / 4.314 GB, free: 9.738 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0154/14.84, allocations: 5.037 MB / 4.318 GB, free: 5.152 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.29e-05/14.84, allocations: 0 / 4.318 GB, free: 5.152 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.006887/14.85, allocations: 2.645 MB / 4.321 GB, free: 2.754 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01002/14.86, allocations: 1.061 MB / 4.322 GB, free: 1.984 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03371/14.9, allocations: 7.559 MB / 4.329 GB, free: 11.3 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004375/14.9, allocations: 2.249 MB / 4.332 GB, free: 9.547 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004694/14.9, allocations: 1.35 MB / 4.333 GB, free: 8.305 MB / 0.6042 GB Notification: Performance of SimCode: time 1.733e-06/14.9, allocations: 4 kB / 4.333 GB, free: 8.301 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.794/20.7, allocations: 133 MB / 4.463 GB, free: 68.27 MB / 0.6042 GB