Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.881/1.881, allocations: 209.3 MB / 221.9 MB, free: 1.926 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.65e-05/3.67e-05, allocations: 0 / 273.1 MB, free: 0.6484 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1036/0.1037, allocations: 48.7 MB / 321.8 MB, free: 15.85 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.795/7.898, allocations: 2.563 GB / 2.877 GB, free: 9.031 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002607/7.899, allocations: 76.64 kB / 2.877 GB, free: 8.992 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.633/12.53, allocations: 0.8461 GB / 3.723 GB, free: 20.52 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.903e-06/12.53, allocations: 0 / 3.723 GB, free: 20.52 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002945/12.53, allocations: 58.38 kB / 3.723 GB, free: 20.5 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: 472 * Number of variables: 472 Notification: Performance of Generate backend data structure: time 0.01694/12.55, allocations: 3.635 MB / 3.727 GB, free: 18.48 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.096e-05/12.55, allocations: 11.81 kB / 3.727 GB, free: 18.48 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001049/12.55, allocations: 267.2 kB / 3.727 GB, free: 18.32 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008153/12.56, allocations: 0.7612 MB / 3.728 GB, free: 18.13 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00798/12.57, allocations: 1.956 MB / 3.73 GB, free: 17.21 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003304/12.57, allocations: 171.9 kB / 3.73 GB, free: 17.13 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001048/12.57, allocations: 176.7 kB / 3.73 GB, free: 17.07 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01118/12.58, allocations: 3.238 MB / 3.733 GB, free: 14.89 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.879e-05/12.58, allocations: 3.938 kB / 3.733 GB, free: 14.88 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000414/12.58, allocations: 83.97 kB / 3.733 GB, free: 14.8 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002908/12.58, allocations: 143.8 kB / 3.733 GB, free: 14.68 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01014/12.59, allocations: 2.824 MB / 3.736 GB, free: 11.86 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.02676/12.62, allocations: 13.87 MB / 3.75 GB, free: 12.83 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007219/12.62, allocations: 1.966 MB / 3.752 GB, free: 10.86 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002975/12.63, allocations: 1.015 MB / 3.753 GB, free: 9.848 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4596/13.09, allocations: 18.85 MB / 3.771 GB, free: 31.74 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006518/13.09, allocations: 1.59 MB / 3.773 GB, free: 31.62 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001935/13.1, allocations: 163 kB / 3.773 GB, free: 31.62 MB / 474.7 MB Notification: Performance of pre-optimization done (n=151): time 1.226e-05/13.1, allocations: 3.281 kB / 3.773 GB, free: 31.62 MB / 474.7 MB Notification: Performance of matching and sorting (n=163): time 0.03195/13.13, allocations: 6.869 MB / 3.779 GB, free: 30.85 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001304/13.13, allocations: 254.5 kB / 3.78 GB, free: 30.57 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003341/13.13, allocations: 1.259 MB / 3.781 GB, free: 30.39 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000664/13.13, allocations: 56.55 kB / 3.781 GB, free: 30.36 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009865/13.13, allocations: 0.8414 MB / 3.782 GB, free: 30.02 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001064/13.13, allocations: 0.5423 MB / 3.782 GB, free: 29.75 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002113/13.13, allocations: 37.34 kB / 3.782 GB, free: 29.75 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001737/13.13, allocations: 387.3 kB / 3.783 GB, free: 29.43 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002778/13.14, allocations: 0.9119 MB / 3.784 GB, free: 29.43 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003273/13.14, allocations: 1.348 MB / 3.785 GB, free: 29 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003103/13.14, allocations: 1.151 MB / 3.786 GB, free: 28.91 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.675e-05/13.14, allocations: 2.375 kB / 3.786 GB, free: 28.91 MB / 474.7 MB Notification: Performance of matching and sorting (n=232) (initialization): time 0.008906/13.15, allocations: 2.826 MB / 3.789 GB, free: 28.7 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001047/13.15, allocations: 4.252 MB / 3.793 GB, free: 24.28 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.196e-05/13.15, allocations: 9.375 kB / 3.793 GB, free: 24.28 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004398/13.16, allocations: 0.5234 MB / 3.793 GB, free: 24.25 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003808/13.16, allocations: 459.9 kB / 3.794 GB, free: 24.25 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002491/13.16, allocations: 2.694 MB / 3.797 GB, free: 22.18 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004498/13.17, allocations: 262.7 kB / 3.797 GB, free: 22.16 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006275/13.17, allocations: 100.3 kB / 3.797 GB, free: 22.16 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.738e-05/13.17, allocations: 3.969 kB / 3.797 GB, free: 22.16 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007212/13.18, allocations: 2.565 MB / 3.799 GB, free: 22.03 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.775e-05/13.18, allocations: 12.73 kB / 3.799 GB, free: 22.03 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009291/13.18, allocations: 193.7 kB / 3.8 GB, free: 22 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00384/13.18, allocations: 473.5 kB / 3.8 GB, free: 22 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001415/13.18, allocations: 1.872 MB / 3.802 GB, free: 20.45 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003589/13.19, allocations: 260.4 kB / 3.802 GB, free: 20.45 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006588/13.19, allocations: 99.69 kB / 3.802 GB, free: 20.45 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.0008984/13.19, allocations: 293 kB / 3.802 GB, free: 20.27 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007928/13.19, allocations: 188.5 kB / 3.803 GB, free: 20.17 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01476/13.2, allocations: 7.367 MB / 3.81 GB, free: 19.49 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.33e-05/13.2, allocations: 78.86 kB / 3.81 GB, free: 19.49 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.018e-05/13.2, allocations: 0 / 3.81 GB, free: 19.49 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01152/13.22, allocations: 6.437 MB / 3.816 GB, free: 18.54 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02573/13.24, allocations: 11.1 MB / 3.827 GB, free: 17.46 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.206e-05/13.24, allocations: 3.844 kB / 3.827 GB, free: 17.46 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002904/13.24, allocations: 357.5 kB / 3.827 GB, free: 17.45 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004219/13.25, allocations: 1.282 MB / 3.829 GB, free: 17.39 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005477/13.25, allocations: 70.78 kB / 3.829 GB, free: 17.39 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002989/13.25, allocations: 3.184 MB / 3.832 GB, free: 15.3 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.025e-05/13.25, allocations: 8.156 kB / 3.832 GB, free: 15.3 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01346/13.27, allocations: 7.173 MB / 3.839 GB, free: 14.03 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00251/13.27, allocations: 0.6992 MB / 3.84 GB, free: 13.73 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000801/13.27, allocations: 54.53 kB / 3.84 GB, free: 13.73 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003136/13.27, allocations: 192.2 kB / 3.84 GB, free: 13.71 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005666/13.27, allocations: 151.3 kB / 3.84 GB, free: 13.7 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002587/13.27, allocations: 70.98 kB / 3.84 GB, free: 13.7 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002411/13.28, allocations: 1.063 MB / 3.841 GB, free: 13.54 MB / 474.7 MB Notification: Performance of sort global known variables: time 6.51e-07/13.28, allocations: 0 / 3.841 GB, free: 13.54 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01313/13.29, allocations: 2.575 MB / 3.844 GB, free: 13.44 MB / 474.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,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse30.phase,$cse30.region,$cse32.region3boundary,$cse33.region3boundary,$cse34.phase,$cse34.region,$cse36.phase,$cse36.region,$cse37.region3boundary,$cse38.region3boundary,$cse39.phase,$cse39.region,$cse41.phase,$cse41.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.02825/13.32, allocations: 11.23 MB / 3.854 GB, free: 10.41 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01158/13.33, allocations: 4.465 MB / 3.859 GB, free: 10.09 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.257e-05/13.33, allocations: 2.625 kB / 3.859 GB, free: 10.09 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005626/13.33, allocations: 2.383 MB / 3.861 GB, free: 9.953 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008516/13.34, allocations: 0.9092 MB / 3.862 GB, free: 9.926 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.801/14.14, allocations: 127 MB / 3.986 GB, free: 65.25 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001942/14.15, allocations: 2.138 MB / 3.988 GB, free: 64.5 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002549/14.15, allocations: 1.228 MB / 3.989 GB, free: 64.5 MB / 0.4948 GB Notification: Performance of SimCode: time 1.433e-06/14.15, allocations: 3.938 kB / 3.989 GB, free: 64.5 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.043/19.19, allocations: 123 MB / 4.109 GB, free: 17.32 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3_res.mat does not exist to compare? outputFormat=mat