Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.BranchingDynamicPipes,fileNamePrefix="Modelica_3_2_1_Modelica_Fluid_Examples_BranchingDynamicPipes",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.735/1.735, allocations: 171.2 MB / 183.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.01e-05/4.019e-05, allocations: 0 / 225.1 MB, free: 2.254 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3563/0.3564, allocations: 38.77 MB / 263.9 MB, free: 9.719 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 11.17/11.52, allocations: 3.665 GB / 3.923 GB, free: 31.51 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002973/11.52, allocations: 72.86 kB / 3.923 GB, free: 31.48 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.148/17.67, allocations: 0.9647 GB / 4.887 GB, free: 24.13 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.515e-06/17.67, allocations: 0 / 4.887 GB, free: 24.13 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0005441/17.67, allocations: 156 kB / 4.887 GB, free: 24.12 MB / 426.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.06212/17.74, allocations: 9.822 MB / 4.897 GB, free: 20.22 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.437e-05/17.74, allocations: 10.47 kB / 4.897 GB, free: 20.22 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007051/17.74, allocations: 1.022 MB / 4.898 GB, free: 20.13 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00897/17.75, allocations: 0.8538 MB / 4.899 GB, free: 19.74 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02692/17.78, allocations: 5.716 MB / 4.904 GB, free: 18.96 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009232/17.78, allocations: 0.5244 MB / 4.905 GB, free: 18.94 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005563/17.78, allocations: 0.7277 MB / 4.906 GB, free: 18.91 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05027/17.84, allocations: 14.01 MB / 4.919 GB, free: 18.26 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005377/17.84, allocations: 25.33 kB / 4.919 GB, free: 18.25 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005246/17.84, allocations: 289.1 kB / 4.92 GB, free: 18.25 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001144/17.84, allocations: 0.708 MB / 4.92 GB, free: 18.24 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0513/17.89, allocations: 16.56 MB / 4.937 GB, free: 18.21 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.147/18.04, allocations: 43.35 MB / 4.979 GB, free: 3.336 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03377/18.07, allocations: 10.88 MB / 4.989 GB, free: 13.93 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.02282/18.1, allocations: 7.608 MB / 4.997 GB, free: 7.199 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006816/18.1, allocations: 4.191 MB / 5.001 GB, free: 2.43 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002773/18.1, allocations: 146.6 kB / 5.001 GB, free: 2.277 MB / 442.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.009963/18.11, allocations: 0.89 MB / 5.002 GB, free: 1.461 MB / 442.7 MB Notification: Performance of pre-optimization done (n=926): time 3.036e-05/18.11, allocations: 0 / 5.002 GB, free: 1.461 MB / 442.7 MB Notification: Performance of matching and sorting (n=1188): time 0.895/19.01, allocations: 87.18 MB / 5.087 GB, free: 35.11 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001321/19.01, allocations: 180.6 kB / 5.087 GB, free: 35.04 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008574/19.02, allocations: 3.268 MB / 5.091 GB, free: 34.78 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.004469/19.02, allocations: 237.3 kB / 5.091 GB, free: 34.75 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002574/19.03, allocations: 2.319 MB / 5.093 GB, free: 34.02 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.009095/19.03, allocations: 4.135 MB / 5.097 GB, free: 31.63 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004707/19.04, allocations: 227.1 kB / 5.097 GB, free: 31.63 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.001301/19.04, allocations: 0.761 MB / 5.098 GB, free: 31.3 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02588/19.07, allocations: 9.181 MB / 5.107 GB, free: 31.28 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02917/19.1, allocations: 10.48 MB / 5.117 GB, free: 29.66 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02921/19.13, allocations: 10.27 MB / 5.127 GB, free: 23.79 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.91e-05/19.13, allocations: 8 kB / 5.127 GB, free: 23.78 MB / 442.7 MB Notification: Performance of matching and sorting (n=1441) (initialization): time 0.113/19.24, allocations: 30.53 MB / 5.157 GB, free: 0 / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.005088/19.24, allocations: 10.97 MB / 5.168 GB, free: 4.477 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001542/19.24, allocations: 28 kB / 5.168 GB, free: 4.449 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.9159/20.16, allocations: 82.5 MB / 5.248 GB, free: 48.31 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009324/20.17, allocations: 1.081 MB / 5.249 GB, free: 48.31 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1088/20.28, allocations: 33.44 MB / 5.282 GB, free: 31.85 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02743/20.31, allocations: 1.839 MB / 5.284 GB, free: 30.89 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005484/20.31, allocations: 0.603 MB / 5.284 GB, free: 30.47 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.998e-05/20.31, allocations: 4.625 kB / 5.284 GB, free: 30.47 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.09661/20.41, allocations: 28.35 MB / 5.312 GB, free: 15.96 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001752/20.41, allocations: 27.38 kB / 5.312 GB, free: 15.94 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.8931/21.3, allocations: 76.64 MB / 5.387 GB, free: 42.85 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009869/21.31, allocations: 1.134 MB / 5.388 GB, free: 42.85 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09571/21.41, allocations: 31.27 MB / 5.419 GB, free: 42.04 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02633/21.43, allocations: 1.809 MB / 5.42 GB, free: 42.04 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005339/21.44, allocations: 0.5894 MB / 5.421 GB, free: 42.04 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 (604): * Single equations (assignments): 603 * 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 {75 763} Notification: Performance of prepare postOptimizeDAE: time 0.009327/21.45, allocations: 0.615 MB / 5.422 GB, free: 41.93 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.006232/21.45, allocations: 0.6577 MB / 5.422 GB, free: 41.93 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1078/21.56, allocations: 27.59 MB / 5.449 GB, free: 35.11 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002338/21.56, allocations: 128.8 kB / 5.449 GB, free: 34.99 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.408e-05/21.56, allocations: 4 kB / 5.449 GB, free: 34.98 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.06942/21.63, allocations: 21.03 MB / 5.47 GB, free: 19.77 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5988/22.23, allocations: 43.62 MB / 5.512 GB, free: 55.18 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000196/22.23, allocations: 3.062 kB / 5.512 GB, free: 55.18 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.03687/22.27, allocations: 3.383 MB / 5.516 GB, free: 55.18 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.05821/22.33, allocations: 10.16 MB / 5.526 GB, free: 54.98 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.005065/22.33, allocations: 0.6281 MB / 5.526 GB, free: 54.98 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04671/22.38, allocations: 41.76 MB / 5.567 GB, free: 25.58 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.06e-06/22.38, allocations: 3.156 kB / 5.567 GB, free: 25.58 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1179/22.5, allocations: 35.69 MB / 5.602 GB, free: 24.52 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003073/22.5, allocations: 0.7991 MB / 5.603 GB, free: 24.09 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006105/22.51, allocations: 487.7 kB / 5.603 GB, free: 24.09 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.02437/22.53, allocations: 1.485 MB / 5.605 GB, free: 24.06 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005156/22.53, allocations: 0.8002 MB / 5.605 GB, free: 24.05 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.005067/22.54, allocations: 0.5669 MB / 5.606 GB, free: 24.05 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.006609/22.55, allocations: 2.465 MB / 5.608 GB, free: 23.89 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.032e-06/22.55, allocations: 1.062 kB / 5.608 GB, free: 23.89 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.03989/22.59, allocations: 7.045 MB / 5.615 GB, free: 23.88 MB / 474.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 (1169): * Single equations (assignments): 1122 * 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.1384/22.72, allocations: 40.45 MB / 5.655 GB, free: 14.79 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.1253/22.85, allocations: 34.71 MB / 5.689 GB, free: 3.102 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-05/22.85, allocations: 8.781 kB / 5.689 GB, free: 3.09 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.5133/23.36, allocations: 14.7 MB / 5.703 GB, free: 75.12 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.03022/23.39, allocations: 3.071 MB / 5.706 GB, free: 75.07 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1221/23.52, allocations: 31.98 MB / 5.737 GB, free: 70.37 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01273/23.53, allocations: 5.282 MB / 5.742 GB, free: 69.41 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.03633/23.57, allocations: 5.623 MB / 5.748 GB, free: 68.88 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01502/23.58, allocations: 3.613 MB / 5.751 GB, free: 68.87 MB / 490.7 MB Notification: Performance of SimCode: time 2.605e-06/23.58, allocations: 0 / 5.751 GB, free: 68.87 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.321/25.9, allocations: 0.4898 GB / 6.241 GB, free: 79.61 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002072/25.9, allocations: 224.4 kB / 6.241 GB, free: 79.39 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.51/51.41, allocations: 0 / 6.241 GB, free: 79.39 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Fluid.Examples.BranchingDynamicPipes_res.mat does not exist to compare? outputFormat=mat