Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestExamplesVariants.BranchingDynamicPipes_MomentumSteadyState,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Fluid_TestExamplesVariants_BranchingDynamicPipes_MomentumSteadyState",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.989/1.989, allocations: 209.4 MB / 216.5 MB, free: 6.676 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.394e-05/3.408e-05, allocations: 4 kB / 267.6 MB, free: 4.941 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1411/0.1411, allocations: 48.7 MB / 316.3 MB, free: 4.141 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 10.87/11.01, allocations: 3.673 GB / 3.982 GB, free: 76.22 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002273/11.01, allocations: 72.16 kB / 3.982 GB, free: 76.18 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.572/16.58, allocations: 0.9558 GB / 4.937 GB, free: 44 kB / 490.7 MB Notification: Performance of FrontEnd: time 2.455e-06/16.58, allocations: 0 / 4.937 GB, free: 44 kB / 490.7 MB Notification: Performance of Transformations before backend: time 0.4145/17, allocations: 151 kB / 4.938 GB, free: 30.35 MB / 490.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.06627/17.06, allocations: 9.635 MB / 4.947 GB, free: 28.04 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.513e-05/17.06, allocations: 11.22 kB / 4.947 GB, free: 28.04 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009883/17.07, allocations: 0.8473 MB / 4.948 GB, free: 27.64 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03127/17.11, allocations: 5.747 MB / 4.953 GB, free: 26.86 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009589/17.11, allocations: 243.9 kB / 4.954 GB, free: 26.86 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00604/17.11, allocations: 415.3 kB / 4.954 GB, free: 26.85 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.04832/17.16, allocations: 15.35 MB / 4.969 GB, free: 26.82 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04719/17.21, allocations: 12.88 MB / 4.982 GB, free: 26.17 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005477/17.21, allocations: 17.94 kB / 4.982 GB, free: 26.16 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005593/17.21, allocations: 11.11 kB / 4.982 GB, free: 26.16 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001219/17.22, allocations: 0.7095 MB / 4.982 GB, free: 26.15 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1419/17.36, allocations: 41.19 MB / 5.023 GB, free: 17.99 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02913/17.39, allocations: 10.39 MB / 5.033 GB, free: 17.93 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01858/17.41, allocations: 7.056 MB / 5.04 GB, free: 17.86 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005729/17.41, allocations: 4.163 MB / 5.044 GB, free: 13.63 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002448/17.41, allocations: 141.1 kB / 5.044 GB, free: 13.57 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.01165/17.42, allocations: 0.8745 MB / 5.045 GB, free: 13.24 MB / 490.7 MB Notification: Performance of pre-optimization done (n=881): time 7.177e-05/17.42, allocations: 5.719 kB / 5.045 GB, free: 13.24 MB / 490.7 MB Notification: Performance of matching and sorting (n=1121): time 0.5424/17.97, allocations: 83.81 MB / 5.127 GB, free: 12.2 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000163/17.97, allocations: 168.2 kB / 5.127 GB, free: 12.02 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006868/17.97, allocations: 2.29 MB / 5.129 GB, free: 9.965 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.004643/17.98, allocations: 33.17 kB / 5.129 GB, free: 9.93 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.00287/17.98, allocations: 2.394 MB / 5.131 GB, free: 7.785 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.008996/17.99, allocations: 3.753 MB / 5.135 GB, free: 4.348 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004564/17.99, allocations: 0 / 5.135 GB, free: 4.348 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.001396/18, allocations: 0.7473 MB / 5.136 GB, free: 3.723 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.4644/18.46, allocations: 8.85 MB / 5.144 GB, free: 54.95 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02759/18.49, allocations: 10.12 MB / 5.154 GB, free: 53.79 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0627/18.55, allocations: 13.16 MB / 5.167 GB, free: 53.66 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001472/18.55, allocations: 10.81 kB / 5.167 GB, free: 53.66 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1375) (initialization): time 0.1327/18.68, allocations: 31.29 MB / 5.198 GB, free: 53.31 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.003086/18.69, allocations: 12.48 MB / 5.21 GB, free: 40.41 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003146/18.69, allocations: 31.06 kB / 5.21 GB, free: 40.41 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.3486/19.04, allocations: 41.52 MB / 5.25 GB, free: 40.1 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009381/19.05, allocations: 1.084 MB / 5.251 GB, free: 40.1 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1134/19.16, allocations: 35.33 MB / 5.286 GB, free: 31.47 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02639/19.19, allocations: 1.575 MB / 5.288 GB, free: 30.58 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005386/19.19, allocations: 0.6039 MB / 5.288 GB, free: 30.07 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.163e-05/19.19, allocations: 7.375 kB / 5.288 GB, free: 30.07 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.1199/19.31, allocations: 29.29 MB / 5.317 GB, free: 6.16 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002356/19.31, allocations: 30.3 kB / 5.317 GB, free: 6.133 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.8189/20.13, allocations: 42.35 MB / 5.358 GB, free: 50.16 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01041/20.14, allocations: 1.183 MB / 5.359 GB, free: 50.16 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09889/20.24, allocations: 31.26 MB / 5.39 GB, free: 49.34 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02593/20.27, allocations: 1.545 MB / 5.391 GB, free: 49.34 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005281/20.27, allocations: 0.5919 MB / 5.392 GB, free: 49.34 MB / 0.5105 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 (590): * Single equations (assignments): 589 * 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 {67 719} Notification: Performance of prepare postOptimizeDAE: time 0.008418/20.28, allocations: 225.6 kB / 5.392 GB, free: 49.23 MB / 0.5105 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.08205/20.36, allocations: 22.4 MB / 5.414 GB, free: 48.72 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005822/20.37, allocations: 0.5828 MB / 5.415 GB, free: 48.72 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1006/20.47, allocations: 26.56 MB / 5.44 GB, free: 47.78 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002465/20.47, allocations: 117.1 kB / 5.441 GB, free: 47.78 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.614e-05/20.47, allocations: 0 / 5.441 GB, free: 47.78 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0746/20.54, allocations: 20.87 MB / 5.461 GB, free: 43.16 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1548/20.7, allocations: 40.4 MB / 5.5 GB, free: 14.79 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001626/20.7, allocations: 0.9688 kB / 5.5 GB, free: 14.79 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.02254/20.72, allocations: 2.129 MB / 5.502 GB, free: 13.12 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06362/20.78, allocations: 11.09 MB / 5.513 GB, free: 5.695 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.005106/20.79, allocations: 479.8 kB / 5.514 GB, free: 5.375 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.5074/21.3, allocations: 30.67 MB / 5.544 GB, free: 61.79 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.664e-06/21.3, allocations: 6.062 kB / 5.544 GB, free: 61.79 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1269/21.42, allocations: 34.74 MB / 5.578 GB, free: 60.82 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002999/21.43, allocations: 0.689 MB / 5.578 GB, free: 60.73 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006471/21.43, allocations: 265.3 kB / 5.579 GB, free: 60.73 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.02378/21.46, allocations: 1.25 MB / 5.58 GB, free: 60.73 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005343/21.46, allocations: 0.7645 MB / 5.581 GB, free: 60.71 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.005114/21.47, allocations: 0.5472 MB / 5.581 GB, free: 60.71 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.004486/21.47, allocations: 1.673 MB / 5.583 GB, free: 60.57 MB / 0.5261 GB Notification: Performance of sort global known variables: time 7.62e-07/21.47, allocations: 1.188 kB / 5.583 GB, free: 60.57 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.04147/21.51, allocations: 6.24 MB / 5.589 GB, free: 60.57 MB / 0.5261 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 (1056): * Single equations (assignments): 1029 * 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,2 22,2 6,2 6,2 6,2 6,2 6,2 6,2 22,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.1451/21.66, allocations: 39.46 MB / 5.627 GB, free: 58.35 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.1032/21.76, allocations: 32.29 MB / 5.659 GB, free: 53.12 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.931e-05/21.76, allocations: 4.719 kB / 5.659 GB, free: 53.12 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.03597/21.8, allocations: 11.22 MB / 5.67 GB, free: 48.49 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02924/21.83, allocations: 2.69 MB / 5.672 GB, free: 46.74 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1181/21.95, allocations: 28.54 MB / 5.7 GB, free: 24.84 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01129/21.96, allocations: 5.206 MB / 5.705 GB, free: 20.94 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.03419/21.99, allocations: 5.155 MB / 5.71 GB, free: 17.38 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01435/22.01, allocations: 3.445 MB / 5.714 GB, free: 14.24 MB / 0.5261 GB Notification: Performance of SimCode: time 2.114e-06/22.01, allocations: 0 / 5.714 GB, free: 14.24 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.32/24.33, allocations: 454.6 MB / 6.158 GB, free: 85.77 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002441/24.33, allocations: 208.2 kB / 6.158 GB, free: 85.49 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.02/46.34, allocations: 0 / 6.158 GB, free: 85.49 MB / 0.5573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.Fluid.TestExamplesVariants.BranchingDynamicPipes_MomentumSteadyState_res.mat does not exist to compare? outputFormat=mat