Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestExamplesVariants.BranchingDynamicPipes_MomentumSteadyState,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestExamplesVariants_BranchingDynamicPipes_MomentumSteadyState",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.152/2.152, allocations: 209.4 MB / 216.9 MB, free: 6.668 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.023e-05/2.02e-05, allocations: 0 / 267.6 MB, free: 5.324 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1125/0.1125, allocations: 48.71 MB / 316.3 MB, free: 4.523 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 11.2/11.31, allocations: 3.673 GB / 3.982 GB, free: 75.52 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002381/11.31, allocations: 71.78 kB / 3.982 GB, free: 75.48 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.035/17.34, allocations: 0.9558 GB / 4.937 GB, free: 30.42 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.264e-06/17.34, allocations: 0.8438 kB / 4.937 GB, free: 30.42 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0008061/17.34, allocations: 156 kB / 4.938 GB, free: 30.42 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.06513/17.41, allocations: 9.628 MB / 4.947 GB, free: 28.1 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.951e-05/17.41, allocations: 11.78 kB / 4.947 GB, free: 28.1 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009452/17.42, allocations: 0.8507 MB / 4.948 GB, free: 27.7 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0298/17.45, allocations: 5.746 MB / 4.953 GB, free: 26.92 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008402/17.45, allocations: 241.6 kB / 4.954 GB, free: 26.92 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005649/17.45, allocations: 418.8 kB / 4.954 GB, free: 26.91 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.04515/17.5, allocations: 15.35 MB / 4.969 GB, free: 26.88 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0485/17.55, allocations: 12.88 MB / 4.982 GB, free: 26.23 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005339/17.55, allocations: 23.91 kB / 4.982 GB, free: 26.22 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005043/17.55, allocations: 11.8 kB / 4.982 GB, free: 26.22 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001169/17.56, allocations: 0.7082 MB / 4.982 GB, free: 26.21 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1422/17.7, allocations: 41.18 MB / 5.023 GB, free: 18.05 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02958/17.73, allocations: 10.4 MB / 5.033 GB, free: 17.98 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01785/17.75, allocations: 7.056 MB / 5.04 GB, free: 17.91 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005898/17.75, allocations: 4.156 MB / 5.044 GB, free: 13.68 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002376/17.75, allocations: 144 kB / 5.044 GB, free: 13.64 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.01139/17.76, allocations: 0.8749 MB / 5.045 GB, free: 13.35 MB / 490.7 MB Notification: Performance of pre-optimization done (n=881): time 6.739e-05/17.76, allocations: 2.875 kB / 5.045 GB, free: 13.35 MB / 490.7 MB Notification: Performance of matching and sorting (n=1121): time 0.9887/18.75, allocations: 83.98 MB / 5.127 GB, free: 37.01 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001801/18.75, allocations: 166.1 kB / 5.127 GB, free: 36.94 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007084/18.76, allocations: 2.288 MB / 5.129 GB, free: 36.74 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.004784/18.76, allocations: 32.27 kB / 5.129 GB, free: 36.71 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002395/18.77, allocations: 2.3 MB / 5.131 GB, free: 36.38 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.00832/18.77, allocations: 3.751 MB / 5.135 GB, free: 34.07 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004666/18.78, allocations: 0 / 5.135 GB, free: 34.07 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.001561/18.78, allocations: 0.7572 MB / 5.136 GB, free: 33.73 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02505/18.81, allocations: 8.737 MB / 5.144 GB, free: 33.71 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02644/18.83, allocations: 10.12 MB / 5.154 GB, free: 32.54 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.06219/18.89, allocations: 13.16 MB / 5.167 GB, free: 32.41 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001282/18.89, allocations: 10.12 kB / 5.167 GB, free: 32.41 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1375) (initialization): time 0.1286/19.02, allocations: 31.16 MB / 5.197 GB, free: 31.85 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.003477/19.03, allocations: 11.88 MB / 5.209 GB, free: 35.47 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002768/19.03, allocations: 29.25 kB / 5.209 GB, free: 35.47 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.3445/19.37, allocations: 41.53 MB / 5.25 GB, free: 35.16 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00959/19.38, allocations: 1.084 MB / 5.251 GB, free: 35.16 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1177/19.5, allocations: 35.33 MB / 5.285 GB, free: 17.11 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02654/19.53, allocations: 1.58 MB / 5.287 GB, free: 16.14 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00584/19.53, allocations: 0.6092 MB / 5.287 GB, free: 15.64 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.975e-05/19.53, allocations: 4 kB / 5.287 GB, free: 15.63 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.1438/19.68, allocations: 29.94 MB / 5.317 GB, free: 9.355 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000253/19.68, allocations: 30.06 kB / 5.317 GB, free: 9.328 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.8648/20.54, allocations: 40.41 MB / 5.356 GB, free: 66.9 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01018/20.55, allocations: 1.183 MB / 5.357 GB, free: 66.9 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09897/20.65, allocations: 31.26 MB / 5.388 GB, free: 66.08 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02409/20.67, allocations: 1.539 MB / 5.389 GB, free: 66.08 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005245/20.68, allocations: 0.5893 MB / 5.39 GB, free: 66.08 MB / 0.5261 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.008273/20.69, allocations: 230.2 kB / 5.39 GB, free: 65.98 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.08373/20.77, allocations: 22.41 MB / 5.412 GB, free: 65.46 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.006549/20.78, allocations: 0.5747 MB / 5.413 GB, free: 65.46 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.09685/20.88, allocations: 26.56 MB / 5.438 GB, free: 64.56 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001808/20.88, allocations: 118.2 kB / 5.439 GB, free: 64.56 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.345e-05/20.88, allocations: 6.656 kB / 5.439 GB, free: 64.56 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.07015/20.95, allocations: 20.87 MB / 5.459 GB, free: 59.79 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1454/21.09, allocations: 40.39 MB / 5.498 GB, free: 31.39 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001427/21.09, allocations: 4 kB / 5.498 GB, free: 31.39 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.02229/21.11, allocations: 2.134 MB / 5.5 GB, free: 29.72 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06072/21.17, allocations: 11.09 MB / 5.511 GB, free: 22.29 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.004813/21.18, allocations: 478.9 kB / 5.512 GB, free: 21.97 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4879/21.67, allocations: 30.69 MB / 5.542 GB, free: 63.64 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.785e-06/21.67, allocations: 1.594 kB / 5.542 GB, free: 63.64 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1279/21.8, allocations: 34.75 MB / 5.576 GB, free: 62.68 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002956/21.8, allocations: 0.6885 MB / 5.576 GB, free: 62.59 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006281/21.8, allocations: 263.6 kB / 5.577 GB, free: 62.59 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.02351/21.83, allocations: 1.243 MB / 5.578 GB, free: 62.59 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005065/21.83, allocations: 0.7638 MB / 5.579 GB, free: 62.58 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.004863/21.84, allocations: 0.5507 MB / 5.579 GB, free: 62.58 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.004252/21.84, allocations: 1.673 MB / 5.581 GB, free: 62.43 MB / 0.5261 GB Notification: Performance of sort global known variables: time 8.41e-07/21.84, allocations: 2.969 kB / 5.581 GB, free: 62.43 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.03973/21.88, allocations: 6.242 MB / 5.587 GB, free: 62.43 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.1432/22.03, allocations: 39.45 MB / 5.625 GB, free: 60.22 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.1033/22.13, allocations: 32.22 MB / 5.657 GB, free: 54.89 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.82e-05/22.13, allocations: 8.938 kB / 5.657 GB, free: 54.89 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.03506/22.16, allocations: 11.22 MB / 5.668 GB, free: 49.72 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02816/22.19, allocations: 2.691 MB / 5.67 GB, free: 47.96 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1098/22.3, allocations: 28.9 MB / 5.699 GB, free: 25.8 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0106/22.31, allocations: 5.203 MB / 5.704 GB, free: 21.91 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01453/22.33, allocations: 3.53 MB / 5.707 GB, free: 18.7 MB / 0.5261 GB Notification: Performance of SimCode: time 2.846e-06/22.33, allocations: 0 / 5.707 GB, free: 18.7 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 10.42/32.74, allocations: 0.5746 GB / 6.282 GB, free: 54.57 MB / 0.573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestExamplesVariants.BranchingDynamicPipes_MomentumSteadyState_res.mat does not exist to compare? outputFormat=mat