Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.014/2.014, allocations: 209.3 MB / 221.9 MB, free: 1.926 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.614e-05/3.64e-05, allocations: 0 / 273.1 MB, free: 0.6484 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1014, allocations: 48.7 MB / 321.8 MB, free: 15.85 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.805/7.907, allocations: 2.562 GB / 2.876 GB, free: 9.543 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002899/7.907, allocations: 79.33 kB / 2.876 GB, free: 9.504 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.401/12.31, allocations: 0.7788 GB / 3.655 GB, free: 27.39 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.256e-06/12.31, allocations: 2.875 kB / 3.655 GB, free: 27.39 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003187/12.31, allocations: 58.66 kB / 3.655 GB, free: 27.38 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: 463 * Number of variables: 463 Notification: Performance of Generate backend data structure: time 0.02003/12.33, allocations: 3.533 MB / 3.659 GB, free: 25.63 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.3e-05/12.33, allocations: 9.781 kB / 3.659 GB, free: 25.63 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0013/12.33, allocations: 267.8 kB / 3.659 GB, free: 25.58 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008501/12.34, allocations: 0.755 MB / 3.66 GB, free: 25.46 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008462/12.35, allocations: 1.978 MB / 3.662 GB, free: 25.02 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000363/12.35, allocations: 165.3 kB / 3.662 GB, free: 25.01 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001065/12.35, allocations: 178.3 kB / 3.662 GB, free: 25.01 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01203/12.36, allocations: 3.306 MB / 3.665 GB, free: 24.52 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.169e-05/12.36, allocations: 7.094 kB / 3.665 GB, free: 24.52 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005085/12.36, allocations: 83.14 kB / 3.665 GB, free: 24.52 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003232/12.36, allocations: 144.3 kB / 3.665 GB, free: 24.52 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01122/12.37, allocations: 3.049 MB / 3.668 GB, free: 24.5 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.02756/12.4, allocations: 13.64 MB / 3.682 GB, free: 16.25 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006571/12.41, allocations: 1.959 MB / 3.684 GB, free: 16.22 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002566/12.41, allocations: 1.025 MB / 3.685 GB, free: 16.2 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05876/12.47, allocations: 18.85 MB / 3.703 GB, free: 20.27 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005726/12.47, allocations: 1.591 MB / 3.705 GB, free: 20.14 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001666/12.48, allocations: 168.6 kB / 3.705 GB, free: 20.07 MB / 474.7 MB Notification: Performance of pre-optimization done (n=151): time 8.356e-06/12.48, allocations: 3.75 kB / 3.705 GB, free: 20.07 MB / 474.7 MB Notification: Performance of matching and sorting (n=163): time 0.0271/12.5, allocations: 6.868 MB / 3.711 GB, free: 19.1 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002066/12.5, allocations: 263.3 kB / 3.712 GB, free: 18.82 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002683/12.51, allocations: 1.251 MB / 3.713 GB, free: 18.64 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005728/12.51, allocations: 57.23 kB / 3.713 GB, free: 18.61 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008291/12.51, allocations: 0.8234 MB / 3.714 GB, free: 18.19 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007872/12.51, allocations: 0.5499 MB / 3.714 GB, free: 17.84 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001909/12.51, allocations: 33.16 kB / 3.714 GB, free: 17.84 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002501/12.51, allocations: 389.8 kB / 3.715 GB, free: 17.52 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002346/12.51, allocations: 0.9106 MB / 3.716 GB, free: 17.52 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002746/12.51, allocations: 1.346 MB / 3.717 GB, free: 17.07 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002923/12.52, allocations: 1.154 MB / 3.718 GB, free: 16.97 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.521e-05/12.52, allocations: 3.281 kB / 3.718 GB, free: 16.97 MB / 474.7 MB Notification: Performance of matching and sorting (n=232) (initialization): time 0.00843/12.53, allocations: 2.824 MB / 3.721 GB, free: 16.75 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002079/12.53, allocations: 4.251 MB / 3.725 GB, free: 12.29 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.864e-05/12.53, allocations: 12.09 kB / 3.725 GB, free: 12.29 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004477/12.53, allocations: 0.517 MB / 3.726 GB, free: 12.25 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003737/12.54, allocations: 451 kB / 3.726 GB, free: 12.25 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003047/12.54, allocations: 2.707 MB / 3.729 GB, free: 10.16 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004472/12.54, allocations: 253.3 kB / 3.729 GB, free: 10.13 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003881/12.54, allocations: 94.45 kB / 3.729 GB, free: 10.13 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.716e-05/12.54, allocations: 3.25 kB / 3.729 GB, free: 10.13 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006875/12.55, allocations: 2.568 MB / 3.731 GB, free: 9.934 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.921e-05/12.55, allocations: 13.62 kB / 3.731 GB, free: 9.934 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009047/12.55, allocations: 194.7 kB / 3.732 GB, free: 9.906 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003731/12.56, allocations: 463.7 kB / 3.732 GB, free: 9.879 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00177/12.56, allocations: 1.881 MB / 3.734 GB, free: 8.312 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003444/12.56, allocations: 260.8 kB / 3.734 GB, free: 8.25 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004291/12.56, allocations: 91.84 kB / 3.734 GB, free: 8.23 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 27 (valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.state_a.phase,$whenCondition1,$whenCondition2,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.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,pipe3.state_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (215): * Single equations (assignments): 209 * 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,2 5} Notification: Performance of prepare postOptimizeDAE: time 0.0008969/12.56, allocations: 293.7 kB / 3.735 GB, free: 7.969 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006188/12.56, allocations: 185.7 kB / 3.735 GB, free: 7.875 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01411/12.58, allocations: 7.367 MB / 3.742 GB, free: 4.551 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.404e-05/12.58, allocations: 80.08 kB / 3.742 GB, free: 4.531 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.219e-05/12.58, allocations: 0 / 3.742 GB, free: 4.531 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01271/12.59, allocations: 6.442 MB / 3.748 GB, free: 15.95 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02769/12.62, allocations: 11.07 MB / 3.759 GB, free: 6.262 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-05/12.62, allocations: 4 kB / 3.759 GB, free: 6.258 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002967/12.62, allocations: 367 kB / 3.759 GB, free: 5.957 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004574/12.63, allocations: 1.26 MB / 3.761 GB, free: 4.902 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005679/12.63, allocations: 65.7 kB / 3.761 GB, free: 4.848 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003964/12.63, allocations: 3.201 MB / 3.764 GB, free: 1.715 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.588e-06/12.63, allocations: 4 kB / 3.764 GB, free: 1.711 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4246/13.05, allocations: 7.325 MB / 3.771 GB, free: 56.39 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002652/13.06, allocations: 0.7038 MB / 3.772 GB, free: 56.3 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00095/13.06, allocations: 56.94 kB / 3.772 GB, free: 56.3 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003338/13.06, allocations: 184.8 kB / 3.772 GB, free: 56.3 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006737/13.06, allocations: 147.7 kB / 3.772 GB, free: 56.3 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002694/13.06, allocations: 76.75 kB / 3.772 GB, free: 56.3 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002554/13.06, allocations: 1.062 MB / 3.773 GB, free: 56.14 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.613e-06/13.07, allocations: 0 / 3.773 GB, free: 56.14 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01412/13.08, allocations: 2.531 MB / 3.776 GB, free: 56.14 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 53 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,$cse26.phase,$cse26.region,$cse27.phase,$cse27.region,$cse29.phase,$cse29.region,$cse32.phase,$cse32.region,$cse34.region3boundary,$cse35.region3boundary,$cse36.phase,$cse36.region,$cse38.phase,$cse38.region,$cse40.region3boundary,$cse41.region3boundary,$cse42.phase,$cse42.region,$cse44.phase,$cse44.region,$whenCondition1,$whenCondition2,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.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) * 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 (177): * Single equations (assignments): 151 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 20 * 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,2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.03156/13.11, allocations: 11.14 MB / 3.787 GB, free: 53.31 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01219/13.12, allocations: 4.467 MB / 3.791 GB, free: 52.99 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.408e-05/13.12, allocations: 3.953 kB / 3.791 GB, free: 52.99 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005765/13.13, allocations: 2.381 MB / 3.793 GB, free: 52.85 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00814/13.14, allocations: 0.8442 MB / 3.794 GB, free: 52.83 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3653/13.5, allocations: 126.4 MB / 3.918 GB, free: 24.62 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001999/13.5, allocations: 2.131 MB / 3.92 GB, free: 23.03 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002695/13.51, allocations: 1.217 MB / 3.921 GB, free: 22.88 MB / 490.7 MB Notification: Performance of SimCode: time 1.253e-06/13.51, allocations: 0 / 3.921 GB, free: 22.88 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.531/19.04, allocations: 121.7 MB / 4.04 GB, free: 37.75 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2_res.mat does not exist to compare? outputFormat=mat