Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes15",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.885/1.885, allocations: 209.3 MB / 221.9 MB, free: 1.934 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.301e-05/4.297e-05, allocations: 4 kB / 273.2 MB, free: 0.6328 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1414/0.1415, allocations: 48.69 MB / 321.8 MB, free: 15.85 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.46/2.602, allocations: 0.681 GB / 0.9953 GB, free: 94.36 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002607/2.602, allocations: 73.23 kB / 0.9954 GB, free: 94.36 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.045/5.647, allocations: 0.5492 GB / 1.545 GB, free: 34.25 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.914e-06/5.648, allocations: 0 / 1.545 GB, free: 34.25 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002539/5.648, allocations: 62.83 kB / 1.545 GB, free: 34.24 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.01307/5.661, allocations: 3.013 MB / 1.548 GB, free: 32.95 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.185e-05/5.661, allocations: 10.03 kB / 1.548 GB, free: 32.95 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001165/5.662, allocations: 244.6 kB / 1.548 GB, free: 32.9 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004994/5.667, allocations: 437.3 kB / 1.548 GB, free: 32.78 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008509/5.676, allocations: 1.921 MB / 1.55 GB, free: 32.34 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003052/5.676, allocations: 127.5 kB / 1.55 GB, free: 32.34 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001114/5.677, allocations: 162.5 kB / 1.55 GB, free: 32.34 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007812/5.685, allocations: 2.547 MB / 1.553 GB, free: 31.92 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.501e-05/5.685, allocations: 2.031 kB / 1.553 GB, free: 31.92 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004172/5.686, allocations: 73.48 kB / 1.553 GB, free: 31.92 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000304/5.686, allocations: 155.1 kB / 1.553 GB, free: 31.91 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006863/5.693, allocations: 2.138 MB / 1.555 GB, free: 31.91 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.02603/5.719, allocations: 10.93 MB / 1.566 GB, free: 26.02 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004935/5.724, allocations: 1.735 MB / 1.568 GB, free: 25.7 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002822/5.727, allocations: 1.021 MB / 1.569 GB, free: 25.69 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001599/5.728, allocations: 465 kB / 1.569 GB, free: 25.4 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003197/5.732, allocations: 1.128 MB / 1.57 GB, free: 25.28 MB / 458.7 MB Notification: Performance of pre-optimization done (n=158): time 5.56e-06/5.732, allocations: 1.562 kB / 1.57 GB, free: 25.28 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.08979/5.821, allocations: 8.486 MB / 1.578 GB, free: 24.1 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001344/5.822, allocations: 261.8 kB / 1.579 GB, free: 23.82 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006714/5.828, allocations: 1.325 MB / 1.58 GB, free: 23.64 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008226/5.829, allocations: 62.7 kB / 1.58 GB, free: 23.61 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001138/5.83, allocations: 0.807 MB / 1.581 GB, free: 23.21 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001343/5.832, allocations: 0.6097 MB / 1.581 GB, free: 22.83 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003954/5.832, allocations: 43.66 kB / 1.581 GB, free: 22.83 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002188/5.832, allocations: 395.5 kB / 1.582 GB, free: 22.52 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003898/5.836, allocations: 0.9745 MB / 1.583 GB, free: 22.51 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00474/5.841, allocations: 1.408 MB / 1.584 GB, free: 22.07 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004841/5.846, allocations: 1.255 MB / 1.585 GB, free: 21.99 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.43e-05/5.846, allocations: 3.5 kB / 1.585 GB, free: 21.99 MB / 458.7 MB Notification: Performance of matching and sorting (n=262) (initialization): time 0.009318/5.855, allocations: 2.887 MB / 1.588 GB, free: 21.77 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009972/5.857, allocations: 4.16 MB / 1.592 GB, free: 17.44 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.307e-05/5.857, allocations: 11.69 kB / 1.592 GB, free: 17.44 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008843/5.858, allocations: 187.6 kB / 1.592 GB, free: 17.41 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004858/5.862, allocations: 0.5454 MB / 1.593 GB, free: 17.41 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001738/5.864, allocations: 2.329 MB / 1.595 GB, free: 15.34 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005772/5.87, allocations: 207.5 kB / 1.595 GB, free: 15.32 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009636/5.871, allocations: 190.9 kB / 1.596 GB, free: 15.32 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.549e-05/5.871, allocations: 3.719 kB / 1.596 GB, free: 15.32 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0087/5.88, allocations: 2.717 MB / 1.598 GB, free: 15.15 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.135e-05/5.88, allocations: 11.59 kB / 1.598 GB, free: 15.15 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006378/5.881, allocations: 193 kB / 1.598 GB, free: 15.11 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004608/5.885, allocations: 0.5385 MB / 1.599 GB, free: 15.09 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002311/5.888, allocations: 2.323 MB / 1.601 GB, free: 29 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003405/5.891, allocations: 211.1 kB / 1.601 GB, free: 28.99 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007552/5.892, allocations: 182.5 kB / 1.602 GB, free: 28.99 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.001135/5.893, allocations: 299.9 kB / 1.602 GB, free: 28.79 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000685/5.894, allocations: 202.9 kB / 1.602 GB, free: 28.68 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01197/5.906, allocations: 3.483 MB / 1.605 GB, free: 27.96 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.291e-05/5.906, allocations: 20.25 kB / 1.606 GB, free: 27.96 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.969e-06/5.906, allocations: 0 / 1.606 GB, free: 27.96 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007163/5.913, allocations: 2.712 MB / 1.608 GB, free: 26.71 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02078/5.934, allocations: 6.841 MB / 1.615 GB, free: 23.57 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.976e-05/5.934, allocations: 10.31 kB / 1.615 GB, free: 23.57 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003967/5.938, allocations: 448 kB / 1.615 GB, free: 23.54 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007107/5.939, allocations: 183.5 kB / 1.615 GB, free: 23.49 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006402/5.939, allocations: 106.5 kB / 1.616 GB, free: 23.46 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002787/5.942, allocations: 3.073 MB / 1.619 GB, free: 20.51 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.063e-05/5.942, allocations: 14.73 kB / 1.619 GB, free: 20.5 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01116/5.953, allocations: 4.632 MB / 1.623 GB, free: 18.1 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002083/5.955, allocations: 0.5269 MB / 1.624 GB, free: 17.79 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008353/5.956, allocations: 53.91 kB / 1.624 GB, free: 17.76 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002945/5.959, allocations: 133.2 kB / 1.624 GB, free: 17.72 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005335/5.96, allocations: 175.3 kB / 1.624 GB, free: 17.69 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004741/5.96, allocations: 171.5 kB / 1.624 GB, free: 17.67 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002136/5.962, allocations: 1.002 MB / 1.625 GB, free: 17.29 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.543e-06/5.962, allocations: 3.781 kB / 1.625 GB, free: 17.29 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.009645/5.972, allocations: 1.943 MB / 1.627 GB, free: 16.28 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.02154/5.994, allocations: 9.251 MB / 1.636 GB, free: 7.852 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01315/6.007, allocations: 4.101 MB / 1.64 GB, free: 4.078 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-05/6.007, allocations: 1.062 kB / 1.64 GB, free: 4.078 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004429/6.011, allocations: 1.461 MB / 1.641 GB, free: 2.719 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008339/6.02, allocations: 0.9172 MB / 1.642 GB, free: 2.059 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03462/6.054, allocations: 6.5 MB / 1.649 GB, free: 12.75 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004105/6.059, allocations: 1.7 MB / 1.65 GB, free: 11.37 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006451/6.065, allocations: 1.025 MB / 1.651 GB, free: 10.44 MB / 490.7 MB Notification: Performance of SimCode: time 1.633e-06/6.065, allocations: 2.156 kB / 1.651 GB, free: 10.44 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.132/11.2, allocations: 92.7 MB / 1.742 GB, free: 53.06 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15_res.mat does not exist to compare? outputFormat=mat