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.659/1.659, allocations: 171.2 MB / 183.8 MB, free: 11.96 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.946e-05/2.958e-05, allocations: 0 / 225 MB, free: 2.641 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2552/0.2553, allocations: 38.78 MB / 263.8 MB, free: 9.758 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 10.35/10.61, allocations: 3.665 GB / 3.922 GB, free: 30.29 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002047/10.61, allocations: 72.83 kB / 3.923 GB, free: 30.25 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.8/16.41, allocations: 0.9647 GB / 4.887 GB, free: 23.35 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.064e-06/16.41, allocations: 0 / 4.887 GB, free: 23.35 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0005435/16.41, allocations: 160.3 kB / 4.887 GB, free: 23.34 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.05837/16.47, allocations: 9.827 MB / 4.897 GB, free: 19.41 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.202e-05/16.47, allocations: 6.938 kB / 4.897 GB, free: 19.41 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006198/16.47, allocations: 1.022 MB / 4.898 GB, free: 19.33 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008627/16.48, allocations: 0.851 MB / 4.899 GB, free: 18.93 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02645/16.51, allocations: 5.71 MB / 4.904 GB, free: 18.15 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009088/16.51, allocations: 0.527 MB / 4.905 GB, free: 18.13 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005514/16.51, allocations: 0.7276 MB / 4.906 GB, free: 18.11 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04768/16.56, allocations: 14.09 MB / 4.919 GB, free: 17.42 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005218/16.56, allocations: 30.41 kB / 4.919 GB, free: 17.41 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005375/16.57, allocations: 287.3 kB / 4.92 GB, free: 17.41 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001165/16.57, allocations: 0.705 MB / 4.92 GB, free: 17.4 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05029/16.62, allocations: 16.66 MB / 4.937 GB, free: 17.34 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1388/16.76, allocations: 43.34 MB / 4.979 GB, free: 2.449 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03323/16.79, allocations: 10.97 MB / 4.99 GB, free: 13.02 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.02224/16.81, allocations: 7.605 MB / 4.997 GB, free: 6.293 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006673/16.82, allocations: 4.189 MB / 5.001 GB, free: 1.523 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000239/16.82, allocations: 147.3 kB / 5.001 GB, free: 1.371 MB / 442.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.009254/16.83, allocations: 0.887 MB / 5.002 GB, free: 0.5586 MB / 442.7 MB Notification: Performance of pre-optimization done (n=926): time 2.821e-05/16.83, allocations: 0 / 5.002 GB, free: 0.5586 MB / 442.7 MB Notification: Performance of matching and sorting (n=1188): time 0.8943/17.72, allocations: 87.56 MB / 5.088 GB, free: 35.64 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001335/17.72, allocations: 178 kB / 5.088 GB, free: 35.57 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009153/17.73, allocations: 3.266 MB / 5.091 GB, free: 35.31 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00482/17.74, allocations: 238.7 kB / 5.091 GB, free: 35.28 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002362/17.74, allocations: 2.14 MB / 5.093 GB, free: 34.49 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.008492/17.75, allocations: 4.141 MB / 5.097 GB, free: 32.09 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004724/17.75, allocations: 223.6 kB / 5.098 GB, free: 32.09 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.001379/17.76, allocations: 0.7688 MB / 5.098 GB, free: 31.76 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02759/17.78, allocations: 9.18 MB / 5.107 GB, free: 31.74 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02869/17.81, allocations: 10.55 MB / 5.118 GB, free: 30.12 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0294/17.84, allocations: 10.28 MB / 5.128 GB, free: 23.89 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.005e-05/17.84, allocations: 4 kB / 5.128 GB, free: 23.89 MB / 442.7 MB Notification: Performance of matching and sorting (n=1441) (initialization): time 0.1097/17.95, allocations: 30.29 MB / 5.157 GB, free: 0 / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.004437/17.96, allocations: 9.983 MB / 5.167 GB, free: 5.367 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000176/17.96, allocations: 28 kB / 5.167 GB, free: 5.34 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.9109/18.87, allocations: 82.98 MB / 5.248 GB, free: 48.11 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009556/18.88, allocations: 1.083 MB / 5.249 GB, free: 48.11 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1086/18.99, allocations: 33.44 MB / 5.282 GB, free: 31.68 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02718/19.01, allocations: 1.84 MB / 5.284 GB, free: 30.73 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005282/19.02, allocations: 0.6008 MB / 5.284 GB, free: 30.31 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.04e-05/19.02, allocations: 4.625 kB / 5.284 GB, free: 30.3 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.09347/19.11, allocations: 28.42 MB / 5.312 GB, free: 15.78 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001541/19.11, allocations: 24 kB / 5.312 GB, free: 15.75 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.8928/20, allocations: 63.98 MB / 5.374 GB, free: 43.05 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01012/20.01, allocations: 1.132 MB / 5.376 GB, free: 43.05 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09914/20.11, allocations: 31.42 MB / 5.406 GB, free: 42.24 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02533/20.14, allocations: 1.807 MB / 5.408 GB, free: 42.24 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.006388/20.15, allocations: 0.5906 MB / 5.409 GB, free: 42.24 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.01008/20.16, allocations: 0.6197 MB / 5.409 GB, free: 42.13 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.006259/20.16, allocations: 0.6551 MB / 5.41 GB, free: 42.13 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.09675/20.26, allocations: 27.59 MB / 5.437 GB, free: 41.26 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001854/20.26, allocations: 127.6 kB / 5.437 GB, free: 41.26 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.393e-05/20.26, allocations: 2.844 kB / 5.437 GB, free: 41.26 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0672/20.33, allocations: 21.02 MB / 5.457 GB, free: 32.13 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1568/20.48, allocations: 43.24 MB / 5.5 GB, free: 14.62 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002064/20.48, allocations: 0 / 5.5 GB, free: 14.62 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.03796/20.52, allocations: 3.39 MB / 5.503 GB, free: 12.06 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.4615/20.98, allocations: 10.23 MB / 5.513 GB, free: 62.51 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.005322/20.99, allocations: 0.6293 MB / 5.514 GB, free: 62.51 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04766/21.04, allocations: 41.79 MB / 5.554 GB, free: 33.12 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.311e-06/21.04, allocations: 0 / 5.554 GB, free: 33.12 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1214/21.16, allocations: 35.68 MB / 5.589 GB, free: 32.13 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003138/21.16, allocations: 0.8008 MB / 5.59 GB, free: 31.73 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006528/21.17, allocations: 483.5 kB / 5.59 GB, free: 31.73 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.02455/21.19, allocations: 1.479 MB / 5.592 GB, free: 31.71 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005321/21.2, allocations: 0.8087 MB / 5.593 GB, free: 31.69 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.005087/21.2, allocations: 0.5692 MB / 5.593 GB, free: 31.69 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.006497/21.21, allocations: 2.467 MB / 5.596 GB, free: 31.53 MB / 474.7 MB Notification: Performance of sort global known variables: time 7.52e-07/21.21, allocations: 2.094 kB / 5.596 GB, free: 31.53 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.03916/21.25, allocations: 7.044 MB / 5.603 GB, free: 31.53 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.1391/21.39, allocations: 40.42 MB / 5.642 GB, free: 23.35 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.1215/21.51, allocations: 34.85 MB / 5.676 GB, free: 13.74 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-05/21.51, allocations: 4.781 kB / 5.676 GB, free: 13.73 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.054/21.56, allocations: 12.95 MB / 5.689 GB, free: 2.902 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.03073/21.59, allocations: 3.071 MB / 5.692 GB, free: 0.8164 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5286/22.12, allocations: 33.22 MB / 5.724 GB, free: 70.16 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01169/22.13, allocations: 5.285 MB / 5.729 GB, free: 69.21 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01564/22.15, allocations: 3.714 MB / 5.733 GB, free: 69.2 MB / 490.7 MB Notification: Performance of SimCode: time 1.132e-06/22.15, allocations: 7.141 kB / 5.733 GB, free: 69.2 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 12.17/34.32, allocations: 0.8524 GB / 6.585 GB, free: 97.01 MB / 0.5105 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