Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.317/2.317, allocations: 235 MB / 247.6 MB, free: 14.37 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 5.055e-05/5.071e-05, allocations: 4 kB / 305 MB, free: 5.566 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4875/0.4876, allocations: 54.85 MB / 359.9 MB, free: 2.703 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.006/8.494, allocations: 2.673 GB / 3.024 GB, free: 87 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003083/8.494, allocations: 74.28 kB / 3.024 GB, free: 86.97 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.145/12.64, allocations: 0.7984 GB / 3.823 GB, free: 26.38 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.754e-06/12.64, allocations: 0 / 3.823 GB, free: 26.38 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0002188/12.64, allocations: 60.09 kB / 3.823 GB, free: 26.36 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 467 * Number of variables: 467 Notification: Performance of Generate backend data structure: time 0.01783/12.66, allocations: 3.649 MB / 3.826 GB, free: 24.34 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.722e-05/12.66, allocations: 10.88 kB / 3.826 GB, free: 24.34 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008637/12.66, allocations: 273.1 kB / 3.826 GB, free: 24.19 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007737/12.67, allocations: 0.7802 MB / 3.827 GB, free: 23.99 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007424/12.67, allocations: 1.99 MB / 3.829 GB, free: 23.08 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002098/12.67, allocations: 159.9 kB / 3.829 GB, free: 23.02 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005314/12.67, allocations: 186.2 kB / 3.829 GB, free: 22.96 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009761/12.68, allocations: 3.293 MB / 3.833 GB, free: 21.58 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.432e-05/12.68, allocations: 11.72 kB / 3.833 GB, free: 21.57 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003731/12.69, allocations: 78.19 kB / 3.833 GB, free: 21.53 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002799/12.69, allocations: 146.9 kB / 3.833 GB, free: 21.5 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009473/12.69, allocations: 3.028 MB / 3.836 GB, free: 20.54 MB / 0.4948 GB 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.02429/12.72, allocations: 13.66 MB / 3.849 GB, free: 8.094 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006161/12.73, allocations: 1.957 MB / 3.851 GB, free: 6.434 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002263/12.73, allocations: 1.032 MB / 3.852 GB, free: 5.508 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05934/12.79, allocations: 18.89 MB / 3.871 GB, free: 2.258 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005844/12.79, allocations: 1.597 MB / 3.872 GB, free: 0.6328 MB / 0.5105 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001684/12.79, allocations: 174.5 kB / 3.872 GB, free: 472 kB / 0.5105 GB Notification: Performance of pre-optimization done (n=155): time 4.709e-06/12.79, allocations: 0 / 3.872 GB, free: 472 kB / 0.5105 GB Notification: Performance of matching and sorting (n=167): time 0.4253/13.22, allocations: 6.848 MB / 3.879 GB, free: 44.86 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001117/13.22, allocations: 263.4 kB / 3.879 GB, free: 44.58 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002985/13.22, allocations: 1.247 MB / 3.88 GB, free: 44.41 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0005443/13.22, allocations: 60.52 kB / 3.881 GB, free: 44.38 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008674/13.22, allocations: 0.8337 MB / 3.881 GB, free: 44.04 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008116/13.23, allocations: 0.558 MB / 3.882 GB, free: 43.76 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001896/13.23, allocations: 36.69 kB / 3.882 GB, free: 43.76 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.000167/13.23, allocations: 383.9 kB / 3.882 GB, free: 43.45 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002631/13.23, allocations: 0.9193 MB / 3.883 GB, free: 43.44 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00298/13.23, allocations: 1.342 MB / 3.885 GB, free: 43.01 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003164/13.23, allocations: 1.165 MB / 3.886 GB, free: 42.93 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.506e-05/13.23, allocations: 3.594 kB / 3.886 GB, free: 42.93 MB / 0.5105 GB Notification: Performance of matching and sorting (n=236) (initialization): time 0.009211/13.24, allocations: 2.775 MB / 3.888 GB, free: 42.71 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.001079/13.25, allocations: 4.256 MB / 3.893 GB, free: 38.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.611e-05/13.25, allocations: 10.34 kB / 3.893 GB, free: 38.3 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004455/13.25, allocations: 0.5143 MB / 3.893 GB, free: 38.27 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003885/13.25, allocations: 456.5 kB / 3.893 GB, free: 38.27 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002602/13.26, allocations: 2.703 MB / 3.896 GB, free: 36.19 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004206/13.26, allocations: 264.5 kB / 3.896 GB, free: 36.18 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000336/13.26, allocations: 97.23 kB / 3.896 GB, free: 36.18 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.625e-05/13.26, allocations: 2.688 kB / 3.896 GB, free: 36.18 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007321/13.27, allocations: 2.51 MB / 3.899 GB, free: 36.05 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.123e-05/13.27, allocations: 14.03 kB / 3.899 GB, free: 36.05 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009175/13.27, allocations: 196.4 kB / 3.899 GB, free: 36.02 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003882/13.27, allocations: 475 kB / 3.9 GB, free: 36.02 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001319/13.27, allocations: 1.867 MB / 3.901 GB, free: 34.47 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003391/13.28, allocations: 260.2 kB / 3.902 GB, free: 34.46 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003036/13.28, allocations: 95.92 kB / 3.902 GB, free: 34.46 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 29 (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,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,valveOpening2.nextEventScaled,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.0008179/13.28, allocations: 290.9 kB / 3.902 GB, free: 34.29 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006567/13.28, allocations: 192.7 kB / 3.902 GB, free: 34.19 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01288/13.29, allocations: 7.346 MB / 3.909 GB, free: 33.51 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.212e-05/13.29, allocations: 85.97 kB / 3.909 GB, free: 33.51 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.021e-05/13.29, allocations: 0 / 3.909 GB, free: 33.51 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01003/13.3, allocations: 6.418 MB / 3.916 GB, free: 32.57 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02102/13.32, allocations: 11.05 MB / 3.926 GB, free: 31.47 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.76e-05/13.32, allocations: 3.719 kB / 3.926 GB, free: 31.47 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002673/13.33, allocations: 355.9 kB / 3.927 GB, free: 31.47 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003954/13.33, allocations: 1.307 MB / 3.928 GB, free: 31.4 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003211/13.33, allocations: 63.98 kB / 3.928 GB, free: 31.4 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002857/13.33, allocations: 3.202 MB / 3.931 GB, free: 29.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.396e-06/13.33, allocations: 5.062 kB / 3.931 GB, free: 29.3 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01264/13.35, allocations: 7.15 MB / 3.938 GB, free: 28.05 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00199/13.35, allocations: 0.7101 MB / 3.939 GB, free: 27.73 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005284/13.35, allocations: 55.97 kB / 3.939 GB, free: 27.73 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002402/13.35, allocations: 182.6 kB / 3.939 GB, free: 27.71 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003837/13.35, allocations: 156.2 kB / 3.939 GB, free: 27.71 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002102/13.35, allocations: 70.45 kB / 3.939 GB, free: 27.71 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002118/13.35, allocations: 1.07 MB / 3.94 GB, free: 27.55 MB / 0.5105 GB Notification: Performance of sort global known variables: time 4.31e-07/13.35, allocations: 0 / 3.94 GB, free: 27.55 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01165/13.37, allocations: 2.558 MB / 3.943 GB, free: 27.45 MB / 0.5105 GB 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: 55 ($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,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,valveOpening2.nextEventScaled) * Number of discrete states: 12 (valveOpening2.nextEvent,valveOpening2.last,valveOpening2.nextEventScaled,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,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.02706/13.39, allocations: 11.19 MB / 3.954 GB, free: 24.42 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01174/13.4, allocations: 4.545 MB / 3.958 GB, free: 24.11 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.337e-05/13.4, allocations: 2.844 kB / 3.958 GB, free: 24.11 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.005384/13.41, allocations: 2.42 MB / 3.961 GB, free: 23.97 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007618/13.42, allocations: 0.8427 MB / 3.962 GB, free: 23.95 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8159/14.23, allocations: 128.7 MB / 4.087 GB, free: 72.21 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003584/14.24, allocations: 2.129 MB / 4.089 GB, free: 71.47 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003002/14.24, allocations: 1.23 MB / 4.09 GB, free: 71.47 MB / 0.5417 GB Notification: Performance of SimCode: time 1.824e-06/14.24, allocations: 2.312 kB / 4.09 GB, free: 71.47 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.014/19.25, allocations: 122.3 MB / 4.21 GB, free: 53.24 MB / 0.5417 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2_res.mat does not exist to compare? outputFormat=mat