Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.BranchingDynamicPipes,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Fluid_Examples_BranchingDynamicPipes",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.708/1.708, allocations: 171.3 MB / 178.8 MB, free: 164 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.189e-05/2.198e-05, allocations: 4 kB / 219.6 MB, free: 7.332 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2572/0.2572, allocations: 38.76 MB / 258.3 MB, free: 12.06 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 10.35/10.61, allocations: 3.664 GB / 3.916 GB, free: 92.29 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00028/10.61, allocations: 74.55 kB / 3.917 GB, free: 92.29 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.49/16.1, allocations: 0.9563 GB / 4.873 GB, free: 17.9 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.585e-06/16.1, allocations: 2.406 kB / 4.873 GB, free: 17.9 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0005521/16.1, allocations: 161.7 kB / 4.873 GB, free: 17.88 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2025 * Number of variables: 2025 Notification: Performance of Generate backend data structure: time 0.05962/16.16, allocations: 9.818 MB / 4.883 GB, free: 13.79 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.015e-05/16.16, allocations: 11.5 kB / 4.883 GB, free: 13.79 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009121/16.17, allocations: 0.8612 MB / 4.883 GB, free: 13.39 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02839/16.2, allocations: 5.718 MB / 4.889 GB, free: 12.36 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006733/16.2, allocations: 244.8 kB / 4.889 GB, free: 12.36 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005611/16.21, allocations: 436.3 kB / 4.89 GB, free: 12.34 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0442/16.25, allocations: 15.82 MB / 4.905 GB, free: 11.75 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04747/16.3, allocations: 13.14 MB / 4.918 GB, free: 1.312 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005444/16.3, allocations: 23.61 kB / 4.918 GB, free: 1.293 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005102/16.3, allocations: 11.95 kB / 4.918 GB, free: 1.281 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001057/16.3, allocations: 0.7092 MB / 4.919 GB, free: 0.6641 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5236/16.83, allocations: 42.83 MB / 4.96 GB, free: 26.77 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02919/16.86, allocations: 10.82 MB / 4.971 GB, free: 26.7 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01869/16.88, allocations: 7.54 MB / 4.978 GB, free: 26.64 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005517/16.88, allocations: 4.163 MB / 4.982 GB, free: 22.42 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002106/16.88, allocations: 150.1 kB / 4.983 GB, free: 22.37 MB / 426.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.01069/16.89, allocations: 0.9126 MB / 4.984 GB, free: 22.37 MB / 426.7 MB Notification: Performance of pre-optimization done (n=925): time 6.653e-05/16.89, allocations: 0 / 4.984 GB, free: 22.37 MB / 426.7 MB Notification: Performance of matching and sorting (n=1187): time 0.4793/17.37, allocations: 83.22 MB / 5.065 GB, free: 11.86 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001086/17.37, allocations: 172.7 kB / 5.065 GB, free: 11.68 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004872/17.38, allocations: 2.22 MB / 5.067 GB, free: 9.703 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.004307/17.38, allocations: 35.11 kB / 5.067 GB, free: 9.664 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001784/17.38, allocations: 2.217 MB / 5.069 GB, free: 7.977 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.007203/17.39, allocations: 3.983 MB / 5.073 GB, free: 4.375 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003502/17.39, allocations: 0 / 5.073 GB, free: 4.375 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0009873/17.39, allocations: 0.7752 MB / 5.074 GB, free: 3.73 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.04836/17.44, allocations: 10.68 MB / 5.084 GB, free: 15.62 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02878/17.47, allocations: 10.48 MB / 5.095 GB, free: 6.254 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.4388/17.91, allocations: 13.62 MB / 5.108 GB, free: 41.67 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001172/17.91, allocations: 7.156 kB / 5.108 GB, free: 41.67 MB / 442.7 MB Notification: Performance of matching and sorting (n=1441) (initialization): time 0.1266/18.04, allocations: 32.53 MB / 5.14 GB, free: 41.32 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002106/18.04, allocations: 9.977 MB / 5.149 GB, free: 30.94 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002285/18.04, allocations: 27.52 kB / 5.149 GB, free: 30.94 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.3936/18.43, allocations: 43.48 MB / 5.192 GB, free: 30.62 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009409/18.44, allocations: 1.094 MB / 5.193 GB, free: 30.62 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.12/18.56, allocations: 37.43 MB / 5.23 GB, free: 20.84 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0275/18.59, allocations: 1.628 MB / 5.231 GB, free: 19.92 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005432/18.6, allocations: 0.6132 MB / 5.232 GB, free: 19.41 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.968e-05/18.6, allocations: 7.141 kB / 5.232 GB, free: 19.4 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.1496/18.75, allocations: 32.25 MB / 5.263 GB, free: 14.58 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000224/18.75, allocations: 28 kB / 5.263 GB, free: 14.55 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.7394/19.49, allocations: 41.98 MB / 5.304 GB, free: 52.14 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01007/19.5, allocations: 1.148 MB / 5.305 GB, free: 52.14 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1086/19.6, allocations: 34.57 MB / 5.339 GB, free: 51.32 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02492/19.63, allocations: 1.588 MB / 5.341 GB, free: 51.32 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005768/19.64, allocations: 0.6034 MB / 5.341 GB, free: 51.32 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 114 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (606): * Single equations (assignments): 605 * 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 {68 768} Notification: Performance of prepare postOptimizeDAE: time 0.009319/19.64, allocations: 217.3 kB / 5.341 GB, free: 51.22 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.08353/19.73, allocations: 22.8 MB / 5.364 GB, free: 50.72 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00614/19.73, allocations: 0.5922 MB / 5.364 GB, free: 50.72 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1037/19.84, allocations: 27.24 MB / 5.391 GB, free: 45.68 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002121/19.84, allocations: 124.1 kB / 5.391 GB, free: 45.68 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.798e-05/19.84, allocations: 3.938 kB / 5.391 GB, free: 45.68 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.07385/19.91, allocations: 21.38 MB / 5.412 GB, free: 30.68 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5664/20.48, allocations: 44.72 MB / 5.456 GB, free: 52.39 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001423/20.48, allocations: 2.938 kB / 5.456 GB, free: 52.39 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.03573/20.51, allocations: 3.369 MB / 5.459 GB, free: 52.39 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.05735/20.57, allocations: 10.08 MB / 5.469 GB, free: 52.2 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.005397/20.58, allocations: 0.4925 MB / 5.469 GB, free: 52.2 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05061/20.63, allocations: 42.59 MB / 5.511 GB, free: 23.12 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.738e-06/20.63, allocations: 4.188 kB / 5.511 GB, free: 23.12 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.139/20.77, allocations: 37.15 MB / 5.547 GB, free: 22.14 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002844/20.77, allocations: 0.6955 MB / 5.548 GB, free: 21.73 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006386/20.78, allocations: 281.2 kB / 5.548 GB, free: 21.73 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.02408/20.8, allocations: 1.276 MB / 5.549 GB, free: 21.71 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005183/20.81, allocations: 0.7989 MB / 5.55 GB, free: 21.7 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.004853/20.81, allocations: 0.5659 MB / 5.551 GB, free: 21.7 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.003848/20.81, allocations: 1.636 MB / 5.552 GB, free: 21.55 MB / 458.7 MB Notification: Performance of sort global known variables: time 6.02e-07/20.82, allocations: 0 / 5.552 GB, free: 21.55 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.03966/20.85, allocations: 6.353 MB / 5.558 GB, free: 21.55 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 82 (pipe1.mediums[1].p,pipe1.mediums[1].Xi[1],pipe1.mediums[1].T,pipe1.mediums[2].p,pipe1.mediums[2].Xi[1],pipe1.mediums[2].T,pipe1.mediums[3].p,pipe1.mediums[3].Xi[1],pipe1.mediums[3].T,pipe1.mediums[4].p,pipe1.mediums[4].Xi[1],pipe1.mediums[4].T,pipe1.mediums[5].p,pipe1.mediums[5].Xi[1],pipe1.mediums[5].T,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].Xi[1],pipe2.mediums[1].T,pipe2.mediums[2].p,pipe2.mediums[2].Xi[1],pipe2.mediums[2].T,pipe2.mediums[3].p,pipe2.mediums[3].Xi[1],pipe2.mediums[3].T,pipe2.mediums[4].p,pipe2.mediums[4].Xi[1],pipe2.mediums[4].T,pipe2.mediums[5].p,pipe2.mediums[5].Xi[1],pipe2.mediums[5].T,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].Xi[1],pipe3.mediums[1].T,pipe3.mediums[2].p,pipe3.mediums[2].Xi[1],pipe3.mediums[2].T,pipe3.mediums[3].p,pipe3.mediums[3].Xi[1],pipe3.mediums[3].T,pipe3.mediums[4].p,pipe3.mediums[4].Xi[1],pipe3.mediums[4].T,pipe3.mediums[5].p,pipe3.mediums[5].Xi[1],pipe3.mediums[5].T,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].Xi[1],pipe4.mediums[1].T,pipe4.mediums[2].p,pipe4.mediums[2].Xi[1],pipe4.mediums[2].T,pipe4.mediums[3].p,pipe4.mediums[3].Xi[1],pipe4.mediums[3].T,pipe4.mediums[4].p,pipe4.mediums[4].Xi[1],pipe4.mediums[4].T,pipe4.mediums[5].p,pipe4.mediums[5].Xi[1],pipe4.mediums[5].T,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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1168): * Single equations (assignments): 1121 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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 {2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.1568/21.01, allocations: 41.88 MB / 5.599 GB, free: 8.273 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.5121/21.52, allocations: 35.35 MB / 5.634 GB, free: 58.31 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.152e-05/21.52, allocations: 6.469 kB / 5.634 GB, free: 58.31 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.04613/21.57, allocations: 12.71 MB / 5.646 GB, free: 57.75 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02732/21.6, allocations: 2.69 MB / 5.649 GB, free: 57.68 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1197/21.72, allocations: 31.35 MB / 5.68 GB, free: 52.73 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01224/21.73, allocations: 5.29 MB / 5.685 GB, free: 51.78 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01608/21.75, allocations: 3.678 MB / 5.688 GB, free: 51.77 MB / 458.7 MB Notification: Performance of SimCode: time 3.155e-06/21.75, allocations: 0 / 5.688 GB, free: 51.77 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 12.01/33.76, allocations: 0.8472 GB / 6.535 GB, free: 99.65 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Fluid.Examples.BranchingDynamicPipes_res.mat does not exist to compare? outputFormat=mat