Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.BranchingDynamicPipes,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Fluid_Examples_BranchingDynamicPipes",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.842/1.842, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.959e-05/2.987e-05, allocations: 7.094 kB / 255.4 MB, free: 3.121 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08811/0.08816, allocations: 44.51 MB / 299.9 MB, free: 6.559 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 10.26/10.34, allocations: 3.671 GB / 3.963 GB, free: 12.72 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002161/10.34, allocations: 70.34 kB / 3.963 GB, free: 12.69 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.674/16.02, allocations: 0.9749 GB / 4.938 GB, free: 19.63 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.826e-06/16.02, allocations: 4 kB / 4.938 GB, free: 19.62 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0005256/16.02, allocations: 168.5 kB / 4.939 GB, free: 19.61 MB / 458.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.05946/16.08, allocations: 9.829 MB / 4.948 GB, free: 15.44 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.472e-05/16.08, allocations: 11.22 kB / 4.948 GB, free: 15.44 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006514/16.09, allocations: 1.021 MB / 4.949 GB, free: 15.36 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00907/16.09, allocations: 0.8662 MB / 4.95 GB, free: 14.74 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02653/16.12, allocations: 5.705 MB / 4.956 GB, free: 11.2 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008819/16.12, allocations: 0.5293 MB / 4.956 GB, free: 10.69 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005469/16.13, allocations: 0.7302 MB / 4.957 GB, free: 9.977 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05054/16.18, allocations: 14.09 MB / 4.971 GB, free: 12.53 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005682/16.18, allocations: 27.84 kB / 4.971 GB, free: 12.5 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005564/16.18, allocations: 283.5 kB / 4.971 GB, free: 12.24 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001362/16.19, allocations: 0.7059 MB / 4.972 GB, free: 11.53 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4591/16.64, allocations: 16.66 MB / 4.988 GB, free: 32.61 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1515/16.8, allocations: 48.78 MB / 5.035 GB, free: 18.13 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0325/16.83, allocations: 10.92 MB / 5.046 GB, free: 18.04 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0207/16.85, allocations: 7.613 MB / 5.054 GB, free: 17.97 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005685/16.86, allocations: 4.183 MB / 5.058 GB, free: 13.73 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002232/16.86, allocations: 149.2 kB / 5.058 GB, free: 13.69 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.009301/16.87, allocations: 0.8842 MB / 5.059 GB, free: 13.5 MB / 474.7 MB Notification: Performance of pre-optimization done (n=926): time 4.499e-05/16.87, allocations: 0 / 5.059 GB, free: 13.5 MB / 474.7 MB Notification: Performance of matching and sorting (n=1188): time 0.483/17.35, allocations: 85.88 MB / 5.143 GB, free: 5.477 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001705/17.35, allocations: 172.7 kB / 5.143 GB, free: 5.293 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009567/17.36, allocations: 3.262 MB / 5.146 GB, free: 2.418 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.004688/17.36, allocations: 241.7 kB / 5.146 GB, free: 2.176 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002656/17.37, allocations: 2.146 MB / 5.148 GB, free: 300 kB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.009081/17.37, allocations: 4.139 MB / 5.152 GB, free: 12.58 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004613/17.38, allocations: 224 kB / 5.152 GB, free: 12.36 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.001398/17.38, allocations: 0.7722 MB / 5.153 GB, free: 11.71 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0291/17.41, allocations: 9.184 MB / 5.162 GB, free: 3.77 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.4653/17.88, allocations: 12.19 MB / 5.174 GB, free: 62.53 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03313/17.91, allocations: 10.28 MB / 5.184 GB, free: 62.38 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.025e-05/17.91, allocations: 9.281 kB / 5.184 GB, free: 62.38 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1441) (initialization): time 0.1039/18.01, allocations: 29.7 MB / 5.213 GB, free: 62.04 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.002307/18.01, allocations: 9.968 MB / 5.223 GB, free: 51.65 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001594/18.01, allocations: 24.75 kB / 5.223 GB, free: 51.65 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.5029/18.52, allocations: 83.75 MB / 5.305 GB, free: 31.71 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009451/18.53, allocations: 1.083 MB / 5.306 GB, free: 30.89 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1049/18.63, allocations: 33.44 MB / 5.338 GB, free: 9.621 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02692/18.66, allocations: 1.839 MB / 5.34 GB, free: 8.484 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005196/18.66, allocations: 0.602 MB / 5.341 GB, free: 7.973 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.876e-05/18.66, allocations: 5.875 kB / 5.341 GB, free: 7.969 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.5249/19.19, allocations: 28.78 MB / 5.369 GB, free: 70.64 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001546/19.19, allocations: 26.72 kB / 5.369 GB, free: 70.64 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.444/19.63, allocations: 62.56 MB / 5.43 GB, free: 70.3 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009735/19.64, allocations: 1.136 MB / 5.431 GB, free: 70.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09481/19.74, allocations: 31.42 MB / 5.462 GB, free: 69.49 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02463/19.76, allocations: 1.808 MB / 5.464 GB, free: 69.49 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005517/19.77, allocations: 0.5879 MB / 5.464 GB, free: 69.49 MB / 0.5105 GB 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.009749/19.78, allocations: 0.6222 MB / 5.465 GB, free: 69.38 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.006076/19.78, allocations: 0.6511 MB / 5.465 GB, free: 69.38 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.09583/19.88, allocations: 27.6 MB / 5.492 GB, free: 57.68 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001788/19.88, allocations: 124 kB / 5.492 GB, free: 57.56 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.718e-05/19.88, allocations: 0.6875 kB / 5.492 GB, free: 57.56 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.06685/19.95, allocations: 21.02 MB / 5.513 GB, free: 39.68 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5788/20.53, allocations: 44.6 MB / 5.557 GB, free: 70.34 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001536/20.53, allocations: 0.5 kB / 5.557 GB, free: 70.34 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.03528/20.56, allocations: 3.388 MB / 5.56 GB, free: 70.34 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.05716/20.62, allocations: 10.17 MB / 5.57 GB, free: 70.14 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.004602/20.62, allocations: 0.6322 MB / 5.57 GB, free: 70.14 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04483/20.67, allocations: 41.78 MB / 5.611 GB, free: 40.74 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.64e-06/20.67, allocations: 1.875 kB / 5.611 GB, free: 40.74 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1135/20.78, allocations: 35.68 MB / 5.646 GB, free: 39.71 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003166/20.79, allocations: 0.8016 MB / 5.647 GB, free: 39.27 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005904/20.79, allocations: 482.8 kB / 5.647 GB, free: 39.27 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.02347/20.81, allocations: 1.48 MB / 5.649 GB, free: 39.24 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004287/20.82, allocations: 0.809 MB / 5.65 GB, free: 39.23 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.003109/20.82, allocations: 0.566 MB / 5.65 GB, free: 39.23 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.005552/20.83, allocations: 2.47 MB / 5.652 GB, free: 39.07 MB / 0.5105 GB Notification: Performance of sort global known variables: time 6.81e-07/20.83, allocations: 0 / 5.652 GB, free: 39.07 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.03676/20.86, allocations: 7.059 MB / 5.659 GB, free: 39.07 MB / 0.5105 GB 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.1306/21, allocations: 40.43 MB / 5.699 GB, free: 30.6 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.1326/21.13, allocations: 34.77 MB / 5.733 GB, free: 3.254 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.76e-05/21.13, allocations: 5.812 kB / 5.733 GB, free: 3.25 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.4766/21.6, allocations: 14.73 MB / 5.747 GB, free: 74 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0307/21.64, allocations: 3.073 MB / 5.75 GB, free: 73.94 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1234/21.76, allocations: 32.44 MB / 5.782 GB, free: 69.2 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01256/21.77, allocations: 5.284 MB / 5.787 GB, free: 68.25 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01649/21.79, allocations: 3.715 MB / 5.791 GB, free: 68.23 MB / 0.5105 GB Notification: Performance of SimCode: time 1.843e-06/21.79, allocations: 1.25 kB / 5.791 GB, free: 68.23 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 12.39/34.18, allocations: 0.8526 GB / 6.643 GB, free: 72.91 MB / 0.5573 GB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Fluid.Examples.BranchingDynamicPipes_res.mat does not exist to compare? outputFormat=mat