Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes16",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.384/2.384, allocations: 235 MB / 247.6 MB, free: 14.34 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.562e-05/3.581e-05, allocations: 4 kB / 305 MB, free: 5.559 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3958/0.3958, allocations: 54.86 MB / 359.9 MB, free: 2.309 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.889/2.284, allocations: 0.6876 GB / 1.039 GB, free: 40.86 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002579/2.285, allocations: 77.64 kB / 1.039 GB, free: 40.82 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.171/5.456, allocations: 0.5495 GB / 1.589 GB, free: 37.48 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.445e-06/5.456, allocations: 0 / 1.589 GB, free: 37.48 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002938/5.456, allocations: 60.05 kB / 1.589 GB, free: 37.47 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 427 * Number of variables: 427 Notification: Performance of Generate backend data structure: time 0.01327/5.469, allocations: 3.022 MB / 1.592 GB, free: 35.74 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.115e-05/5.469, allocations: 9.281 kB / 1.592 GB, free: 35.74 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009387/5.47, allocations: 241.4 kB / 1.592 GB, free: 35.6 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004132/5.474, allocations: 448.9 kB / 1.592 GB, free: 35.45 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007606/5.482, allocations: 1.93 MB / 1.594 GB, free: 34.58 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001552/5.482, allocations: 131.5 kB / 1.594 GB, free: 34.54 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005969/5.483, allocations: 170 kB / 1.594 GB, free: 34.48 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006475/5.489, allocations: 2.554 MB / 1.597 GB, free: 33.32 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.964e-05/5.489, allocations: 0 / 1.597 GB, free: 33.32 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004362/5.49, allocations: 74.67 kB / 1.597 GB, free: 33.28 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003035/5.49, allocations: 156.8 kB / 1.597 GB, free: 33.25 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006426/5.497, allocations: 2.145 MB / 1.599 GB, free: 32.52 MB / 490.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.022/5.519, allocations: 10.97 MB / 1.61 GB, free: 21.91 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004292/5.523, allocations: 1.737 MB / 1.612 GB, free: 20.11 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002248/5.525, allocations: 1.04 MB / 1.613 GB, free: 19.07 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001366/5.527, allocations: 457.1 kB / 1.613 GB, free: 18.57 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002464/5.529, allocations: 1.141 MB / 1.614 GB, free: 17.4 MB / 490.7 MB Notification: Performance of pre-optimization done (n=162): time 4.639e-06/5.529, allocations: 4 kB / 1.614 GB, free: 17.39 MB / 490.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=185): time 0.03445/5.564, allocations: 8.461 MB / 1.623 GB, free: 8.809 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.545e-05/5.564, allocations: 265.3 kB / 1.623 GB, free: 8.492 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002527/5.566, allocations: 1.333 MB / 1.624 GB, free: 7.16 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004898/5.567, allocations: 65.7 kB / 1.624 GB, free: 7.09 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006869/5.567, allocations: 0.8069 MB / 1.625 GB, free: 6.273 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006995/5.568, allocations: 0.6199 MB / 1.626 GB, free: 5.645 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002349/5.568, allocations: 44 kB / 1.626 GB, free: 5.602 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001396/5.569, allocations: 390.9 kB / 1.626 GB, free: 5.211 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002407/5.571, allocations: 0.9841 MB / 1.627 GB, free: 4.227 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002681/5.574, allocations: 1.418 MB / 1.628 GB, free: 2.645 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002754/5.576, allocations: 1.272 MB / 1.63 GB, free: 1.363 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.013e-05/5.577, allocations: 4 kB / 1.63 GB, free: 1.359 MB / 490.7 MB Notification: Performance of matching and sorting (n=266) (initialization): time 0.00757/5.584, allocations: 2.854 MB / 1.632 GB, free: 14.47 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.001973/5.586, allocations: 4.167 MB / 1.636 GB, free: 9.973 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.465e-05/5.586, allocations: 12 kB / 1.636 GB, free: 9.961 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007803/5.587, allocations: 187.3 kB / 1.637 GB, free: 9.766 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004952/5.592, allocations: 0.5461 MB / 1.637 GB, free: 9.219 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00223/5.594, allocations: 2.33 MB / 1.639 GB, free: 6.785 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004249/5.598, allocations: 219.4 kB / 1.64 GB, free: 6.574 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005665/5.599, allocations: 195.9 kB / 1.64 GB, free: 6.383 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.593e-05/5.599, allocations: 4 kB / 1.64 GB, free: 6.379 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007775/5.607, allocations: 2.689 MB / 1.642 GB, free: 3.664 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.087e-05/5.607, allocations: 12 kB / 1.642 GB, free: 3.652 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006737/5.608, allocations: 195.9 kB / 1.643 GB, free: 3.449 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00478/5.612, allocations: 0.5305 MB / 1.643 GB, free: 2.918 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00229/5.615, allocations: 2.323 MB / 1.645 GB, free: 0.4922 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003611/5.618, allocations: 212 kB / 1.646 GB, free: 292 kB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007715/5.619, allocations: 188 kB / 1.646 GB, free: 104 kB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition1,$whenCondition2,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,valveOpening2.nextEventScaled) * 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.001034/5.62, allocations: 296.8 kB / 1.646 GB, free: 15.79 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000767/5.621, allocations: 217.4 kB / 1.646 GB, free: 15.58 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01304/5.634, allocations: 3.461 MB / 1.65 GB, free: 12.1 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.045e-05/5.634, allocations: 20 kB / 1.65 GB, free: 12.08 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.043e-05/5.634, allocations: 0 / 1.65 GB, free: 12.08 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007405/5.642, allocations: 2.701 MB / 1.652 GB, free: 9.266 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02147/5.663, allocations: 6.857 MB / 1.659 GB, free: 2.098 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.837e-05/5.663, allocations: 4 kB / 1.659 GB, free: 2.094 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003964/5.667, allocations: 451.3 kB / 1.659 GB, free: 1.652 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007943/5.668, allocations: 187.8 kB / 1.66 GB, free: 1.457 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005497/5.669, allocations: 107.9 kB / 1.66 GB, free: 1.352 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4138/6.082, allocations: 3.054 MB / 1.663 GB, free: 64.69 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.477e-05/6.082, allocations: 10.88 kB / 1.663 GB, free: 64.69 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01169/6.094, allocations: 4.642 MB / 1.667 GB, free: 63.62 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002113/6.096, allocations: 0.5306 MB / 1.668 GB, free: 63.53 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006507/6.097, allocations: 62.34 kB / 1.668 GB, free: 63.52 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002565/6.1, allocations: 131.9 kB / 1.668 GB, free: 63.52 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004875/6.1, allocations: 171.4 kB / 1.668 GB, free: 63.52 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004601/6.101, allocations: 170.7 kB / 1.668 GB, free: 63.52 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002384/6.103, allocations: 1.005 MB / 1.669 GB, free: 63.4 MB / 0.5105 GB Notification: Performance of sort global known variables: time 6.82e-07/6.103, allocations: 1.094 kB / 1.669 GB, free: 63.4 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.009354/6.112, allocations: 1.95 MB / 1.671 GB, free: 63.4 MB / 0.5105 GB 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: 12 ($whenCondition1,$whenCondition2,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,valveOpening2.nextEventScaled) * Number of discrete states: 12 (valveOpening2.nextEvent,valveOpening2.last,valveOpening2.nextEventScaled,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,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.01976/6.132, allocations: 9.277 MB / 1.68 GB, free: 59.82 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01199/6.144, allocations: 4.213 MB / 1.684 GB, free: 59.54 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.688e-05/6.144, allocations: 3.031 kB / 1.684 GB, free: 59.54 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.003551/6.148, allocations: 1.514 MB / 1.686 GB, free: 59.31 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008081/6.156, allocations: 0.9175 MB / 1.687 GB, free: 59.29 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02519/6.181, allocations: 6.5 MB / 1.693 GB, free: 58.25 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001585/6.183, allocations: 1.701 MB / 1.695 GB, free: 57.52 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003664/6.187, allocations: 1.036 MB / 1.696 GB, free: 57.51 MB / 0.5105 GB Notification: Performance of SimCode: time 1.853e-06/6.187, allocations: 0 / 1.696 GB, free: 57.51 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.708/10.89, allocations: 93.14 MB / 1.787 GB, free: 44.99 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16_res.mat does not exist to compare? outputFormat=mat