Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes17",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.902/1.902, allocations: 209.3 MB / 221.9 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.214e-05/4.225e-05, allocations: 4 kB / 273.1 MB, free: 0.6562 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1058/0.1058, allocations: 48.71 MB / 321.8 MB, free: 15.86 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.469/2.575, allocations: 0.6811 GB / 0.9954 GB, free: 94.26 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002527/2.575, allocations: 76.17 kB / 0.9954 GB, free: 94.26 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.353/5.929, allocations: 0.6138 GB / 1.609 GB, free: 28.98 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.914e-06/5.929, allocations: 0 / 1.609 GB, free: 28.98 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.000276/5.929, allocations: 63.23 kB / 1.609 GB, free: 28.96 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: 448 * Number of variables: 448 Notification: Performance of Generate backend data structure: time 0.01373/5.943, allocations: 3.171 MB / 1.612 GB, free: 27.13 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.33e-05/5.943, allocations: 10.66 kB / 1.612 GB, free: 27.13 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001029/5.944, allocations: 253.6 kB / 1.613 GB, free: 26.98 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004519/5.948, allocations: 463.8 kB / 1.613 GB, free: 26.81 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008236/5.957, allocations: 1.978 MB / 1.615 GB, free: 25.89 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001803/5.957, allocations: 139 kB / 1.615 GB, free: 25.82 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007209/5.958, allocations: 176 kB / 1.615 GB, free: 25.76 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006698/5.964, allocations: 2.688 MB / 1.618 GB, free: 24.48 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.296e-05/5.964, allocations: 3.938 kB / 1.618 GB, free: 24.47 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003988/5.965, allocations: 84.97 kB / 1.618 GB, free: 24.41 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002945/5.965, allocations: 149.5 kB / 1.618 GB, free: 24.37 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006002/5.971, allocations: 2.259 MB / 1.62 GB, free: 22.66 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.02527/5.996, allocations: 11.51 MB / 1.632 GB, free: 10.35 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004625/6.001, allocations: 1.824 MB / 1.633 GB, free: 8.469 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002363/6.004, allocations: 1.072 MB / 1.634 GB, free: 7.402 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001392/6.005, allocations: 457.1 kB / 1.635 GB, free: 6.902 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002558/6.008, allocations: 1.194 MB / 1.636 GB, free: 5.68 MB / 458.7 MB Notification: Performance of pre-optimization done (n=168): time 5e-06/6.008, allocations: 0 / 1.636 GB, free: 5.68 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 4: junctionVolume.medium.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=196): time 0.04352/6.051, allocations: 9.544 MB / 1.645 GB, free: 12.02 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001659/6.051, allocations: 257.3 kB / 1.646 GB, free: 11.71 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00338/6.055, allocations: 1.384 MB / 1.647 GB, free: 10.33 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007803/6.056, allocations: 65.7 kB / 1.647 GB, free: 10.26 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001011/6.057, allocations: 0.8419 MB / 1.648 GB, free: 9.406 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001121/6.058, allocations: 0.6701 MB / 1.649 GB, free: 8.727 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002844/6.058, allocations: 48 kB / 1.649 GB, free: 8.68 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002458/6.058, allocations: 403.2 kB / 1.649 GB, free: 8.277 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003035/6.061, allocations: 1.027 MB / 1.65 GB, free: 7.246 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003524/6.065, allocations: 1.519 MB / 1.651 GB, free: 5.543 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003614/6.068, allocations: 1.313 MB / 1.653 GB, free: 4.219 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.266e-05/6.068, allocations: 4 kB / 1.653 GB, free: 4.215 MB / 474.7 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.009313/6.078, allocations: 3.139 MB / 1.656 GB, free: 1.039 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.3752/6.453, allocations: 4.678 MB / 1.66 GB, free: 41.37 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.628e-05/6.453, allocations: 13.72 kB / 1.66 GB, free: 41.37 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00145/6.455, allocations: 302.1 kB / 1.661 GB, free: 41.33 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005298/6.46, allocations: 0.5701 MB / 1.661 GB, free: 41.33 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002627/6.463, allocations: 3.001 MB / 1.664 GB, free: 38.75 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005151/6.468, allocations: 220 kB / 1.664 GB, free: 38.75 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0014/6.469, allocations: 207.8 kB / 1.665 GB, free: 38.75 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.062e-05/6.469, allocations: 3.812 kB / 1.665 GB, free: 38.75 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01045/6.48, allocations: 2.976 MB / 1.667 GB, free: 38.61 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.783e-05/6.48, allocations: 11.56 kB / 1.668 GB, free: 38.61 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001098/6.481, allocations: 306.2 kB / 1.668 GB, free: 38.57 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004704/6.486, allocations: 0.5637 MB / 1.668 GB, free: 38.57 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00234/6.488, allocations: 3.002 MB / 1.671 GB, free: 35.98 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003742/6.492, allocations: 219.4 kB / 1.671 GB, free: 35.98 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006247/6.493, allocations: 203 kB / 1.672 GB, free: 35.98 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * 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 (265): * Single equations (assignments): 258 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,1 7,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.001078/6.494, allocations: 301.9 kB / 1.672 GB, free: 35.81 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00081/6.495, allocations: 219.4 kB / 1.672 GB, free: 35.81 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01409/6.509, allocations: 3.744 MB / 1.676 GB, free: 35.58 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.343e-05/6.509, allocations: 20.59 kB / 1.676 GB, free: 35.58 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.274e-05/6.509, allocations: 1.062 kB / 1.676 GB, free: 35.58 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008726/6.517, allocations: 2.904 MB / 1.679 GB, free: 35 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02313/6.541, allocations: 6.988 MB / 1.686 GB, free: 33.74 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.931e-05/6.541, allocations: 7 kB / 1.686 GB, free: 33.74 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003864/6.545, allocations: 463.8 kB / 1.686 GB, free: 33.74 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001377/6.546, allocations: 312.1 kB / 1.686 GB, free: 33.7 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005447/6.547, allocations: 115.1 kB / 1.686 GB, free: 33.7 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003053/6.55, allocations: 3.749 MB / 1.69 GB, free: 30.39 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.696e-06/6.55, allocations: 11.75 kB / 1.69 GB, free: 30.39 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01232/6.562, allocations: 4.874 MB / 1.695 GB, free: 29.32 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002474/6.565, allocations: 0.5439 MB / 1.695 GB, free: 29.12 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009125/6.566, allocations: 59.73 kB / 1.695 GB, free: 29.12 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003429/6.569, allocations: 136.8 kB / 1.696 GB, free: 29.11 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006913/6.57, allocations: 191 kB / 1.696 GB, free: 29.1 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005123/6.57, allocations: 185.1 kB / 1.696 GB, free: 29.1 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002353/6.573, allocations: 1.04 MB / 1.697 GB, free: 28.98 MB / 474.7 MB Notification: Performance of sort global known variables: time 5.61e-07/6.573, allocations: 2.094 kB / 1.697 GB, free: 28.98 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01028/6.583, allocations: 2.054 MB / 1.699 GB, free: 28.98 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * Number of states: 9 (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,junctionVolume.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 (205): * Single equations (assignments): 198 * 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: 5 * 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: 4 {1 6,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.02094/6.604, allocations: 9.471 MB / 1.708 GB, free: 25.5 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01244/6.616, allocations: 4.416 MB / 1.712 GB, free: 25.2 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.804e-05/6.617, allocations: 8.438 kB / 1.712 GB, free: 25.2 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004239/6.621, allocations: 1.575 MB / 1.714 GB, free: 24.96 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008789/6.63, allocations: 1.04 MB / 1.715 GB, free: 24.95 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02703/6.657, allocations: 6.737 MB / 1.722 GB, free: 23.87 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001717/6.659, allocations: 1.738 MB / 1.723 GB, free: 23.14 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004052/6.663, allocations: 1.093 MB / 1.724 GB, free: 23.13 MB / 474.7 MB Notification: Performance of SimCode: time 1.754e-06/6.663, allocations: 0 / 1.724 GB, free: 23.13 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.136/11.8, allocations: 105.6 MB / 1.828 GB, free: 14 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17_res.mat does not exist to compare? outputFormat=mat