Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.471/2.471, allocations: 270 MB / 282.6 MB, free: 1.848 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.751e-05/3.746e-05, allocations: 4 kB / 347 MB, free: 3.117 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4044/0.4045, allocations: 61.87 MB / 408.9 MB, free: 10.65 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.678/9.082, allocations: 2.847 GB / 3.246 GB, free: 54.05 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002653/9.082, allocations: 78.33 kB / 3.246 GB, free: 54.01 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 4.324/13.41, allocations: 0.812 GB / 4.058 GB, free: 34.69 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.803e-06/13.41, allocations: 0 / 4.058 GB, free: 34.69 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0002578/13.41, allocations: 66.27 kB / 4.058 GB, free: 34.67 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 467 * Number of variables: 467 Notification: Performance of Generate backend data structure: time 0.01882/13.43, allocations: 3.671 MB / 4.062 GB, free: 32.83 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.87e-05/13.43, allocations: 7.562 kB / 4.062 GB, free: 32.83 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001291/13.43, allocations: 269 kB / 4.062 GB, free: 32.79 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008448/13.44, allocations: 0.7796 MB / 4.063 GB, free: 32.66 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008184/13.44, allocations: 1.99 MB / 4.065 GB, free: 32.17 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000324/13.44, allocations: 155.2 kB / 4.065 GB, free: 32.17 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001011/13.44, allocations: 181.5 kB / 4.065 GB, free: 32.17 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01125/13.46, allocations: 3.318 MB / 4.068 GB, free: 31.32 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.411e-05/13.46, allocations: 13.28 kB / 4.068 GB, free: 31.31 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004101/13.46, allocations: 86.31 kB / 4.069 GB, free: 31.26 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002888/13.46, allocations: 144.2 kB / 4.069 GB, free: 31.24 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01095/13.47, allocations: 3.039 MB / 4.072 GB, free: 30.28 MB / 0.5417 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.02808/13.5, allocations: 13.83 MB / 4.085 GB, free: 19.94 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006692/13.5, allocations: 1.981 MB / 4.087 GB, free: 19.29 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002607/13.51, allocations: 1.065 MB / 4.088 GB, free: 18.89 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.08082/13.59, allocations: 24.69 MB / 4.112 GB, free: 13.94 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006112/13.59, allocations: 1.626 MB / 4.114 GB, free: 12.66 MB / 0.5573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00175/13.59, allocations: 182.2 kB / 4.114 GB, free: 12.5 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=155): time 6.603e-06/13.59, allocations: 0 / 4.114 GB, free: 12.5 MB / 0.5573 GB Notification: Performance of matching and sorting (n=167): time 0.02876/13.62, allocations: 7.034 MB / 4.121 GB, free: 6.496 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001919/13.62, allocations: 255.5 kB / 4.121 GB, free: 6.195 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003307/13.63, allocations: 1.312 MB / 4.122 GB, free: 5.012 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0006255/13.63, allocations: 57.7 kB / 4.122 GB, free: 4.949 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.001144/13.63, allocations: 0.8122 MB / 4.123 GB, free: 4.176 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.001138/13.63, allocations: 0.552 MB / 4.124 GB, free: 3.68 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002301/13.63, allocations: 36 kB / 4.124 GB, free: 3.645 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0002567/13.63, allocations: 383.7 kB / 4.124 GB, free: 3.281 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002829/13.63, allocations: 0.9324 MB / 4.125 GB, free: 2.453 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004472/13.64, allocations: 1.323 MB / 4.126 GB, free: 1.113 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004759/13.64, allocations: 1.168 MB / 4.128 GB, free: 112 kB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.551e-05/13.64, allocations: 7.938 kB / 4.128 GB, free: 104 kB / 0.5573 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.01073/13.65, allocations: 2.877 MB / 4.13 GB, free: 13.69 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001808/13.65, allocations: 3.735 MB / 4.134 GB, free: 9.668 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.279e-05/13.66, allocations: 8 kB / 4.134 GB, free: 9.66 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004551/13.66, allocations: 0.5105 MB / 4.134 GB, free: 9.273 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003981/13.66, allocations: 450.8 kB / 4.135 GB, free: 8.902 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003259/13.67, allocations: 2.703 MB / 4.138 GB, free: 6.234 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00437/13.67, allocations: 263.9 kB / 4.138 GB, free: 6.031 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004673/13.67, allocations: 91.64 kB / 4.138 GB, free: 5.949 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.73e-05/13.67, allocations: 4.625 kB / 4.138 GB, free: 5.945 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007935/13.68, allocations: 2.592 MB / 4.14 GB, free: 3.656 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.413e-05/13.68, allocations: 8 kB / 4.14 GB, free: 3.648 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009864/13.68, allocations: 202.1 kB / 4.141 GB, free: 3.48 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003954/13.68, allocations: 462.5 kB / 4.141 GB, free: 3.098 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001824/13.69, allocations: 1.87 MB / 4.143 GB, free: 1.23 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003523/13.69, allocations: 257.9 kB / 4.143 GB, free: 1.031 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004134/13.69, allocations: 95.06 kB / 4.143 GB, free: 0.9492 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.0008232/13.69, allocations: 287.9 kB / 4.144 GB, free: 0.6562 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006711/13.69, allocations: 205.6 kB / 4.144 GB, free: 464 kB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4825/14.17, allocations: 7.449 MB / 4.151 GB, free: 66.11 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001125/14.17, allocations: 83.56 kB / 4.151 GB, free: 66.11 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.108e-05/14.17, allocations: 0 / 4.151 GB, free: 66.11 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01193/14.19, allocations: 6.51 MB / 4.157 GB, free: 65.18 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02412/14.21, allocations: 11.22 MB / 4.168 GB, free: 64.21 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.327e-05/14.21, allocations: 6.406 kB / 4.168 GB, free: 64.21 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003134/14.21, allocations: 362.7 kB / 4.169 GB, free: 64.21 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004359/14.22, allocations: 1.298 MB / 4.17 GB, free: 64.14 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005573/14.22, allocations: 63.66 kB / 4.17 GB, free: 64.14 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002961/14.22, allocations: 3.196 MB / 4.173 GB, free: 62.07 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.095e-06/14.22, allocations: 7.969 kB / 4.173 GB, free: 62.07 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01344/14.24, allocations: 7.279 MB / 4.18 GB, free: 60.89 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002345/14.24, allocations: 0.7335 MB / 4.181 GB, free: 60.63 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007869/14.24, allocations: 53.2 kB / 4.181 GB, free: 60.63 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003055/14.24, allocations: 192 kB / 4.181 GB, free: 60.62 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004387/14.24, allocations: 157.2 kB / 4.181 GB, free: 60.61 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002405/14.24, allocations: 78.39 kB / 4.181 GB, free: 60.61 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.002433/14.25, allocations: 1.195 MB / 4.183 GB, free: 60.45 MB / 0.573 GB Notification: Performance of sort global known variables: time 5.41e-07/14.25, allocations: 0 / 4.183 GB, free: 60.45 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01254/14.26, allocations: 2.596 MB / 4.185 GB, free: 60.45 MB / 0.573 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,$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.phase,$cse38.region,$cse40.region3boundary,$cse41.region3boundary,$cse42.phase,$cse42.region,$cse44.phase,$cse44.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.02745/14.29, allocations: 11.33 MB / 4.196 GB, free: 57.52 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.01119/14.3, allocations: 4.548 MB / 4.201 GB, free: 57.21 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.209e-05/14.3, allocations: 3.625 kB / 4.201 GB, free: 57.21 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.005308/14.3, allocations: 2.424 MB / 4.203 GB, free: 57.07 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008411/14.31, allocations: 0.9182 MB / 4.204 GB, free: 57.04 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02018/14.33, allocations: 6.935 MB / 4.211 GB, free: 55.69 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001909/14.33, allocations: 2.134 MB / 4.213 GB, free: 54.94 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002484/14.33, allocations: 1.228 MB / 4.214 GB, free: 54.93 MB / 0.573 GB Notification: Performance of SimCode: time 1.603e-06/14.33, allocations: 0 / 4.214 GB, free: 54.93 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.093/19.43, allocations: 123.5 MB / 4.335 GB, free: 12.34 MB / 0.573 GB