Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.984/1.984, allocations: 209.3 MB / 221.5 MB, free: 1.941 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.941e-05/4.954e-05, allocations: 4 kB / 273.2 MB, free: 160 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.111/0.1111, allocations: 48.7 MB / 321.9 MB, free: 15.35 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.833/7.944, allocations: 2.563 GB / 2.877 GB, free: 7.773 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003017/7.944, allocations: 78.2 kB / 2.877 GB, free: 7.734 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.707/12.65, allocations: 0.8461 GB / 3.723 GB, free: 20.12 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.394e-06/12.65, allocations: 0 / 3.723 GB, free: 20.12 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002891/12.65, allocations: 62.22 kB / 3.723 GB, free: 20.1 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.01663/12.67, allocations: 3.633 MB / 3.727 GB, free: 18.07 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.034e-05/12.67, allocations: 9.75 kB / 3.727 GB, free: 18.07 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001133/12.67, allocations: 271.8 kB / 3.727 GB, free: 17.9 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008105/12.68, allocations: 0.7617 MB / 3.728 GB, free: 17.7 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008069/12.69, allocations: 1.956 MB / 3.73 GB, free: 16.77 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002417/12.69, allocations: 171.7 kB / 3.73 GB, free: 16.69 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007123/12.69, allocations: 185.2 kB / 3.73 GB, free: 16.63 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01005/12.7, allocations: 3.226 MB / 3.733 GB, free: 13.8 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.442e-05/12.7, allocations: 11.94 kB / 3.733 GB, free: 13.79 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003694/12.7, allocations: 79.97 kB / 3.733 GB, free: 13.71 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002867/12.7, allocations: 147.2 kB / 3.733 GB, free: 13.56 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009631/12.71, allocations: 2.82 MB / 3.736 GB, free: 10.74 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.02604/12.73, allocations: 13.87 MB / 3.75 GB, free: 11.71 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007241/12.74, allocations: 1.963 MB / 3.752 GB, free: 9.742 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002818/12.74, allocations: 1.015 MB / 3.753 GB, free: 8.727 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.5009/13.24, allocations: 18.85 MB / 3.771 GB, free: 31.72 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006371/13.25, allocations: 1.592 MB / 3.773 GB, free: 31.61 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002291/13.25, allocations: 164.6 kB / 3.773 GB, free: 31.61 MB / 474.7 MB Notification: Performance of pre-optimization done (n=151): time 1.455e-05/13.25, allocations: 0 / 3.773 GB, free: 31.61 MB / 474.7 MB Notification: Performance of matching and sorting (n=163): time 0.02889/13.28, allocations: 6.865 MB / 3.779 GB, free: 30.83 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000119/13.28, allocations: 262 kB / 3.78 GB, free: 30.55 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002934/13.28, allocations: 1.255 MB / 3.781 GB, free: 30.38 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000564/13.29, allocations: 58.42 kB / 3.781 GB, free: 30.34 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009894/13.29, allocations: 0.893 MB / 3.782 GB, free: 30.07 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000912/13.29, allocations: 0.5463 MB / 3.782 GB, free: 29.79 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001998/13.29, allocations: 37.16 kB / 3.782 GB, free: 29.79 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.00015/13.29, allocations: 382.4 kB / 3.783 GB, free: 29.48 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002272/13.29, allocations: 0.9088 MB / 3.784 GB, free: 29.48 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002633/13.29, allocations: 1.35 MB / 3.785 GB, free: 29.05 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002636/13.3, allocations: 1.153 MB / 3.786 GB, free: 28.96 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.081e-05/13.3, allocations: 3.875 kB / 3.786 GB, free: 28.96 MB / 474.7 MB Notification: Performance of matching and sorting (n=232) (initialization): time 0.008398/13.3, allocations: 2.932 MB / 3.789 GB, free: 28.69 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009824/13.3, allocations: 4.363 MB / 3.793 GB, free: 24.08 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.467e-05/13.3, allocations: 9.594 kB / 3.793 GB, free: 24.08 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004367/13.31, allocations: 0.5144 MB / 3.794 GB, free: 24.05 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003682/13.31, allocations: 458.3 kB / 3.794 GB, free: 24.05 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002361/13.32, allocations: 2.698 MB / 3.797 GB, free: 21.98 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004462/13.32, allocations: 264.4 kB / 3.797 GB, free: 21.97 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007283/13.32, allocations: 95.62 kB / 3.797 GB, free: 21.97 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.977e-05/13.32, allocations: 7.281 kB / 3.797 GB, free: 21.97 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007168/13.33, allocations: 2.57 MB / 3.8 GB, free: 21.83 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.373e-05/13.33, allocations: 14.12 kB / 3.8 GB, free: 21.83 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009045/13.33, allocations: 196 kB / 3.8 GB, free: 21.81 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003686/13.33, allocations: 467.2 kB / 3.8 GB, free: 21.81 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00133/13.33, allocations: 1.872 MB / 3.802 GB, free: 20.26 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004047/13.34, allocations: 266.8 kB / 3.802 GB, free: 20.25 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005435/13.34, allocations: 92.14 kB / 3.802 GB, free: 20.25 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.0008205/13.34, allocations: 300.6 kB / 3.803 GB, free: 20.07 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000584/13.34, allocations: 187.5 kB / 3.803 GB, free: 19.98 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0136/13.35, allocations: 7.359 MB / 3.81 GB, free: 19.29 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.013e-05/13.35, allocations: 85.41 kB / 3.81 GB, free: 19.29 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.033e-05/13.35, allocations: 0 / 3.81 GB, free: 19.29 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0106/13.36, allocations: 6.433 MB / 3.816 GB, free: 18.35 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02224/13.39, allocations: 11.11 MB / 3.827 GB, free: 17.26 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.766e-05/13.39, allocations: 3.719 kB / 3.827 GB, free: 17.26 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002699/13.39, allocations: 362.5 kB / 3.828 GB, free: 17.25 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004016/13.39, allocations: 1.283 MB / 3.829 GB, free: 17.2 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004606/13.39, allocations: 67.84 kB / 3.829 GB, free: 17.2 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002889/13.4, allocations: 3.189 MB / 3.832 GB, free: 15.11 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.103e-06/13.4, allocations: 4.938 kB / 3.832 GB, free: 15.11 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01278/13.41, allocations: 7.163 MB / 3.839 GB, free: 13.84 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002298/13.41, allocations: 0.7029 MB / 3.84 GB, free: 13.52 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000747/13.41, allocations: 55.02 kB / 3.84 GB, free: 13.52 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002792/13.42, allocations: 188.8 kB / 3.84 GB, free: 13.51 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003978/13.42, allocations: 148.9 kB / 3.84 GB, free: 13.5 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002266/13.42, allocations: 76.42 kB / 3.84 GB, free: 13.5 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002156/13.42, allocations: 1.063 MB / 3.841 GB, free: 13.34 MB / 474.7 MB Notification: Performance of sort global known variables: time 5.51e-07/13.42, allocations: 0 / 3.841 GB, free: 13.34 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01169/13.43, allocations: 2.572 MB / 3.844 GB, free: 13.23 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.02767/13.46, allocations: 11.23 MB / 3.855 GB, free: 10.21 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01059/13.47, allocations: 4.519 MB / 3.859 GB, free: 9.875 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.495e-05/13.47, allocations: 7.359 kB / 3.859 GB, free: 9.875 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005439/13.47, allocations: 2.387 MB / 3.862 GB, free: 9.734 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00801/13.48, allocations: 0.9051 MB / 3.862 GB, free: 9.699 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8222/14.3, allocations: 127.3 MB / 3.987 GB, free: 65.2 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002376/14.31, allocations: 2.182 MB / 3.989 GB, free: 64.43 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.009045/14.32, allocations: 2.419 MB / 3.991 GB, free: 64.39 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002899/14.32, allocations: 1.203 MB / 3.992 GB, free: 64.39 MB / 0.4948 GB Notification: Performance of SimCode: time 2.234e-06/14.32, allocations: 3.719 kB / 3.992 GB, free: 64.39 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2647/14.58, allocations: 115.9 MB / 4.106 GB, free: 20.63 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002208/14.58, allocations: 229.9 kB / 4.106 GB, free: 20.36 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.124/22.71, allocations: 0 / 4.106 GB, free: 20.36 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3_res.mat does not exist to compare? outputFormat=mat