Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.394/2.394, allocations: 270 MB / 282.6 MB, free: 1.855 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.378e-05/3.383e-05, allocations: 3.984 kB / 347.1 MB, free: 3.121 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4061/0.4062, allocations: 61.87 MB / 408.9 MB, free: 10.77 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.514/8.92, allocations: 2.83 GB / 3.229 GB, free: 90.43 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002766/8.92, allocations: 76.84 kB / 3.229 GB, free: 90.39 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 4.447/13.37, allocations: 0.8083 GB / 4.038 GB, free: 43.25 MB / 0.5573 GB Notification: Performance of FrontEnd: time 2.424e-06/13.37, allocations: 1.641 kB / 4.038 GB, free: 43.25 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.000301/13.37, allocations: 67.48 kB / 4.038 GB, free: 43.23 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.02035/13.39, allocations: 3.96 MB / 4.042 GB, free: 41.29 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.757e-05/13.39, allocations: 7.25 kB / 4.042 GB, free: 41.29 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001161/13.39, allocations: 293.8 kB / 4.042 GB, free: 41.24 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008708/13.4, allocations: 0.8445 MB / 4.043 GB, free: 41.1 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008608/13.41, allocations: 2.088 MB / 4.045 GB, free: 40.64 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003545/13.41, allocations: 176.7 kB / 4.045 GB, free: 40.63 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001128/13.41, allocations: 192.2 kB / 4.045 GB, free: 40.63 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01268/13.42, allocations: 3.697 MB / 4.049 GB, free: 40.09 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.448e-05/13.42, allocations: 15.14 kB / 4.049 GB, free: 40.08 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005781/13.42, allocations: 89.98 kB / 4.049 GB, free: 40.08 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000321/13.42, allocations: 163.6 kB / 4.049 GB, free: 40.08 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0121/13.43, allocations: 3.4 MB / 4.052 GB, free: 40.07 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.03215/13.47, allocations: 14.94 MB / 4.067 GB, free: 31.46 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006973/13.47, allocations: 2.14 MB / 4.069 GB, free: 31.43 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002647/13.48, allocations: 1.096 MB / 4.07 GB, free: 31.42 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0775/13.55, allocations: 24.61 MB / 4.094 GB, free: 32.25 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00604/13.56, allocations: 1.705 MB / 4.096 GB, free: 32.12 MB / 0.573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001846/13.56, allocations: 203 kB / 4.096 GB, free: 32.03 MB / 0.573 GB Notification: Performance of pre-optimization done (n=162): time 6.722e-06/13.56, allocations: 2.906 kB / 4.096 GB, free: 32.03 MB / 0.573 GB Notification: Performance of matching and sorting (n=174): time 0.02926/13.59, allocations: 7.502 MB / 4.103 GB, free: 31 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002406/13.59, allocations: 411.4 kB / 4.104 GB, free: 30.53 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003309/13.59, allocations: 1.558 MB / 4.105 GB, free: 30.29 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0006075/13.6, allocations: 60.11 kB / 4.105 GB, free: 30.26 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009054/13.6, allocations: 0.9033 MB / 4.106 GB, free: 29.83 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008454/13.6, allocations: 0.5868 MB / 4.107 GB, free: 29.45 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002334/13.6, allocations: 36.59 kB / 4.107 GB, free: 29.45 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.000226/13.6, allocations: 390.5 kB / 4.107 GB, free: 29.14 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002727/13.6, allocations: 1.077 MB / 4.108 GB, free: 29.13 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003085/13.6, allocations: 1.504 MB / 4.11 GB, free: 28.66 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003294/13.61, allocations: 1.32 MB / 4.111 GB, free: 28.56 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.547e-05/13.61, allocations: 3.875 kB / 4.111 GB, free: 28.56 MB / 0.573 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.00922/13.62, allocations: 3.218 MB / 4.114 GB, free: 28.34 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001639/13.62, allocations: 3.903 MB / 4.118 GB, free: 24.25 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.149e-05/13.62, allocations: 12.53 kB / 4.118 GB, free: 24.25 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008488/13.63, allocations: 0.9608 MB / 4.119 GB, free: 24.2 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003997/13.63, allocations: 464 kB / 4.119 GB, free: 24.19 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004186/13.63, allocations: 3.164 MB / 4.122 GB, free: 22.09 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004337/13.64, allocations: 236 kB / 4.123 GB, free: 22.06 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005387/13.64, allocations: 109.7 kB / 4.123 GB, free: 22.06 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.674e-05/13.64, allocations: 3.719 kB / 4.123 GB, free: 22.06 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00903/13.65, allocations: 3.025 MB / 4.126 GB, free: 21.9 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.759e-05/13.65, allocations: 12.09 kB / 4.126 GB, free: 21.9 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002001/13.65, allocations: 338.3 kB / 4.126 GB, free: 21.87 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00424/13.66, allocations: 494 kB / 4.126 GB, free: 21.86 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005815/13.66, allocations: 4.037 MB / 4.13 GB, free: 18.77 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003297/13.66, allocations: 234.5 kB / 4.131 GB, free: 18.71 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00036/13.66, allocations: 104.4 kB / 4.131 GB, free: 18.7 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,valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.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.0009121/13.67, allocations: 295 kB / 4.131 GB, free: 18.46 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006978/13.67, allocations: 220.1 kB / 4.131 GB, free: 18.35 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01483/13.68, allocations: 7.856 MB / 4.139 GB, free: 14.81 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.386e-05/13.68, allocations: 81.33 kB / 4.139 GB, free: 14.79 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/13.68, allocations: 0 / 4.139 GB, free: 14.79 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01172/13.69, allocations: 6.881 MB / 4.146 GB, free: 10.31 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02252/13.72, allocations: 10.96 MB / 4.156 GB, free: 0.8203 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.352e-05/13.72, allocations: 4 kB / 4.156 GB, free: 0.8164 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003234/13.72, allocations: 351.8 kB / 4.157 GB, free: 0.5352 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01058/13.73, allocations: 2.617 MB / 4.159 GB, free: 14.67 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006001/13.73, allocations: 67.36 kB / 4.159 GB, free: 14.61 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005499/13.74, allocations: 4.108 MB / 4.163 GB, free: 10.69 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/13.74, allocations: 0 / 4.163 GB, free: 10.69 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01679/13.75, allocations: 7.807 MB / 4.171 GB, free: 3.496 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002707/13.76, allocations: 0.7918 MB / 4.172 GB, free: 2.793 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007933/13.76, allocations: 52.39 kB / 4.172 GB, free: 2.746 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003246/13.76, allocations: 199.7 kB / 4.172 GB, free: 2.594 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004614/13.76, allocations: 140.6 kB / 4.172 GB, free: 2.512 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002805/13.76, allocations: 79.83 kB / 4.172 GB, free: 2.441 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.003412/13.76, allocations: 1.367 MB / 4.174 GB, free: 1.18 MB / 0.5886 GB Notification: Performance of sort global known variables: time 9.81e-07/13.76, allocations: 0 / 4.174 GB, free: 1.18 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.4764/14.24, allocations: 2.859 MB / 4.176 GB, free: 73.84 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,valve1.filter.x[1],valve1.filter.x[2],valve2.filter.x[1],valve2.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.03076/14.27, allocations: 10.36 MB / 4.186 GB, free: 72.8 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0133/14.28, allocations: 5.226 MB / 4.192 GB, free: 72.25 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 9.167e-06/14.28, allocations: 0 / 4.192 GB, free: 72.25 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.005473/14.29, allocations: 2.341 MB / 4.194 GB, free: 72.11 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008893/14.3, allocations: 0.959 MB / 4.195 GB, free: 72.09 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02284/14.32, allocations: 7.408 MB / 4.202 GB, free: 70.88 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002489/14.32, allocations: 2.249 MB / 4.204 GB, free: 70.13 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002859/14.33, allocations: 1.326 MB / 4.206 GB, free: 70.12 MB / 0.5886 GB Notification: Performance of SimCode: time 2.464e-06/14.33, allocations: 0 / 4.206 GB, free: 70.12 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.198/19.53, allocations: 132.1 MB / 4.334 GB, free: 44.75 MB / 0.5886 GB