Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes4",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.892/1.892, allocations: 209.4 MB / 216.9 MB, free: 6.668 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.355e-05/2.352e-05, allocations: 6.25 kB / 267.6 MB, free: 5.328 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1015/0.1015, allocations: 48.7 MB / 316.3 MB, free: 4.531 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.585/7.687, allocations: 2.549 GB / 2.858 GB, free: 37.85 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002546/7.687, allocations: 78.08 kB / 2.858 GB, free: 37.81 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.641/12.33, allocations: 0.8686 GB / 3.727 GB, free: 15.24 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.883e-06/12.33, allocations: 0 / 3.727 GB, free: 15.24 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.00024/12.33, allocations: 70.02 kB / 3.727 GB, free: 15.22 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: 532 * Number of variables: 532 Notification: Performance of Generate backend data structure: time 0.01733/12.35, allocations: 3.896 MB / 3.731 GB, free: 11.42 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.268e-05/12.35, allocations: 12.03 kB / 3.731 GB, free: 11.41 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008833/12.35, allocations: 0.8476 MB / 3.731 GB, free: 10.55 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009114/12.36, allocations: 2.061 MB / 3.733 GB, free: 8.484 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002896/12.36, allocations: 91.98 kB / 3.733 GB, free: 8.395 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001045/12.37, allocations: 120 kB / 3.734 GB, free: 8.277 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007138/12.37, allocations: 2.655 MB / 3.736 GB, free: 5.617 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006724/12.38, allocations: 2.862 MB / 3.739 GB, free: 2.562 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.906e-05/12.38, allocations: 7.906 kB / 3.739 GB, free: 2.555 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003356/12.38, allocations: 4 kB / 3.739 GB, free: 2.551 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000311/12.38, allocations: 175.7 kB / 3.739 GB, free: 2.379 MB / 458.7 MB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7769/13.16, allocations: 109.5 MB / 3.846 GB, free: 17.42 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004473/13.16, allocations: 2.059 MB / 3.848 GB, free: 16.82 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002116/13.16, allocations: 0.9426 MB / 3.849 GB, free: 16.81 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05577/13.22, allocations: 17.54 MB / 3.866 GB, free: 21.27 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002697/13.22, allocations: 1.15 MB / 3.867 GB, free: 21.11 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=149): time 5.13e-06/13.22, allocations: 4 kB / 3.867 GB, free: 21.11 MB / 0.5105 GB Notification: Performance of matching and sorting (n=165): time 0.03062/13.25, allocations: 7.792 MB / 3.875 GB, free: 19.57 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002242/13.25, allocations: 365.6 kB / 3.875 GB, free: 19.16 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002297/13.26, allocations: 1.148 MB / 3.876 GB, free: 18.98 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0004013/13.26, allocations: 29.02 kB / 3.876 GB, free: 18.95 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009848/13.26, allocations: 0.9953 MB / 3.877 GB, free: 18.53 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007505/13.26, allocations: 0.5379 MB / 3.878 GB, free: 18.25 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000192/13.26, allocations: 7 kB / 3.878 GB, free: 18.25 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.000219/13.26, allocations: 387 kB / 3.878 GB, free: 17.94 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002225/13.26, allocations: 0.9854 MB / 3.879 GB, free: 17.93 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002441/13.26, allocations: 1.434 MB / 3.881 GB, free: 17.43 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01863/13.28, allocations: 2.78 MB / 3.883 GB, free: 17.36 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.482e-05/13.28, allocations: 6.031 kB / 3.883 GB, free: 17.36 MB / 0.5105 GB Notification: Performance of matching and sorting (n=259) (initialization): time 0.02339/13.3, allocations: 4.37 MB / 3.888 GB, free: 17.17 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.001971/13.31, allocations: 4.859 MB / 3.892 GB, free: 12.07 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.225e-05/13.31, allocations: 11.22 kB / 3.892 GB, free: 12.07 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009385/13.31, allocations: 223.5 kB / 3.893 GB, free: 12.04 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004222/13.31, allocations: 0.5169 MB / 3.893 GB, free: 12.04 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002277/13.31, allocations: 2.454 MB / 3.895 GB, free: 9.957 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004541/13.32, allocations: 265.6 kB / 3.896 GB, free: 9.926 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004301/13.32, allocations: 103.5 kB / 3.896 GB, free: 9.926 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.767e-05/13.32, allocations: 3.719 kB / 3.896 GB, free: 9.926 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0217/13.34, allocations: 4.027 MB / 3.9 GB, free: 9.805 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.844e-05/13.34, allocations: 19.62 kB / 3.9 GB, free: 9.805 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008129/13.34, allocations: 220.4 kB / 3.9 GB, free: 9.77 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003787/13.35, allocations: 0.5107 MB / 3.9 GB, free: 9.766 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002174/13.35, allocations: 2.455 MB / 3.903 GB, free: 7.684 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003194/13.35, allocations: 245.3 kB / 3.903 GB, free: 7.656 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002694/13.35, allocations: 100.6 kB / 3.903 GB, free: 7.656 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 28 (pipe3.state_a.phase,pipe2.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.state_a.phase,pipe1.state_b.phase,pipe1.state_a.phase,$whenCondition1,$whenCondition2,pipe1.statesFM[2].phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,splitter.medium.phase,source.medium.phase,sink.medium.phase,pipe3.state_b.phase,pipe2.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (247): * Single equations (assignments): 241 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0007894/13.35, allocations: 233.6 kB / 3.903 GB, free: 7.484 MB / 0.5105 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00833/13.36, allocations: 2.465 MB / 3.906 GB, free: 7.289 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005022/13.36, allocations: 187.8 kB / 3.906 GB, free: 7.195 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01303/13.37, allocations: 6.312 MB / 3.912 GB, free: 6.668 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.385e-05/13.37, allocations: 70.16 kB / 3.912 GB, free: 6.668 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.256e-05/13.37, allocations: 3.953 kB / 3.912 GB, free: 6.664 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01015/13.38, allocations: 5.28 MB / 3.917 GB, free: 5.926 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01892/13.4, allocations: 9.009 MB / 3.926 GB, free: 2.73 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.78e-05/13.4, allocations: 0 / 3.926 GB, free: 2.73 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002992/13.41, allocations: 365.3 kB / 3.927 GB, free: 2.461 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00142/13.41, allocations: 318.3 kB / 3.927 GB, free: 2.277 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003238/13.41, allocations: 38 kB / 3.927 GB, free: 2.258 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003117/13.41, allocations: 2.636 MB / 3.929 GB, free: 15.88 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.228e-05/13.41, allocations: 4.312 kB / 3.929 GB, free: 15.87 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02156/13.43, allocations: 6.238 MB / 3.936 GB, free: 12.31 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003386/13.44, allocations: 0.688 MB / 3.936 GB, free: 11.83 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009895/13.44, allocations: 15.88 kB / 3.936 GB, free: 11.82 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003732/13.44, allocations: 176.6 kB / 3.936 GB, free: 11.69 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005691/13.44, allocations: 138.7 kB / 3.937 GB, free: 11.63 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003252/13.44, allocations: 64.78 kB / 3.937 GB, free: 11.59 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.00323/13.45, allocations: 1.043 MB / 3.938 GB, free: 10.97 MB / 0.5261 GB Notification: Performance of sort global known variables: time 9.92e-07/13.45, allocations: 0 / 3.938 GB, free: 10.97 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01658/13.46, allocations: 2.684 MB / 3.94 GB, free: 8.727 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h,splitter.medium.p,splitter.medium.h) * Number of discrete variables: 44 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse22.phase,$cse22.region,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse26.region3boundary,$cse27.region3boundary,$cse28.phase,$cse28.region,$cse30.region3boundary,$cse31.region3boundary,$cse32.phase,$cse32.region,$cse34.phase,$cse34.region,$cse35.region3boundary,$cse36.region3boundary,$cse37.phase,$cse37.region,$whenCondition1,$whenCondition2,pipe1.statesFM[2].phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,splitter.medium.phase) * Number of discrete states: 10 (valveOpening2.last,valveOpening2.nextEvent,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (183): * Single equations (assignments): 158 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 19 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.03868/13.5, allocations: 10.03 MB / 3.95 GB, free: 2.375 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.3897/13.89, allocations: 4.578 MB / 3.954 GB, free: 95.55 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 9.698e-06/13.89, allocations: 1.844 kB / 3.954 GB, free: 95.55 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.005307/13.9, allocations: 2.098 MB / 3.957 GB, free: 95.42 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008125/13.9, allocations: 0.8524 MB / 3.957 GB, free: 95.4 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02246/13.93, allocations: 6.744 MB / 3.964 GB, free: 94.31 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003087/13.93, allocations: 2.143 MB / 3.966 GB, free: 93.57 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002994/13.93, allocations: 1.259 MB / 3.967 GB, free: 93.57 MB / 0.5261 GB Notification: Performance of SimCode: time 1.533e-06/13.93, allocations: 0.7812 kB / 3.967 GB, free: 93.57 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.89/18.82, allocations: 126.4 MB / 4.091 GB, free: 67.55 MB / 0.5261 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4_res.mat does not exist to compare? outputFormat=mat