Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes16",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.009/2.009, allocations: 209.3 MB / 221.9 MB, free: 1.926 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.591e-05/3.615e-05, allocations: 0 / 273.1 MB, free: 0.6367 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1054, allocations: 48.7 MB / 321.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.364/2.469, allocations: 0.681 GB / 0.9953 GB, free: 94.43 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000267/2.47, allocations: 78.52 kB / 0.9953 GB, free: 94.43 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.158/5.628, allocations: 0.5492 GB / 1.545 GB, free: 33.95 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.084e-06/5.628, allocations: 0 / 1.545 GB, free: 33.95 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003343/5.628, allocations: 64.62 kB / 1.545 GB, free: 33.93 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: 423 * Number of variables: 423 Notification: Performance of Generate backend data structure: time 0.0141/5.642, allocations: 3.009 MB / 1.548 GB, free: 32.64 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.785e-05/5.642, allocations: 15.44 kB / 1.548 GB, free: 32.64 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001674/5.644, allocations: 237.6 kB / 1.548 GB, free: 32.59 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005255/5.649, allocations: 436.6 kB / 1.548 GB, free: 32.47 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008557/5.658, allocations: 1.926 MB / 1.55 GB, free: 32.04 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002459/5.658, allocations: 124.9 kB / 1.55 GB, free: 32.03 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001083/5.659, allocations: 169 kB / 1.55 GB, free: 32.03 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008031/5.668, allocations: 2.565 MB / 1.553 GB, free: 31.6 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.582e-05/5.668, allocations: 7.125 kB / 1.553 GB, free: 31.6 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004482/5.668, allocations: 69.56 kB / 1.553 GB, free: 31.6 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003149/5.668, allocations: 151 kB / 1.553 GB, free: 31.6 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007123/5.676, allocations: 2.166 MB / 1.555 GB, free: 31.58 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.0257/5.701, allocations: 10.92 MB / 1.566 GB, free: 25.7 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004935/5.706, allocations: 1.743 MB / 1.568 GB, free: 25.38 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002765/5.709, allocations: 1.032 MB / 1.569 GB, free: 25.36 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001545/5.711, allocations: 463.6 kB / 1.569 GB, free: 25.07 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003227/5.714, allocations: 1.132 MB / 1.57 GB, free: 24.95 MB / 458.7 MB Notification: Performance of pre-optimization done (n=158): time 5.961e-06/5.714, allocations: 0 / 1.57 GB, free: 24.95 MB / 458.7 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: pipe1.mediums[1].T 2: pipe2.mediums[1].T 3: pipe3.mediums[1].T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=181): time 0.03921/5.753, allocations: 8.493 MB / 1.578 GB, free: 23.77 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001182/5.753, allocations: 255.2 kB / 1.579 GB, free: 23.48 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002829/5.756, allocations: 1.326 MB / 1.58 GB, free: 23.3 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007567/5.757, allocations: 62.89 kB / 1.58 GB, free: 23.27 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008705/5.758, allocations: 0.8055 MB / 1.581 GB, free: 22.88 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001132/5.759, allocations: 0.6131 MB / 1.581 GB, free: 22.49 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002768/5.759, allocations: 40.44 kB / 1.581 GB, free: 22.49 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.00018/5.76, allocations: 390.4 kB / 1.582 GB, free: 22.18 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002897/5.763, allocations: 0.9766 MB / 1.583 GB, free: 22.17 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003635/5.766, allocations: 1.428 MB / 1.584 GB, free: 21.74 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003502/5.77, allocations: 1.259 MB / 1.585 GB, free: 21.64 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.379e-05/5.77, allocations: 3 kB / 1.585 GB, free: 21.64 MB / 458.7 MB Notification: Performance of matching and sorting (n=262) (initialization): time 0.00867/5.779, allocations: 2.909 MB / 1.588 GB, free: 21.43 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00101/5.78, allocations: 4.165 MB / 1.592 GB, free: 17.11 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.482e-05/5.78, allocations: 9.312 kB / 1.592 GB, free: 17.11 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007594/5.78, allocations: 195.4 kB / 1.593 GB, free: 17.07 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004855/5.785, allocations: 0.5391 MB / 1.593 GB, free: 17.07 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001696/5.787, allocations: 2.337 MB / 1.595 GB, free: 15 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004464/5.792, allocations: 206.7 kB / 1.596 GB, free: 14.99 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008972/5.793, allocations: 191.5 kB / 1.596 GB, free: 14.99 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.535e-05/5.793, allocations: 3.344 kB / 1.596 GB, free: 14.99 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00773/5.8, allocations: 2.747 MB / 1.598 GB, free: 14.78 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.785e-05/5.8, allocations: 9.938 kB / 1.598 GB, free: 14.78 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006023/5.801, allocations: 195.8 kB / 1.599 GB, free: 14.74 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004608/5.806, allocations: 0.5358 MB / 1.599 GB, free: 14.71 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002303/5.808, allocations: 2.327 MB / 1.601 GB, free: 28.64 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003644/5.812, allocations: 213.1 kB / 1.602 GB, free: 28.62 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009729/5.813, allocations: 186.1 kB / 1.602 GB, free: 28.62 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 12 ($whenCondition1,$whenCondition2,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (250): * Single equations (assignments): 244 * 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.001256/5.814, allocations: 291.8 kB / 1.602 GB, free: 28.41 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007043/5.815, allocations: 199.7 kB / 1.602 GB, free: 28.31 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01213/5.827, allocations: 3.482 MB / 1.606 GB, free: 27.71 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.492e-05/5.827, allocations: 18.53 kB / 1.606 GB, free: 27.71 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.498e-05/5.827, allocations: 6.453 kB / 1.606 GB, free: 27.71 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007067/5.834, allocations: 2.719 MB / 1.608 GB, free: 26.46 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02029/5.854, allocations: 6.857 MB / 1.615 GB, free: 23.31 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.604e-05/5.855, allocations: 11.09 kB / 1.615 GB, free: 23.3 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003885/5.858, allocations: 444.4 kB / 1.615 GB, free: 23.27 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007288/5.859, allocations: 186.2 kB / 1.616 GB, free: 23.22 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006132/5.86, allocations: 96.42 kB / 1.616 GB, free: 23.19 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002682/5.863, allocations: 3.076 MB / 1.619 GB, free: 20.23 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.576e-06/5.863, allocations: 7.891 kB / 1.619 GB, free: 20.23 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0112/5.874, allocations: 4.643 MB / 1.623 GB, free: 17.83 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002281/5.876, allocations: 0.5238 MB / 1.624 GB, free: 17.52 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000894/5.877, allocations: 57.19 kB / 1.624 GB, free: 17.49 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003385/5.881, allocations: 136.4 kB / 1.624 GB, free: 17.45 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006355/5.881, allocations: 182.1 kB / 1.624 GB, free: 17.42 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004425/5.882, allocations: 167.5 kB / 1.624 GB, free: 17.41 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002213/5.884, allocations: 1.003 MB / 1.625 GB, free: 17.03 MB / 474.7 MB Notification: Performance of sort global known variables: time 9.92e-07/5.884, allocations: 0 / 1.625 GB, free: 17.03 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.009456/5.893, allocations: 1.954 MB / 1.627 GB, free: 16.18 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 8 (pipe1.mediums[1].p,pipe1.mediums[1].T,pipe2.mediums[1].p,pipe2.mediums[1].T,pipe3.mediums[1].p,pipe3.mediums[1].T,junctionIdeal.medium.p,junctionIdeal.medium.T) * Number of discrete variables: 10 ($whenCondition1,$whenCondition2,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 (196): * Single equations (assignments): 190 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 3 {1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.02108/5.915, allocations: 9.207 MB / 1.636 GB, free: 7.773 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01344/5.928, allocations: 4.157 MB / 1.64 GB, free: 3.941 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-05/5.928, allocations: 0 / 1.64 GB, free: 3.941 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004339/5.932, allocations: 1.486 MB / 1.642 GB, free: 2.559 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008515/5.941, allocations: 0.9117 MB / 1.643 GB, free: 1.902 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02957/5.971, allocations: 6.612 MB / 1.649 GB, free: 12.74 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002265/5.973, allocations: 1.695 MB / 1.651 GB, free: 11.37 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004169/5.977, allocations: 1.028 MB / 1.652 GB, free: 10.44 MB / 490.7 MB Notification: Performance of SimCode: time 1.833e-06/5.977, allocations: 3.828 kB / 1.652 GB, free: 10.44 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.302/11.28, allocations: 92.71 MB / 1.742 GB, free: 52.94 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16_res.mat does not exist to compare? outputFormat=mat