Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes14",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.898/1.898, allocations: 209.3 MB / 221.9 MB, free: 1.926 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.692e-05/3.702e-05, allocations: 4 kB / 273.1 MB, free: 0.6484 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1068/0.1068, allocations: 48.71 MB / 321.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.762/7.869, allocations: 2.566 GB / 2.881 GB, free: 6.367 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002605/7.869, allocations: 81.19 kB / 2.881 GB, free: 6.324 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.786/12.65, allocations: 0.8797 GB / 3.76 GB, free: 4.902 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.675e-06/12.65, allocations: 0 / 3.76 GB, free: 4.902 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0004055/12.66, allocations: 59.98 kB / 3.76 GB, free: 4.844 MB / 474.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.02039/12.68, allocations: 3.844 MB / 3.764 GB, free: 0.9297 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.745e-05/12.68, allocations: 12.03 kB / 3.764 GB, free: 0.918 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00164/12.68, allocations: 295.5 kB / 3.764 GB, free: 0.6172 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.412/13.09, allocations: 0.851 MB / 3.765 GB, free: 28.54 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01059/13.1, allocations: 2.079 MB / 3.767 GB, free: 28.2 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004766/13.1, allocations: 180.9 kB / 3.768 GB, free: 28.2 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001447/13.1, allocations: 199.7 kB / 3.768 GB, free: 28.2 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01589/13.12, allocations: 3.619 MB / 3.771 GB, free: 27.64 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001509/13.12, allocations: 14.59 kB / 3.771 GB, free: 27.64 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001175/13.12, allocations: 87.73 kB / 3.771 GB, free: 27.64 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004595/13.12, allocations: 169.2 kB / 3.772 GB, free: 27.64 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01373/13.13, allocations: 3.194 MB / 3.775 GB, free: 27.62 MB / 474.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.03563/13.17, allocations: 15.43 MB / 3.79 GB, free: 18.29 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009247/13.18, allocations: 2.687 MB / 3.792 GB, free: 17.7 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0032/13.18, allocations: 1.117 MB / 3.793 GB, free: 17.69 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06149/13.24, allocations: 18.74 MB / 3.812 GB, free: 21.96 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006886/13.25, allocations: 1.696 MB / 3.813 GB, free: 21.83 MB / 490.7 MB Notification: Performance of pre-optimization done (n=169): time 6.482e-06/13.25, allocations: 0 / 3.813 GB, free: 21.83 MB / 490.7 MB Notification: Performance of matching and sorting (n=185): time 0.03709/13.29, allocations: 7.714 MB / 3.821 GB, free: 20.87 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001852/13.29, allocations: 258.1 kB / 3.821 GB, free: 20.59 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003584/13.29, allocations: 1.343 MB / 3.822 GB, free: 20.41 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007407/13.29, allocations: 64.3 kB / 3.823 GB, free: 20.38 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001312/13.29, allocations: 0.918 MB / 3.823 GB, free: 20 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001254/13.29, allocations: 0.6183 MB / 3.824 GB, free: 19.61 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003452/13.3, allocations: 38.94 kB / 3.824 GB, free: 19.61 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002842/13.3, allocations: 395.4 kB / 3.824 GB, free: 19.3 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003072/13.3, allocations: 1.01 MB / 3.825 GB, free: 19.29 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003801/13.3, allocations: 1.507 MB / 3.827 GB, free: 18.79 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003701/13.31, allocations: 1.27 MB / 3.828 GB, free: 18.7 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.135e-05/13.31, allocations: 6.938 kB / 3.828 GB, free: 18.7 MB / 490.7 MB Notification: Performance of matching and sorting (n=266) (initialization): time 0.01068/13.32, allocations: 2.974 MB / 3.831 GB, free: 18.48 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002278/13.32, allocations: 4.865 MB / 3.836 GB, free: 13.43 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.63e-05/13.32, allocations: 10.88 kB / 3.836 GB, free: 13.43 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001467/13.32, allocations: 236.2 kB / 3.836 GB, free: 13.4 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004637/13.33, allocations: 0.5287 MB / 3.837 GB, free: 13.4 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002292/13.33, allocations: 2.44 MB / 3.839 GB, free: 11.33 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005245/13.33, allocations: 306.5 kB / 3.839 GB, free: 11.31 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009483/13.33, allocations: 109.1 kB / 3.839 GB, free: 11.31 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.826e-05/13.33, allocations: 3.125 kB / 3.839 GB, free: 11.31 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009561/13.34, allocations: 2.823 MB / 3.842 GB, free: 11.17 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.149e-05/13.34, allocations: 9.719 kB / 3.842 GB, free: 11.17 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001283/13.35, allocations: 236.6 kB / 3.842 GB, free: 11.14 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00461/13.35, allocations: 0.5168 MB / 3.843 GB, free: 11.14 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002729/13.35, allocations: 2.439 MB / 3.845 GB, free: 25.07 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004115/13.36, allocations: 309.8 kB / 3.845 GB, free: 25.05 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008062/13.36, allocations: 101.3 kB / 3.846 GB, free: 25.05 MB / 0.4948 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 (valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.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,junctionIdeal.medium.phase,pipe3.state_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_b.phase,pipe1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (254): * Single equations (assignments): 248 * 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.001124/13.36, allocations: 309.7 kB / 3.846 GB, free: 24.87 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007918/13.36, allocations: 204.1 kB / 3.846 GB, free: 24.76 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0165/13.38, allocations: 7.471 MB / 3.853 GB, free: 24 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001055/13.38, allocations: 88.98 kB / 3.853 GB, free: 24 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.247e-05/13.38, allocations: 0 / 3.853 GB, free: 24 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01246/13.39, allocations: 6.489 MB / 3.86 GB, free: 23.06 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02813/13.42, allocations: 12.06 MB / 3.872 GB, free: 21.45 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.959e-05/13.42, allocations: 3.844 kB / 3.872 GB, free: 21.45 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00365/13.42, allocations: 435.3 kB / 3.872 GB, free: 21.45 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001965/13.42, allocations: 346.5 kB / 3.872 GB, free: 21.41 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005975/13.42, allocations: 75.19 kB / 3.872 GB, free: 21.41 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002141/13.43, allocations: 2.525 MB / 3.875 GB, free: 19.34 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.177e-05/13.43, allocations: 10.47 kB / 3.875 GB, free: 19.34 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01519/13.44, allocations: 7.419 MB / 3.882 GB, free: 17.93 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002635/13.44, allocations: 0.7463 MB / 3.883 GB, free: 17.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009119/13.44, allocations: 58.58 kB / 3.883 GB, free: 17.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003719/13.45, allocations: 221.8 kB / 3.883 GB, free: 17.59 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007089/13.45, allocations: 172.6 kB / 3.883 GB, free: 17.59 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002978/13.45, allocations: 84.36 kB / 3.883 GB, free: 17.59 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002657/13.45, allocations: 1.122 MB / 3.884 GB, free: 17.43 MB / 0.4948 GB Notification: Performance of sort global known variables: time 8.31e-07/13.45, allocations: 0 / 3.884 GB, free: 17.43 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01389/13.47, allocations: 2.721 MB / 3.887 GB, free: 17.32 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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,junctionIdeal.medium.p,junctionIdeal.medium.h) * Number of discrete variables: 54 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse12.phase,$cse12.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.region3boundary,$cse39.region3boundary,$cse40.phase,$cse40.region,$cse42.phase,$cse42.region,$cse43.region3boundary,$cse44.region3boundary,$cse45.phase,$cse45.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,junctionIdeal.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 (212): * Single equations (assignments): 183 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 23 * 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.03107/13.5, allocations: 12.06 MB / 3.899 GB, free: 13.89 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01354/13.51, allocations: 4.949 MB / 3.904 GB, free: 12.51 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.435e-05/13.51, allocations: 0 / 3.904 GB, free: 12.51 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.00639/13.52, allocations: 2.621 MB / 3.906 GB, free: 11.38 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009054/13.53, allocations: 0.9774 MB / 3.907 GB, free: 11.18 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8118/14.34, allocations: 127.6 MB / 4.032 GB, free: 66.72 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002386/14.34, allocations: 2.241 MB / 4.034 GB, free: 65.94 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00318/14.34, allocations: 1.335 MB / 4.035 GB, free: 65.94 MB / 0.5105 GB Notification: Performance of SimCode: time 2.164e-06/14.34, allocations: 0 / 4.035 GB, free: 65.94 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.769/20.11, allocations: 131 MB / 4.163 GB, free: 68.24 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14_res.mat does not exist to compare? outputFormat=mat