Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestExamplesVariants.BranchingDynamicPipes_MomentumSteadyState,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestExamplesVariants_BranchingDynamicPipes_MomentumSteadyState",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.37 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.556e-05/3.548e-05, allocations: 7.984 kB / 305 MB, free: 5.566 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3996/0.3996, allocations: 54.86 MB / 359.9 MB, free: 2.316 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 10.8/11.2, allocations: 3.68 GB / 4.031 GB, free: 51.2 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002926/11.2, allocations: 72.22 kB / 4.031 GB, free: 51.16 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.674/16.87, allocations: 0.9745 GB / 5.006 GB, free: 21.38 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.334e-06/16.87, allocations: 0 / 5.006 GB, free: 21.38 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0005525/16.87, allocations: 162.9 kB / 5.006 GB, free: 21.36 MB / 0.5105 GB 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.05934/16.93, allocations: 9.638 MB / 5.015 GB, free: 12.4 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.318e-05/16.93, allocations: 12.03 kB / 5.015 GB, free: 12.39 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006584/16.94, allocations: 1.022 MB / 5.016 GB, free: 11.36 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008974/16.95, allocations: 0.8579 MB / 5.017 GB, free: 10.49 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02805/16.97, allocations: 5.757 MB / 5.023 GB, free: 4.699 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001187/16.98, allocations: 0.5204 MB / 5.023 GB, free: 4.176 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006775/16.98, allocations: 0.6987 MB / 5.024 GB, free: 3.477 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06637/17.05, allocations: 13.75 MB / 5.037 GB, free: 5.539 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005325/17.05, allocations: 35.73 kB / 5.037 GB, free: 5.504 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005383/17.05, allocations: 288 kB / 5.038 GB, free: 5.223 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001245/17.06, allocations: 0.7059 MB / 5.038 GB, free: 4.516 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.5056/17.56, allocations: 16.08 MB / 5.054 GB, free: 34.24 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1419/17.7, allocations: 47.59 MB / 5.101 GB, free: 19.75 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02942/17.73, allocations: 10.44 MB / 5.111 GB, free: 19.68 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01879/17.75, allocations: 7.104 MB / 5.118 GB, free: 19.62 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005371/17.76, allocations: 4.188 MB / 5.122 GB, free: 15.38 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000231/17.76, allocations: 144.2 kB / 5.122 GB, free: 15.33 MB / 0.5261 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.009556/17.77, allocations: 0.8539 MB / 5.123 GB, free: 15.14 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=882): time 3.884e-05/17.77, allocations: 0 / 5.123 GB, free: 15.14 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1122): time 0.4637/18.23, allocations: 83.2 MB / 5.204 GB, free: 14.88 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001678/18.23, allocations: 168.2 kB / 5.204 GB, free: 14.7 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008584/18.24, allocations: 3.33 MB / 5.207 GB, free: 11.77 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.004396/18.24, allocations: 229.7 kB / 5.208 GB, free: 11.54 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.002616/18.25, allocations: 2.231 MB / 5.21 GB, free: 9.633 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.008343/18.25, allocations: 3.896 MB / 5.214 GB, free: 6.141 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002707/18.26, allocations: 216 kB / 5.214 GB, free: 5.93 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.001043/18.26, allocations: 0.7526 MB / 5.215 GB, free: 5.297 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.04114/18.3, allocations: 9.62 MB / 5.224 GB, free: 0 / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02957/18.33, allocations: 10.12 MB / 5.234 GB, free: 6.832 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03217/18.36, allocations: 9.942 MB / 5.244 GB, free: 15.1 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.737e-05/18.36, allocations: 8 kB / 5.244 GB, free: 15.09 MB / 0.573 GB Notification: Performance of matching and sorting (n=1375) (initialization): time 0.5775/18.94, allocations: 28.88 MB / 5.272 GB, free: 73.07 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.002681/18.94, allocations: 11.88 MB / 5.283 GB, free: 60.7 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001443/18.94, allocations: 29.03 kB / 5.283 GB, free: 60.7 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.4639/19.41, allocations: 76.4 MB / 5.358 GB, free: 60.15 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009315/19.42, allocations: 1.074 MB / 5.359 GB, free: 60.14 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1114/19.53, allocations: 31.55 MB / 5.39 GB, free: 58.95 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02549/19.55, allocations: 1.785 MB / 5.392 GB, free: 58.02 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004737/19.56, allocations: 0.5969 MB / 5.392 GB, free: 57.6 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.865e-05/19.56, allocations: 5.875 kB / 5.392 GB, free: 57.6 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.08788/19.65, allocations: 26.9 MB / 5.418 GB, free: 43.77 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001812/19.65, allocations: 32 kB / 5.418 GB, free: 43.74 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.361/20.01, allocations: 52.93 MB / 5.47 GB, free: 4.809 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009818/20.02, allocations: 1.168 MB / 5.471 GB, free: 3.891 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5618/20.58, allocations: 29.28 MB / 5.5 GB, free: 74.95 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0234/20.6, allocations: 1.748 MB / 5.502 GB, free: 74.95 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004515/20.61, allocations: 0.5832 MB / 5.502 GB, free: 74.95 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 136 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (588): * Single equations (assignments): 587 * 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 {72 716} Notification: Performance of prepare postOptimizeDAE: time 0.006175/20.61, allocations: 0.605 MB / 5.503 GB, free: 74.84 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004291/20.62, allocations: 0.6402 MB / 5.503 GB, free: 74.84 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.09015/20.71, allocations: 26.78 MB / 5.53 GB, free: 73.98 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001853/20.71, allocations: 115.4 kB / 5.53 GB, free: 73.98 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.601e-05/20.71, allocations: 4.469 kB / 5.53 GB, free: 73.98 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0638/20.77, allocations: 20.44 MB / 5.55 GB, free: 73.24 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1402/20.91, allocations: 41.32 MB / 5.59 GB, free: 64 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001749/20.91, allocations: 2.906 kB / 5.59 GB, free: 64 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.02203/20.93, allocations: 2.139 MB / 5.592 GB, free: 63.93 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0703/21, allocations: 11.68 MB / 5.603 GB, free: 62.22 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.004502/21.01, allocations: 0.6092 MB / 5.604 GB, free: 62 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03964/21.05, allocations: 30.01 MB / 5.633 GB, free: 40.25 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.548e-06/21.05, allocations: 0 / 5.633 GB, free: 40.25 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1105/21.16, allocations: 35.13 MB / 5.668 GB, free: 13.23 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00335/21.16, allocations: 0.7932 MB / 5.668 GB, free: 12.48 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006245/21.17, allocations: 461.9 kB / 5.669 GB, free: 12.09 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.02415/21.19, allocations: 1.448 MB / 5.67 GB, free: 11.16 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004894/21.2, allocations: 0.7636 MB / 5.671 GB, free: 10.7 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00459/21.2, allocations: 0.5515 MB / 5.672 GB, free: 10.25 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.006042/21.21, allocations: 2.514 MB / 5.674 GB, free: 8.02 MB / 0.573 GB Notification: Performance of sort global known variables: time 8.62e-07/21.21, allocations: 0 / 5.674 GB, free: 8.02 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.03803/21.25, allocations: 6.92 MB / 5.681 GB, free: 1.77 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 60 (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,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,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,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) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1057): * Single equations (assignments): 1030 * 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: 27 * Mixed (continuous/discrete) equation systems: 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: 22 {2 6,2 6,2 6,2 6,2 6,2 6,2 6,4 20,2 6,2 6,2 6,2 6,2 6,2 6,4 20,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.6487/21.9, allocations: 42.14 MB / 5.722 GB, free: 73.39 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.1049/22, allocations: 32.65 MB / 5.754 GB, free: 72.97 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.735e-05/22, allocations: 7.531 kB / 5.754 GB, free: 72.97 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.03587/22.04, allocations: 11.4 MB / 5.765 GB, free: 72.4 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02759/22.06, allocations: 3.068 MB / 5.768 GB, free: 72.3 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1059/22.17, allocations: 29.87 MB / 5.797 GB, free: 68.37 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009799/22.18, allocations: 5.199 MB / 5.802 GB, free: 67.32 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01199/22.19, allocations: 3.553 MB / 5.806 GB, free: 64.73 MB / 0.573 GB Notification: Performance of SimCode: time 2.004e-06/22.19, allocations: 0 / 5.806 GB, free: 64.73 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 10.7/32.89, allocations: 0.5796 GB / 6.385 GB, free: 123.5 MB / 0.6355 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestExamplesVariants.BranchingDynamicPipes_MomentumSteadyState_res.mat does not exist to compare? outputFormat=mat