Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestExamplesVariants.BranchingDynamicPipes_StandardWater,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestExamplesVariants_BranchingDynamicPipes_StandardWater",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.123/2.123, allocations: 209.4 MB / 216.9 MB, free: 6.664 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 1.982e-05/1.992e-05, allocations: 0 / 267.6 MB, free: 5.316 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1083/0.1084, allocations: 48.69 MB / 316.3 MB, free: 4.527 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 18.25/18.36, allocations: 6.07 GB / 6.379 GB, free: 88.15 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002734/18.36, allocations: 77.77 kB / 6.379 GB, free: 88.11 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.992/23.35, allocations: 0.9238 GB / 7.303 GB, free: 23.8 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.114e-06/23.35, allocations: 0 / 7.303 GB, free: 23.8 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0005341/23.35, allocations: 152 kB / 7.303 GB, free: 23.66 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1897 * Number of variables: 1897 Notification: Performance of Generate backend data structure: time 0.04614/23.4, allocations: 7.823 MB / 7.311 GB, free: 15.8 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.387e-05/23.4, allocations: 8.031 kB / 7.311 GB, free: 15.79 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02514/23.42, allocations: 2.321 MB / 7.313 GB, free: 13.46 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02434/23.45, allocations: 5.406 MB / 7.319 GB, free: 8.062 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009188/23.45, allocations: 347.9 kB / 7.319 GB, free: 7.723 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004408/23.45, allocations: 387.8 kB / 7.319 GB, free: 7.344 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03681/23.49, allocations: 12.69 MB / 7.332 GB, free: 10.64 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4609/23.95, allocations: 11.37 MB / 7.343 GB, free: 32.36 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004527/23.95, allocations: 22.09 kB / 7.343 GB, free: 32.36 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004216/23.96, allocations: 12.53 kB / 7.343 GB, free: 32.36 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001452/23.96, allocations: 0.6775 MB / 7.343 GB, free: 32.34 MB / 490.7 MB 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.2523/24.21, allocations: 82.17 MB / 7.424 GB, free: 23.6 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01718/24.23, allocations: 6.823 MB / 7.43 GB, free: 23.53 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01205/24.24, allocations: 4.785 MB / 7.435 GB, free: 23.49 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01452/24.25, allocations: 5.873 MB / 7.441 GB, free: 18.71 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001566/24.25, allocations: 98.95 kB / 7.441 GB, free: 18.67 MB / 0.5105 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.005874/24.26, allocations: 403.9 kB / 7.441 GB, free: 18.54 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=627): time 4.604e-05/24.26, allocations: 0 / 7.441 GB, free: 18.54 MB / 0.5105 GB Notification: Performance of matching and sorting (n=729): time 0.1377/24.4, allocations: 31.51 MB / 7.472 GB, free: 16.28 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000149/24.4, allocations: 180.8 kB / 7.472 GB, free: 16.14 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005814/24.4, allocations: 2.467 MB / 7.475 GB, free: 15.86 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.002317/24.41, allocations: 28.7 kB / 7.475 GB, free: 15.83 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.002033/24.41, allocations: 2.505 MB / 7.477 GB, free: 14.41 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.004222/24.41, allocations: 2.419 MB / 7.479 GB, free: 12.8 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001159/24.41, allocations: 3.156 kB / 7.479 GB, free: 12.8 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0006969/24.41, allocations: 0.6282 MB / 7.48 GB, free: 12.47 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01273/24.43, allocations: 5.039 MB / 7.485 GB, free: 12.45 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01797/24.44, allocations: 6.502 MB / 7.491 GB, free: 10.91 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.091/24.54, allocations: 8.821 MB / 7.5 GB, free: 9.16 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001585/24.54, allocations: 12.56 kB / 7.5 GB, free: 9.16 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1024) (initialization): time 0.09059/24.63, allocations: 19.35 MB / 7.519 GB, free: 3.066 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.006617/24.63, allocations: 15.43 MB / 7.534 GB, free: 2.57 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002167/24.63, allocations: 41.36 kB / 7.534 GB, free: 2.566 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.5503/25.18, allocations: 22.49 MB / 7.556 GB, free: 80.7 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007111/25.19, allocations: 0.9103 MB / 7.557 GB, free: 80.7 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07155/25.26, allocations: 20.09 MB / 7.576 GB, free: 79.91 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01591/25.28, allocations: 0.8678 MB / 7.577 GB, free: 79.91 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0033/25.28, allocations: 361.7 kB / 7.578 GB, free: 79.91 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.059e-05/25.28, allocations: 5.344 kB / 7.578 GB, free: 79.91 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.07766/25.36, allocations: 17.46 MB / 7.595 GB, free: 79.71 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002081/25.36, allocations: 38.88 kB / 7.595 GB, free: 79.71 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.1244/25.48, allocations: 19.58 MB / 7.614 GB, free: 79.39 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007847/25.49, allocations: 0.9925 MB / 7.615 GB, free: 79.39 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05776/25.55, allocations: 16.81 MB / 7.631 GB, free: 78.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01422/25.56, allocations: 0.8271 MB / 7.632 GB, free: 78.7 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003124/25.57, allocations: 350 kB / 7.632 GB, free: 78.7 MB / 0.5261 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pipe2.vs[1]:VARIABLE(unit = "m/s" ) "mean velocities in flow segments" type: Real [5] pipe2.vs[2]:VARIABLE(unit = "m/s" ) "mean velocities in flow segments" type: Real [5] pipe2.vs[4]:VARIABLE(unit = "m/s" ) "mean velocities in flow segments" type: Real [5] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 177 * Number of states: 0 () * Number of discrete variables: 30 (pipe4.state_b.phase,pipe4.state_a.phase,pipe3.state_b.phase,pipe3.state_a.phase,pipe1.state_b.phase,pipe1.state_a.phase,pipe1.statesFM[2].phase,pipe1.statesFM[3].phase,pipe1.statesFM[4].phase,pipe1.statesFM[5].phase,pipe1.statesFM[6].phase,pipe2.statesFM[1].phase,pipe2.statesFM[2].phase,pipe2.statesFM[3].phase,pipe2.statesFM[4].phase,pipe2.statesFM[5].phase,pipe3.statesFM[2].phase,pipe3.statesFM[3].phase,pipe3.statesFM[4].phase,pipe3.statesFM[5].phase,pipe3.statesFM[6].phase,pipe4.statesFM[2].phase,pipe4.statesFM[3].phase,pipe4.statesFM[4].phase,pipe4.statesFM[5].phase,pipe4.statesFM[6].phase,boundary4.medium.phase,boundary1.medium.phase,pipe2.state_b.phase,pipe2.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (505): * Single equations (assignments): 504 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {69 451} Notification: Performance of prepare postOptimizeDAE: time 0.005685/25.57, allocations: 256.8 kB / 7.633 GB, free: 78.6 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0447/25.62, allocations: 11.41 MB / 7.644 GB, free: 78.19 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003652/25.62, allocations: 468.9 kB / 7.644 GB, free: 78.19 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06796/25.69, allocations: 24.54 MB / 7.668 GB, free: 64.36 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003581/25.69, allocations: 266.6 kB / 7.668 GB, free: 64.19 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.095e-05/25.69, allocations: 4 kB / 7.668 GB, free: 64.18 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.05188/25.74, allocations: 20.77 MB / 7.689 GB, free: 45.79 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5198/26.26, allocations: 35.44 MB / 7.723 GB, free: 75.95 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001396/26.26, allocations: 2.641 kB / 7.723 GB, free: 75.95 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0305/26.29, allocations: 2.776 MB / 7.726 GB, free: 75.95 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009248/26.3, allocations: 1.839 MB / 7.728 GB, free: 75.76 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002794/26.31, allocations: 167.3 kB / 7.728 GB, free: 75.76 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03243/26.34, allocations: 34.86 MB / 7.762 GB, free: 46.71 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.454e-06/26.34, allocations: 2.109 kB / 7.762 GB, free: 46.71 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.07571/26.41, allocations: 27.04 MB / 7.788 GB, free: 45.64 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00314/26.42, allocations: 0.9541 MB / 7.789 GB, free: 45.07 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003994/26.42, allocations: 82.42 kB / 7.789 GB, free: 45.07 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01286/26.43, allocations: 0.6517 MB / 7.79 GB, free: 45.02 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003851/26.44, allocations: 0.6823 MB / 7.791 GB, free: 45.01 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002678/26.44, allocations: 261.3 kB / 7.791 GB, free: 45.01 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.004546/26.44, allocations: 1.796 MB / 7.793 GB, free: 44.86 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.102e-06/26.44, allocations: 0 / 7.793 GB, free: 44.86 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.03056/26.48, allocations: 5.23 MB / 7.798 GB, free: 44.72 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 62 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe1.mediums[2].p,pipe1.mediums[2].h,pipe1.mediums[3].p,pipe1.mediums[3].h,pipe1.mediums[4].p,pipe1.mediums[4].h,pipe1.mediums[5].p,pipe1.mediums[5].h,pipe1.flowModel.m_flows[1],pipe1.flowModel.m_flows[2],pipe1.flowModel.m_flows[3],pipe1.flowModel.m_flows[4],pipe1.flowModel.m_flows[5],pipe1.flowModel.m_flows[6],pipe2.mediums[1].p,pipe2.mediums[1].h,pipe2.mediums[2].p,pipe2.mediums[2].h,pipe2.mediums[3].p,pipe2.mediums[3].h,pipe2.mediums[4].p,pipe2.mediums[4].h,pipe2.mediums[5].p,pipe2.mediums[5].h,pipe2.flowModel.m_flows[1],pipe2.flowModel.m_flows[2],pipe2.flowModel.m_flows[3],pipe2.flowModel.m_flows[4],pipe3.mediums[1].p,pipe3.mediums[1].h,pipe3.mediums[2].p,pipe3.mediums[2].h,pipe3.mediums[3].p,pipe3.mediums[3].h,pipe3.mediums[4].p,pipe3.mediums[4].h,pipe3.mediums[5].p,pipe3.mediums[5].h,pipe3.flowModel.m_flows[1],pipe3.flowModel.m_flows[2],pipe3.flowModel.m_flows[3],pipe3.flowModel.m_flows[4],pipe3.flowModel.m_flows[5],pipe3.flowModel.m_flows[6],pipe4.mediums[1].p,pipe4.mediums[1].h,pipe4.mediums[2].p,pipe4.mediums[2].h,pipe4.mediums[3].p,pipe4.mediums[3].h,pipe4.mediums[4].p,pipe4.mediums[4].h,pipe4.mediums[5].p,pipe4.mediums[5].h,pipe4.flowModel.m_flows[1],pipe4.flowModel.m_flows[2],pipe4.flowModel.m_flows[3],pipe4.flowModel.m_flows[4],pipe4.flowModel.m_flows[5],pipe4.flowModel.m_flows[6]) * Number of discrete variables: 121 ($cse2.region3boundary,$cse3.region3boundary,$cse4.phase,$cse4.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse8.region3boundary,$cse9.region3boundary,$cse10.phase,$cse10.region,$cse11.region3boundary,$cse12.region3boundary,$cse13.phase,$cse13.region,$cse14.region3boundary,$cse15.region3boundary,$cse16.phase,$cse16.region,$cse23.phase,$cse23.region,$cse26.region3boundary,$cse27.region3boundary,$cse28.phase,$cse28.region,$cse29.region3boundary,$cse30.region3boundary,$cse31.phase,$cse31.region,$cse32.region3boundary,$cse33.region3boundary,$cse34.phase,$cse34.region,$cse35.region3boundary,$cse36.region3boundary,$cse37.phase,$cse37.region,$cse38.region3boundary,$cse39.region3boundary,$cse40.phase,$cse40.region,$cse55.phase,$cse55.region,$cse57.phase,$cse57.region,$cse60.region3boundary,$cse61.region3boundary,$cse62.phase,$cse62.region,$cse63.region3boundary,$cse64.region3boundary,$cse65.phase,$cse65.region,$cse66.region3boundary,$cse67.region3boundary,$cse68.phase,$cse68.region,$cse69.region3boundary,$cse70.region3boundary,$cse71.phase,$cse71.region,$cse72.region3boundary,$cse73.region3boundary,$cse74.phase,$cse74.region,$cse81.phase,$cse81.region,$cse82.phase,$cse82.region,$cse84.region3boundary,$cse85.region3boundary,$cse86.phase,$cse86.region,$cse87.region3boundary,$cse88.region3boundary,$cse89.phase,$cse89.region,$cse90.region3boundary,$cse91.region3boundary,$cse92.phase,$cse92.region,$cse93.region3boundary,$cse94.region3boundary,$cse95.phase,$cse95.region,$cse96.region3boundary,$cse97.region3boundary,$cse98.phase,$cse98.region,$cse105.phase,$cse105.region,$cse106.phase,$cse106.region,$cse107.region3boundary,$cse108.region3boundary,$cse109.phase,$cse109.region,$cse110.phase,$cse110.region,pipe1.statesFM[2].phase,pipe1.statesFM[3].phase,pipe1.statesFM[4].phase,pipe1.statesFM[5].phase,pipe1.statesFM[6].phase,pipe2.statesFM[1].phase,pipe2.statesFM[2].phase,pipe2.statesFM[3].phase,pipe2.statesFM[4].phase,pipe2.statesFM[5].phase,pipe3.statesFM[2].phase,pipe3.statesFM[3].phase,pipe3.statesFM[4].phase,pipe3.statesFM[5].phase,pipe3.statesFM[6].phase,pipe4.statesFM[2].phase,pipe4.statesFM[3].phase,pipe4.statesFM[4].phase,pipe4.statesFM[5].phase,pipe4.statesFM[6].phase,boundary4.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (812): * Single equations (assignments): 694 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 71 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 22 * Torn equation systems: 25 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 22 {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 20 {1 1,1 1,1 1,1 1,1 1,1 1,1 1,1 1,1 1,1 1,1 1,1 1,1 1,1 1,1 1,1 1,1 1,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.09331/26.57, allocations: 31.53 MB / 7.829 GB, free: 42.46 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.07263/26.64, allocations: 21.9 MB / 7.85 GB, free: 40.61 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.243e-05/26.64, allocations: 5.656 kB / 7.85 GB, free: 40.61 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0368/26.68, allocations: 10.56 MB / 7.86 GB, free: 36.49 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01999/26.7, allocations: 1.841 MB / 7.862 GB, free: 36.19 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08413/26.78, allocations: 25.95 MB / 7.887 GB, free: 25.2 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01077/26.79, allocations: 5.499 MB / 7.893 GB, free: 21.16 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01213/26.81, allocations: 3.91 MB / 7.897 GB, free: 17.55 MB / 0.5261 GB Notification: Performance of SimCode: time 1.863e-06/26.81, allocations: 0 / 7.897 GB, free: 17.55 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 11.48/38.28, allocations: 0.9159 GB / 8.813 GB, free: 72.88 MB / 0.5573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestExamplesVariants.BranchingDynamicPipes_StandardWater_res.mat does not exist to compare? outputFormat=mat