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 1.883/1.883, allocations: 209.3 MB / 221.9 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.99e-05/4.035e-05, allocations: 3.938 kB / 273.2 MB, free: 0.6406 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1054/0.1054, allocations: 48.7 MB / 321.8 MB, free: 15.85 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.439/2.545, allocations: 0.681 GB / 0.9953 GB, free: 94.16 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002463/2.545, allocations: 81.56 kB / 0.9954 GB, free: 94.16 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.109/5.654, allocations: 0.5492 GB / 1.545 GB, free: 34.05 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.294e-06/5.654, allocations: 0 / 1.545 GB, free: 34.05 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002902/5.655, allocations: 62.7 kB / 1.545 GB, free: 34.04 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.01358/5.668, allocations: 3.009 MB / 1.548 GB, free: 32.73 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.683e-05/5.668, allocations: 7.656 kB / 1.548 GB, free: 32.73 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001061/5.669, allocations: 245.5 kB / 1.548 GB, free: 32.69 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004655/5.674, allocations: 441 kB / 1.548 GB, free: 32.57 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008359/5.682, allocations: 1.923 MB / 1.55 GB, free: 32.13 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002288/5.683, allocations: 128.4 kB / 1.55 GB, free: 32.12 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00098/5.684, allocations: 164.3 kB / 1.55 GB, free: 32.12 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007053/5.691, allocations: 2.543 MB / 1.553 GB, free: 31.7 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.703e-05/5.691, allocations: 7.531 kB / 1.553 GB, free: 31.7 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004001/5.691, allocations: 74.72 kB / 1.553 GB, free: 31.7 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003298/5.692, allocations: 156.1 kB / 1.553 GB, free: 31.7 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006639/5.698, allocations: 2.13 MB / 1.555 GB, free: 31.69 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.0253/5.724, allocations: 10.93 MB / 1.566 GB, free: 25.81 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004995/5.729, allocations: 1.732 MB / 1.568 GB, free: 25.49 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003118/5.732, allocations: 1.019 MB / 1.569 GB, free: 25.48 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001646/5.734, allocations: 467.3 kB / 1.569 GB, free: 25.19 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003164/5.737, allocations: 1.126 MB / 1.57 GB, free: 25.06 MB / 458.7 MB Notification: Performance of pre-optimization done (n=158): time 6.552e-06/5.737, allocations: 0 / 1.57 GB, free: 25.06 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.03668/5.774, allocations: 8.492 MB / 1.578 GB, free: 23.88 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001076/5.774, allocations: 256.6 kB / 1.579 GB, free: 23.6 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002649/5.776, allocations: 1.322 MB / 1.58 GB, free: 23.42 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006167/5.777, allocations: 61.95 kB / 1.58 GB, free: 23.39 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000759/5.778, allocations: 0.814 MB / 1.581 GB, free: 23 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007929/5.779, allocations: 0.6119 MB / 1.581 GB, free: 22.61 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002374/5.779, allocations: 41.69 kB / 1.581 GB, free: 22.61 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.00015/5.779, allocations: 392.1 kB / 1.582 GB, free: 22.3 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002501/5.782, allocations: 0.9731 MB / 1.583 GB, free: 22.29 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002871/5.784, allocations: 1.412 MB / 1.584 GB, free: 21.86 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002962/5.787, allocations: 1.253 MB / 1.585 GB, free: 21.77 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.66e-05/5.787, allocations: 10.19 kB / 1.585 GB, free: 21.77 MB / 458.7 MB Notification: Performance of matching and sorting (n=262) (initialization): time 0.007385/5.795, allocations: 2.877 MB / 1.588 GB, free: 21.55 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001124/5.796, allocations: 4.162 MB / 1.592 GB, free: 17.23 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.805e-05/5.796, allocations: 7.812 kB / 1.592 GB, free: 17.23 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007213/5.797, allocations: 196.5 kB / 1.592 GB, free: 17.2 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004741/5.802, allocations: 0.5478 MB / 1.593 GB, free: 17.19 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001627/5.803, allocations: 2.329 MB / 1.595 GB, free: 15.12 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00445/5.808, allocations: 213 kB / 1.595 GB, free: 15.11 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00101/5.809, allocations: 189 kB / 1.596 GB, free: 15.11 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.746e-05/5.809, allocations: 3.625 kB / 1.596 GB, free: 15.11 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007261/5.816, allocations: 2.719 MB / 1.598 GB, free: 14.92 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.794e-05/5.816, allocations: 13.62 kB / 1.598 GB, free: 14.92 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006002/5.817, allocations: 193.7 kB / 1.598 GB, free: 14.89 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004505/5.821, allocations: 0.5341 MB / 1.599 GB, free: 14.86 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002409/5.824, allocations: 2.324 MB / 1.601 GB, free: 28.78 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003458/5.827, allocations: 209.4 kB / 1.601 GB, free: 28.77 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006005/5.828, allocations: 183.9 kB / 1.602 GB, free: 28.77 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.0009569/5.829, allocations: 305.8 kB / 1.602 GB, free: 28.56 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007025/5.83, allocations: 203.8 kB / 1.602 GB, free: 28.46 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01116/5.841, allocations: 3.477 MB / 1.606 GB, free: 27.85 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.257e-05/5.841, allocations: 19.16 kB / 1.606 GB, free: 27.85 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.219e-05/5.841, allocations: 7.703 kB / 1.606 GB, free: 27.85 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006179/5.847, allocations: 2.709 MB / 1.608 GB, free: 26.6 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01911/5.866, allocations: 6.846 MB / 1.615 GB, free: 23.46 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-05/5.866, allocations: 3.656 kB / 1.615 GB, free: 23.46 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003742/5.87, allocations: 449.2 kB / 1.615 GB, free: 23.42 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007023/5.871, allocations: 184.6 kB / 1.615 GB, free: 23.37 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004847/5.871, allocations: 99.52 kB / 1.616 GB, free: 23.34 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002665/5.874, allocations: 3.073 MB / 1.619 GB, free: 20.39 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.809e-06/5.874, allocations: 11.56 kB / 1.619 GB, free: 20.38 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01054/5.885, allocations: 4.635 MB / 1.623 GB, free: 17.98 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002144/5.887, allocations: 0.5243 MB / 1.624 GB, free: 17.67 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000847/5.888, allocations: 59.17 kB / 1.624 GB, free: 17.64 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003123/5.891, allocations: 132.3 kB / 1.624 GB, free: 17.61 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006113/5.891, allocations: 180.7 kB / 1.624 GB, free: 17.57 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004412/5.892, allocations: 167.5 kB / 1.624 GB, free: 17.55 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002143/5.894, allocations: 1.001 MB / 1.625 GB, free: 17.18 MB / 474.7 MB Notification: Performance of sort global known variables: time 6.91e-07/5.894, allocations: 0 / 1.625 GB, free: 17.18 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01009/5.904, allocations: 1.95 MB / 1.627 GB, free: 15.66 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.02115/5.925, allocations: 9.237 MB / 1.636 GB, free: 7.223 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01372/5.939, allocations: 4.1 MB / 1.64 GB, free: 3.449 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-05/5.939, allocations: 4 kB / 1.64 GB, free: 3.445 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004275/5.944, allocations: 1.46 MB / 1.641 GB, free: 2.086 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008335/5.952, allocations: 0.918 MB / 1.642 GB, free: 1.43 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02634/5.978, allocations: 6.489 MB / 1.649 GB, free: 12.05 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001907/5.98, allocations: 1.691 MB / 1.65 GB, free: 10.67 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003982/5.984, allocations: 1.025 MB / 1.651 GB, free: 9.746 MB / 490.7 MB Notification: Performance of SimCode: time 1.382e-06/5.984, allocations: 0 / 1.651 GB, free: 9.746 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.05/11.03, allocations: 92.7 MB / 1.742 GB, free: 53.09 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