Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestExamplesVariants.BranchingDynamicPipes_StandardWater,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestExamplesVariants_BranchingDynamicPipes_StandardWater",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.375/2.375, allocations: 235 MB / 247.6 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.764e-05/3.779e-05, allocations: 0 / 305 MB, free: 5.562 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4176/0.4177, allocations: 54.86 MB / 359.9 MB, free: 2.316 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 18.96/19.38, allocations: 6.182 GB / 6.534 GB, free: 112.1 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002619/19.38, allocations: 76.59 kB / 6.534 GB, free: 112.1 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.586/24.96, allocations: 0.9514 GB / 7.485 GB, free: 25.46 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.275e-06/24.96, allocations: 2.906 kB / 7.485 GB, free: 25.46 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0005639/24.96, allocations: 154.1 kB / 7.485 GB, free: 25.44 MB / 0.5261 GB 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.04991/25.01, allocations: 7.922 MB / 7.493 GB, free: 22.5 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.123e-05/25.01, allocations: 10.5 kB / 7.493 GB, free: 22.5 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005924/25.02, allocations: 0.9509 MB / 7.494 GB, free: 22.42 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0254/25.05, allocations: 2.339 MB / 7.496 GB, free: 22.04 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02599/25.07, allocations: 5.406 MB / 7.501 GB, free: 21.28 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001281/25.07, allocations: 0.6078 MB / 7.502 GB, free: 21.27 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005183/25.08, allocations: 0.6485 MB / 7.503 GB, free: 21.25 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05311/25.13, allocations: 13.48 MB / 7.516 GB, free: 20.06 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000474/25.13, allocations: 22.88 kB / 7.516 GB, free: 20.05 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004666/25.14, allocations: 274.3 kB / 7.516 GB, free: 20.05 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001125/25.14, allocations: 0.6744 MB / 7.517 GB, free: 20.04 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0495/25.19, allocations: 13.9 MB / 7.53 GB, free: 20.01 MB / 0.5261 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.1231/25.31, allocations: 51.76 MB / 7.581 GB, free: 9.84 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02571/25.34, allocations: 8.143 MB / 7.589 GB, free: 9.758 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01297/25.35, allocations: 4.924 MB / 7.594 GB, free: 9.715 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02064/25.37, allocations: 7.292 MB / 7.601 GB, free: 20.17 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001914/25.37, allocations: 107.2 kB / 7.601 GB, free: 20.12 MB / 0.5573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.006461/25.38, allocations: 0.5897 MB / 7.601 GB, free: 19.82 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=631): time 3.228e-05/25.38, allocations: 0 / 7.601 GB, free: 19.82 MB / 0.5573 GB Notification: Performance of matching and sorting (n=733): time 0.1413/25.52, allocations: 31.18 MB / 7.632 GB, free: 9.809 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001522/25.52, allocations: 177.7 kB / 7.632 GB, free: 9.676 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01052/25.53, allocations: 3.501 MB / 7.635 GB, free: 8.402 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.002893/25.53, allocations: 158.5 kB / 7.636 GB, free: 8.27 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.003829/25.54, allocations: 2.419 MB / 7.638 GB, free: 6.309 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.006857/25.54, allocations: 2.534 MB / 7.64 GB, free: 4.344 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003152/25.55, allocations: 163.1 kB / 7.641 GB, free: 4.219 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.001197/25.55, allocations: 0.6357 MB / 7.641 GB, free: 3.758 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02124/25.57, allocations: 5.111 MB / 7.646 GB, free: 1.906 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.04002/25.61, allocations: 7.094 MB / 7.653 GB, free: 14.14 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01936/25.63, allocations: 5.947 MB / 7.659 GB, free: 9.254 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.086e-05/25.63, allocations: 15.03 kB / 7.659 GB, free: 9.242 MB / 0.573 GB Notification: Performance of matching and sorting (n=1024) (initialization): time 0.5405/26.17, allocations: 17.26 MB / 7.676 GB, free: 64.23 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.004022/26.17, allocations: 15.43 MB / 7.691 GB, free: 48.18 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001956/26.17, allocations: 38.75 kB / 7.691 GB, free: 48.18 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.2626/26.44, allocations: 39.39 MB / 7.729 GB, free: 47.56 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008961/26.44, allocations: 0.9133 MB / 7.73 GB, free: 47.56 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07895/26.52, allocations: 17.82 MB / 7.748 GB, free: 46.78 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02102/26.54, allocations: 0.9999 MB / 7.749 GB, free: 46.78 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003859/26.55, allocations: 366.2 kB / 7.749 GB, free: 46.78 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 2.348e-05/26.55, allocations: 3.938 kB / 7.749 GB, free: 46.78 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.07078/26.62, allocations: 15.58 MB / 7.764 GB, free: 46.57 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002206/26.62, allocations: 41.78 kB / 7.764 GB, free: 46.57 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.1902/26.81, allocations: 33.16 MB / 7.797 GB, free: 45.34 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007815/26.82, allocations: 0.9922 MB / 7.798 GB, free: 44.59 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06042/26.88, allocations: 15.47 MB / 7.813 GB, free: 36.45 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01383/26.89, allocations: 0.9774 MB / 7.814 GB, free: 35.95 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003044/26.9, allocations: 360.8 kB / 7.814 GB, free: 35.7 MB / 0.573 GB 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,boundary1.medium.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,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 {67 453} Notification: Performance of prepare postOptimizeDAE: time 0.005266/26.9, allocations: 0.5043 MB / 7.815 GB, free: 35.5 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00335/26.9, allocations: 0.5116 MB / 7.815 GB, free: 35.25 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06216/26.97, allocations: 24.58 MB / 7.839 GB, free: 22.8 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003691/26.97, allocations: 277 kB / 7.839 GB, free: 22.69 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.696e-05/26.97, allocations: 4 kB / 7.839 GB, free: 22.68 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.04856/27.02, allocations: 21.02 MB / 7.86 GB, free: 5.637 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6496/27.67, allocations: 37.34 MB / 7.896 GB, free: 79.88 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.00015/27.67, allocations: 0 / 7.896 GB, free: 79.88 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.04397/27.71, allocations: 2.81 MB / 7.899 GB, free: 79.88 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01707/27.73, allocations: 1.927 MB / 7.901 GB, free: 79.68 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003761/27.73, allocations: 269.5 kB / 7.901 GB, free: 79.68 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03699/27.77, allocations: 34.08 MB / 7.934 GB, free: 50.3 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.586e-06/27.77, allocations: 4.25 kB / 7.934 GB, free: 50.3 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.08546/27.85, allocations: 27.38 MB / 7.961 GB, free: 49.22 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00312/27.86, allocations: 1.091 MB / 7.962 GB, free: 48.69 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003676/27.86, allocations: 212.7 kB / 7.962 GB, free: 48.69 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0129/27.87, allocations: 0.7816 MB / 7.963 GB, free: 48.66 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003524/27.88, allocations: 0.699 MB / 7.964 GB, free: 48.65 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001441/27.88, allocations: 261.5 kB / 7.964 GB, free: 48.65 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.006362/27.88, allocations: 2.629 MB / 7.967 GB, free: 48.49 MB / 0.5886 GB Notification: Performance of sort global known variables: time 1.092e-06/27.88, allocations: 0 / 7.967 GB, free: 48.49 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.03064/27.91, allocations: 5.745 MB / 7.972 GB, free: 48.49 MB / 0.5886 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: 126 ($cse3.phase,$cse3.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,$cse17.region3boundary,$cse18.region3boundary,$cse19.phase,$cse19.region,$cse26.phase,$cse26.region,$cse27.phase,$cse27.region,$cse30.region3boundary,$cse31.region3boundary,$cse32.phase,$cse32.region,$cse33.region3boundary,$cse34.region3boundary,$cse35.phase,$cse35.region,$cse36.region3boundary,$cse37.region3boundary,$cse38.phase,$cse38.region,$cse39.region3boundary,$cse40.region3boundary,$cse41.phase,$cse41.region,$cse42.region3boundary,$cse43.region3boundary,$cse44.phase,$cse44.region,$cse59.phase,$cse59.region,$cse61.phase,$cse61.region,$cse64.region3boundary,$cse65.region3boundary,$cse66.phase,$cse66.region,$cse67.region3boundary,$cse68.region3boundary,$cse69.phase,$cse69.region,$cse70.region3boundary,$cse71.region3boundary,$cse72.phase,$cse72.region,$cse73.region3boundary,$cse74.region3boundary,$cse75.phase,$cse75.region,$cse76.region3boundary,$cse77.region3boundary,$cse78.phase,$cse78.region,$cse85.phase,$cse85.region,$cse86.phase,$cse86.region,$cse88.region3boundary,$cse89.region3boundary,$cse90.phase,$cse90.region,$cse91.region3boundary,$cse92.region3boundary,$cse93.phase,$cse93.region,$cse94.region3boundary,$cse95.region3boundary,$cse96.phase,$cse96.region,$cse97.region3boundary,$cse98.region3boundary,$cse99.phase,$cse99.region,$cse100.region3boundary,$cse101.region3boundary,$cse102.phase,$cse102.region,$cse109.phase,$cse109.region,$cse110.phase,$cse110.region,$cse111.region3boundary,$cse112.region3boundary,$cse113.phase,$cse113.region,$cse114.phase,$cse114.region,boundary1.medium.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) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (819): * Single equations (assignments): 699 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 73 * 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.08468/28, allocations: 31.79 MB / 8.003 GB, free: 46.22 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.07738/28.08, allocations: 22.4 MB / 8.025 GB, free: 41.04 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.291e-05/28.08, allocations: 6.719 kB / 8.025 GB, free: 41.04 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.03757/28.11, allocations: 10.78 MB / 8.036 GB, free: 36.86 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02042/28.14, allocations: 2.163 MB / 8.038 GB, free: 36.4 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.7865/28.92, allocations: 102.7 MB / 8.138 GB, free: 71.51 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0104/28.93, allocations: 5.542 MB / 8.144 GB, free: 70.55 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01016/28.94, allocations: 4.006 MB / 8.148 GB, free: 70.54 MB / 0.5886 GB Notification: Performance of SimCode: time 1.664e-06/28.94, allocations: 0 / 8.148 GB, free: 70.54 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 11.31/40.25, allocations: 0.9325 GB / 9.08 GB, free: 93.22 MB / 0.6198 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestExamplesVariants.BranchingDynamicPipes_StandardWater_res.mat does not exist to compare? outputFormat=mat