Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes12",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.539/2.539, allocations: 270 MB / 282.6 MB, free: 1.812 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.939e-05/3.968e-05, allocations: 11.94 kB / 347.1 MB, free: 3.098 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4203/0.4204, allocations: 61.88 MB / 408.9 MB, free: 10.64 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.48/8.901, allocations: 2.83 GB / 3.229 GB, free: 71.3 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002294/8.901, allocations: 83.45 kB / 3.229 GB, free: 71.25 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 4.667/13.57, allocations: 0.8152 GB / 4.045 GB, free: 44.31 MB / 0.5573 GB Notification: Performance of FrontEnd: time 3.657e-06/13.57, allocations: 0 / 4.045 GB, free: 44.31 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0003901/13.57, allocations: 68.53 kB / 4.045 GB, free: 44.3 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: 518 * Number of variables: 518 Notification: Performance of Generate backend data structure: time 0.02073/13.59, allocations: 3.956 MB / 4.049 GB, free: 42.34 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 5.35e-05/13.59, allocations: 11.31 kB / 4.049 GB, free: 42.34 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001346/13.59, allocations: 295.5 kB / 4.049 GB, free: 42.3 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009066/13.6, allocations: 0.8403 MB / 4.05 GB, free: 42.16 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009167/13.61, allocations: 2.17 MB / 4.052 GB, free: 41.69 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000344/13.61, allocations: 174.5 kB / 4.052 GB, free: 41.68 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001155/13.61, allocations: 194.3 kB / 4.052 GB, free: 41.68 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01263/13.62, allocations: 3.698 MB / 4.056 GB, free: 41.14 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.121e-05/13.62, allocations: 14.73 kB / 4.056 GB, free: 41.14 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004902/13.62, allocations: 84.2 kB / 4.056 GB, free: 41.14 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003108/13.62, allocations: 160.3 kB / 4.056 GB, free: 41.13 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01215/13.64, allocations: 3.404 MB / 4.059 GB, free: 41.12 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.03275/13.67, allocations: 14.95 MB / 4.074 GB, free: 32.51 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007133/13.68, allocations: 2.141 MB / 4.076 GB, free: 32.48 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002803/13.68, allocations: 1.091 MB / 4.077 GB, free: 32.46 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07775/13.76, allocations: 24.62 MB / 4.101 GB, free: 17.14 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007766/13.77, allocations: 1.701 MB / 4.103 GB, free: 17.01 MB / 0.5573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002084/13.77, allocations: 198.4 kB / 4.103 GB, free: 16.92 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=162): time 9.327e-06/13.77, allocations: 0 / 4.103 GB, free: 16.92 MB / 0.5573 GB Notification: Performance of matching and sorting (n=174): time 0.03042/13.8, allocations: 7.507 MB / 4.11 GB, free: 15.24 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0006761/13.8, allocations: 412.9 kB / 4.111 GB, free: 30.77 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00354/13.8, allocations: 1.549 MB / 4.112 GB, free: 30.14 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.000649/13.8, allocations: 56.55 kB / 4.112 GB, free: 30.08 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.001026/13.8, allocations: 0.9073 MB / 4.113 GB, free: 29.31 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.001058/13.8, allocations: 0.5826 MB / 4.114 GB, free: 28.87 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002751/13.81, allocations: 38.78 kB / 4.114 GB, free: 28.84 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0002508/13.81, allocations: 396.4 kB / 4.114 GB, free: 28.49 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002905/13.81, allocations: 1.071 MB / 4.115 GB, free: 28.11 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003459/13.81, allocations: 1.499 MB / 4.117 GB, free: 27.21 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003577/13.82, allocations: 1.319 MB / 4.118 GB, free: 26.69 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.761e-05/13.82, allocations: 3.938 kB / 4.118 GB, free: 26.69 MB / 0.573 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.009672/13.83, allocations: 3.231 MB / 4.121 GB, free: 25.49 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001697/13.83, allocations: 3.91 MB / 4.125 GB, free: 21.32 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.023e-05/13.83, allocations: 11.56 kB / 4.125 GB, free: 21.32 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00858/13.84, allocations: 0.9639 MB / 4.126 GB, free: 20.92 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004071/13.84, allocations: 467.6 kB / 4.126 GB, free: 20.54 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004367/13.84, allocations: 3.151 MB / 4.129 GB, free: 17.5 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004318/13.85, allocations: 239.7 kB / 4.13 GB, free: 17.31 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005803/13.85, allocations: 105.7 kB / 4.13 GB, free: 17.22 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.514e-05/13.85, allocations: 4 kB / 4.13 GB, free: 17.21 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008862/13.86, allocations: 3.016 MB / 4.133 GB, free: 14.57 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.978e-05/13.86, allocations: 12 kB / 4.133 GB, free: 14.56 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001905/13.86, allocations: 346.5 kB / 4.133 GB, free: 14.29 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004266/13.86, allocations: 488.1 kB / 4.133 GB, free: 13.88 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006182/13.87, allocations: 4.042 MB / 4.137 GB, free: 9.883 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003596/13.87, allocations: 244 kB / 4.138 GB, free: 9.695 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007706/13.88, allocations: 97.75 kB / 4.138 GB, free: 9.609 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 29 (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,pipe3.state_b.phase,pipe2.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (219): * Single equations (assignments): 209 * Array equations: 2 * Algorithm blocks: 2 * Record equations: 2 * 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,3 19} Notification: Performance of prepare postOptimizeDAE: time 0.001098/13.88, allocations: 292.9 kB / 4.138 GB, free: 9.309 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000807/13.88, allocations: 220.8 kB / 4.138 GB, free: 9.094 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01842/13.9, allocations: 7.851 MB / 4.146 GB, free: 2.059 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001283/13.9, allocations: 82.73 kB / 4.146 GB, free: 2.012 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/13.9, allocations: 0 / 4.146 GB, free: 2.012 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01478/13.91, allocations: 6.878 MB / 4.153 GB, free: 11.62 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02531/13.94, allocations: 10.96 MB / 4.163 GB, free: 2.133 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.427e-05/13.94, allocations: 3.938 kB / 4.163 GB, free: 2.129 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003329/13.94, allocations: 350.8 kB / 4.164 GB, free: 1.844 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.4598/14.4, allocations: 2.539 MB / 4.166 GB, free: 74.62 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006153/14.4, allocations: 66.5 kB / 4.166 GB, free: 74.62 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005495/14.41, allocations: 4.115 MB / 4.17 GB, free: 72.55 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/14.41, allocations: 0 / 4.17 GB, free: 72.55 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01539/14.42, allocations: 7.805 MB / 4.178 GB, free: 72.07 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002434/14.42, allocations: 0.7858 MB / 4.179 GB, free: 71.98 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008068/14.42, allocations: 52.59 kB / 4.179 GB, free: 71.98 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003344/14.43, allocations: 198.7 kB / 4.179 GB, free: 71.98 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000478/14.43, allocations: 142.9 kB / 4.179 GB, free: 71.98 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002639/14.43, allocations: 77.69 kB / 4.179 GB, free: 71.98 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.002883/14.43, allocations: 1.364 MB / 4.18 GB, free: 71.82 MB / 0.5886 GB Notification: Performance of sort global known variables: time 9.02e-07/14.43, allocations: 1.969 kB / 4.18 GB, free: 71.82 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01295/14.44, allocations: 2.863 MB / 4.183 GB, free: 71.82 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (pipe1.mediums[1].p,pipe1.mediums[1].h,valveIncompressible.filter.x[1],valveIncompressible.filter.x[2],valveIncompressible1.filter.x[1],valveIncompressible1.filter.x[2],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,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse21.phase,$cse21.region,$cse22.phase,$cse22.region,$cse27.phase,$cse27.region,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse33.phase,$cse33.region,$cse35.region3boundary,$cse36.region3boundary,$cse37.phase,$cse37.region,$cse39.phase,$cse39.region,$cse41.region3boundary,$cse42.region3boundary,$cse43.phase,$cse43.region,$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) * 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 (170): * Single equations (assignments): 145 * 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,3 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.02903/14.47, allocations: 10.38 MB / 4.193 GB, free: 70.58 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.01271/14.49, allocations: 5.217 MB / 4.198 GB, free: 70.03 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 9.639e-06/14.49, allocations: 3.188 kB / 4.198 GB, free: 70.03 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.005279/14.49, allocations: 2.348 MB / 4.201 GB, free: 69.88 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008807/14.5, allocations: 0.9597 MB / 4.202 GB, free: 69.86 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02159/14.52, allocations: 7.403 MB / 4.209 GB, free: 68.49 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002306/14.52, allocations: 2.256 MB / 4.211 GB, free: 67.74 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002825/14.53, allocations: 1.329 MB / 4.212 GB, free: 67.73 MB / 0.5886 GB Notification: Performance of SimCode: time 1.463e-06/14.53, allocations: 0 / 4.212 GB, free: 67.73 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.422/19.95, allocations: 132.2 MB / 4.341 GB, free: 33.38 MB / 0.5886 GB