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.854/1.854, allocations: 209.3 MB / 221.9 MB, free: 1.922 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.945e-05/3.964e-05, allocations: 4 kB / 273.1 MB, free: 0.6328 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1019/0.102, allocations: 48.71 MB / 321.9 MB, free: 15.83 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.572/2.674, allocations: 0.6811 GB / 0.9954 GB, free: 94.09 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002384/2.674, allocations: 82.23 kB / 0.9955 GB, free: 94.09 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.224/5.899, allocations: 0.6138 GB / 1.609 GB, free: 28.65 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.056e-06/5.899, allocations: 3.375 kB / 1.609 GB, free: 28.65 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003269/5.899, allocations: 64.23 kB / 1.609 GB, free: 28.64 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.01407/5.913, allocations: 3.167 MB / 1.612 GB, free: 26.8 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.046e-05/5.913, allocations: 11.5 kB / 1.612 GB, free: 26.8 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00114/5.914, allocations: 254.8 kB / 1.613 GB, free: 26.65 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004914/5.919, allocations: 454.6 kB / 1.613 GB, free: 26.49 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008506/5.928, allocations: 1.987 MB / 1.615 GB, free: 25.56 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002184/5.928, allocations: 135.4 kB / 1.615 GB, free: 25.5 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009944/5.929, allocations: 176.8 kB / 1.615 GB, free: 25.44 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008042/5.937, allocations: 2.666 MB / 1.618 GB, free: 24.18 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.682e-05/5.937, allocations: 7.406 kB / 1.618 GB, free: 24.18 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004574/5.938, allocations: 71.59 kB / 1.618 GB, free: 24.13 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003521/5.938, allocations: 167.9 kB / 1.618 GB, free: 24.1 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00732/5.946, allocations: 2.219 MB / 1.62 GB, free: 22.57 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.0279/5.973, allocations: 11.51 MB / 1.632 GB, free: 10.25 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004943/5.978, allocations: 1.816 MB / 1.633 GB, free: 8.379 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002784/5.981, allocations: 1.072 MB / 1.634 GB, free: 7.312 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001509/5.983, allocations: 461.1 kB / 1.635 GB, free: 6.809 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00301/5.986, allocations: 1.18 MB / 1.636 GB, free: 5.605 MB / 458.7 MB Notification: Performance of pre-optimization done (n=168): time 5.741e-06/5.986, allocations: 0 / 1.636 GB, free: 5.605 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.04853/6.034, allocations: 9.532 MB / 1.645 GB, free: 11.95 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001916/6.035, allocations: 261.3 kB / 1.646 GB, free: 11.64 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003519/6.038, allocations: 1.384 MB / 1.647 GB, free: 10.26 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008529/6.039, allocations: 65.7 kB / 1.647 GB, free: 10.19 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001106/6.04, allocations: 0.8536 MB / 1.648 GB, free: 9.324 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001373/6.042, allocations: 0.6701 MB / 1.649 GB, free: 8.645 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002959/6.042, allocations: 44 kB / 1.649 GB, free: 8.602 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002883/6.042, allocations: 403.2 kB / 1.649 GB, free: 8.199 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003301/6.046, allocations: 1.023 MB / 1.65 GB, free: 7.172 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004077/6.05, allocations: 1.503 MB / 1.651 GB, free: 5.488 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004007/6.054, allocations: 1.321 MB / 1.653 GB, free: 4.156 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.205e-05/6.054, allocations: 4 kB / 1.653 GB, free: 4.152 MB / 474.7 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.009848/6.064, allocations: 3.104 MB / 1.656 GB, free: 1.012 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.3721/6.436, allocations: 4.677 MB / 1.66 GB, free: 41.11 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.94e-05/6.436, allocations: 13.12 kB / 1.66 GB, free: 41.11 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001385/6.437, allocations: 302.4 kB / 1.661 GB, free: 41.07 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005269/6.443, allocations: 0.5754 MB / 1.661 GB, free: 41.06 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002483/6.445, allocations: 2.99 MB / 1.664 GB, free: 38.48 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00478/6.45, allocations: 218.2 kB / 1.664 GB, free: 38.48 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001018/6.451, allocations: 206.3 kB / 1.664 GB, free: 38.48 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.862e-05/6.451, allocations: 8.953 kB / 1.665 GB, free: 38.48 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009572/6.461, allocations: 2.937 MB / 1.667 GB, free: 38.34 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.86e-05/6.461, allocations: 12.06 kB / 1.667 GB, free: 38.34 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001098/6.462, allocations: 301.5 kB / 1.668 GB, free: 38.3 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00486/6.467, allocations: 0.5667 MB / 1.668 GB, free: 38.3 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002174/6.469, allocations: 2.999 MB / 1.671 GB, free: 35.71 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003713/6.473, allocations: 211.8 kB / 1.671 GB, free: 35.71 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006089/6.473, allocations: 205.4 kB / 1.672 GB, free: 35.71 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.001089/6.474, allocations: 312.4 kB / 1.672 GB, free: 35.54 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007894/6.475, allocations: 218.7 kB / 1.672 GB, free: 35.54 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01386/6.489, allocations: 3.736 MB / 1.676 GB, free: 35.32 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.221e-05/6.489, allocations: 23.48 kB / 1.676 GB, free: 35.32 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.305e-05/6.489, allocations: 1.156 kB / 1.676 GB, free: 35.32 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008726/6.498, allocations: 2.902 MB / 1.679 GB, free: 34.73 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02168/6.52, allocations: 6.978 MB / 1.685 GB, free: 33.47 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.86e-05/6.52, allocations: 7 kB / 1.685 GB, free: 33.47 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004005/6.524, allocations: 463.2 kB / 1.686 GB, free: 33.47 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001425/6.525, allocations: 319.2 kB / 1.686 GB, free: 33.43 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007232/6.526, allocations: 109.5 kB / 1.686 GB, free: 33.43 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003108/6.529, allocations: 3.737 MB / 1.69 GB, free: 30.12 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.237e-06/6.529, allocations: 8.625 kB / 1.69 GB, free: 30.12 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01224/6.541, allocations: 4.876 MB / 1.695 GB, free: 29.06 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002397/6.544, allocations: 0.5472 MB / 1.695 GB, free: 28.85 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009823/6.545, allocations: 55.78 kB / 1.695 GB, free: 28.85 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003592/6.548, allocations: 140.2 kB / 1.695 GB, free: 28.84 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008136/6.549, allocations: 187.9 kB / 1.696 GB, free: 28.84 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005159/6.55, allocations: 182 kB / 1.696 GB, free: 28.84 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002548/6.552, allocations: 1.041 MB / 1.697 GB, free: 28.72 MB / 474.7 MB Notification: Performance of sort global known variables: time 9.92e-07/6.552, allocations: 0 / 1.697 GB, free: 28.72 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01108/6.563, allocations: 2.051 MB / 1.699 GB, free: 28.72 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.02159/6.585, allocations: 9.506 MB / 1.708 GB, free: 25.21 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01235/6.597, allocations: 4.351 MB / 1.712 GB, free: 24.91 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.545e-05/6.598, allocations: 0 / 1.712 GB, free: 24.91 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004306/6.602, allocations: 1.559 MB / 1.714 GB, free: 24.68 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009016/6.611, allocations: 1.034 MB / 1.715 GB, free: 24.67 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0266/6.638, allocations: 6.727 MB / 1.721 GB, free: 23.59 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001576/6.639, allocations: 1.736 MB / 1.723 GB, free: 22.86 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003778/6.643, allocations: 1.095 MB / 1.724 GB, free: 22.86 MB / 474.7 MB Notification: Performance of SimCode: time 2.284e-06/6.643, allocations: 0 / 1.724 GB, free: 22.86 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.788/11.43, allocations: 105.6 MB / 1.827 GB, free: 14.03 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