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 2.162/2.162, allocations: 209.3 MB / 221.9 MB, free: 1.93 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.211e-05/4.224e-05, allocations: 4 kB / 273.1 MB, free: 0.6484 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1056/0.1057, allocations: 48.71 MB / 321.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.352/2.458, allocations: 0.681 GB / 0.9953 GB, free: 94.47 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002682/2.458, allocations: 75.14 kB / 0.9953 GB, free: 94.47 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.021/5.48, allocations: 0.5492 GB / 1.545 GB, free: 34.33 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.004e-06/5.48, allocations: 0 / 1.545 GB, free: 34.33 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003146/5.48, allocations: 66 kB / 1.545 GB, free: 34.32 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.01341/5.493, allocations: 3.008 MB / 1.548 GB, free: 33.03 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.375e-05/5.493, allocations: 8.906 kB / 1.548 GB, free: 33.03 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001325/5.495, allocations: 243.5 kB / 1.548 GB, free: 32.98 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004988/5.5, allocations: 433.9 kB / 1.548 GB, free: 32.86 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008568/5.508, allocations: 1.926 MB / 1.55 GB, free: 32.43 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002687/5.509, allocations: 131.2 kB / 1.55 GB, free: 32.42 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001118/5.51, allocations: 166.4 kB / 1.55 GB, free: 32.42 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007777/5.518, allocations: 2.56 MB / 1.553 GB, free: 31.99 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.679e-05/5.518, allocations: 8.656 kB / 1.553 GB, free: 31.99 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004366/5.518, allocations: 70.58 kB / 1.553 GB, free: 31.99 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003015/5.519, allocations: 155.8 kB / 1.553 GB, free: 31.99 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006945/5.525, allocations: 2.164 MB / 1.555 GB, free: 31.97 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.02588/5.551, allocations: 10.93 MB / 1.566 GB, free: 26.09 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004945/5.556, allocations: 1.739 MB / 1.568 GB, free: 25.77 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002905/5.559, allocations: 1.027 MB / 1.569 GB, free: 25.75 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001564/5.561, allocations: 464.7 kB / 1.569 GB, free: 25.46 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003392/5.564, allocations: 1.137 MB / 1.57 GB, free: 25.33 MB / 458.7 MB Notification: Performance of pre-optimization done (n=158): time 6.062e-06/5.564, allocations: 0 / 1.57 GB, free: 25.33 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.03996/5.604, allocations: 8.486 MB / 1.578 GB, free: 24.15 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001199/5.605, allocations: 258.7 kB / 1.579 GB, free: 23.87 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003216/5.608, allocations: 1.326 MB / 1.58 GB, free: 23.7 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007758/5.609, allocations: 59.17 kB / 1.58 GB, free: 23.66 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001107/5.61, allocations: 0.8108 MB / 1.581 GB, free: 23.27 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001235/5.611, allocations: 0.6138 MB / 1.581 GB, free: 22.88 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00031/5.611, allocations: 37.78 kB / 1.581 GB, free: 22.88 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.000186/5.612, allocations: 395.1 kB / 1.582 GB, free: 22.57 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002774/5.614, allocations: 0.9745 MB / 1.583 GB, free: 22.56 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003554/5.618, allocations: 1.421 MB / 1.584 GB, free: 22.13 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00349/5.622, allocations: 1.261 MB / 1.585 GB, free: 22.04 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.929e-05/5.622, allocations: 0 / 1.585 GB, free: 22.04 MB / 458.7 MB Notification: Performance of matching and sorting (n=262) (initialization): time 0.008407/5.63, allocations: 2.911 MB / 1.588 GB, free: 21.82 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009626/5.631, allocations: 4.162 MB / 1.592 GB, free: 17.5 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.274e-05/5.631, allocations: 11.03 kB / 1.592 GB, free: 17.5 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007359/5.632, allocations: 188 kB / 1.592 GB, free: 17.46 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004832/5.637, allocations: 0.5434 MB / 1.593 GB, free: 17.46 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00185/5.639, allocations: 2.335 MB / 1.595 GB, free: 15.38 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004337/5.643, allocations: 215.8 kB / 1.596 GB, free: 15.37 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008737/5.644, allocations: 185.8 kB / 1.596 GB, free: 15.37 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.61e-05/5.644, allocations: 5.75 kB / 1.596 GB, free: 15.37 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007502/5.651, allocations: 2.745 MB / 1.598 GB, free: 15.16 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.348e-05/5.652, allocations: 10.22 kB / 1.598 GB, free: 15.16 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005986/5.652, allocations: 200.5 kB / 1.599 GB, free: 15.12 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004435/5.657, allocations: 0.5361 MB / 1.599 GB, free: 15.1 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002289/5.659, allocations: 2.322 MB / 1.601 GB, free: 29.02 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003376/5.662, allocations: 204.9 kB / 1.602 GB, free: 29.01 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007039/5.663, allocations: 187.1 kB / 1.602 GB, free: 29.01 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.0009657/5.664, allocations: 298.6 kB / 1.602 GB, free: 28.8 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006819/5.665, allocations: 206.3 kB / 1.602 GB, free: 28.7 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01166/5.676, allocations: 3.486 MB / 1.606 GB, free: 28.07 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.298e-05/5.677, allocations: 20.66 kB / 1.606 GB, free: 28.07 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.129e-05/5.677, allocations: 0 / 1.606 GB, free: 28.07 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006546/5.683, allocations: 2.719 MB / 1.608 GB, free: 26.82 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0192/5.702, allocations: 6.854 MB / 1.615 GB, free: 23.67 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.716e-05/5.702, allocations: 6.781 kB / 1.615 GB, free: 23.67 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003792/5.706, allocations: 456.5 kB / 1.615 GB, free: 23.63 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006855/5.707, allocations: 177.2 kB / 1.616 GB, free: 23.58 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005553/5.708, allocations: 103 kB / 1.616 GB, free: 23.55 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002823/5.71, allocations: 3.077 MB / 1.619 GB, free: 20.59 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.397e-06/5.71, allocations: 14.45 kB / 1.619 GB, free: 20.59 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01038/5.721, allocations: 4.633 MB / 1.623 GB, free: 18.19 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002061/5.723, allocations: 0.5268 MB / 1.624 GB, free: 17.88 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008179/5.724, allocations: 54.23 kB / 1.624 GB, free: 17.85 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003039/5.727, allocations: 135.6 kB / 1.624 GB, free: 17.81 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005854/5.728, allocations: 169.9 kB / 1.624 GB, free: 17.79 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004381/5.728, allocations: 170.3 kB / 1.624 GB, free: 17.77 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002235/5.73, allocations: 1.004 MB / 1.625 GB, free: 17.39 MB / 474.7 MB Notification: Performance of sort global known variables: time 7.71e-07/5.73, allocations: 0 / 1.625 GB, free: 17.39 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.009233/5.739, allocations: 1.945 MB / 1.627 GB, free: 16.15 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.02052/5.76, allocations: 9.228 MB / 1.636 GB, free: 7.738 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0129/5.773, allocations: 4.161 MB / 1.64 GB, free: 3.906 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.792e-05/5.773, allocations: 4 kB / 1.64 GB, free: 3.902 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004249/5.777, allocations: 1.485 MB / 1.642 GB, free: 2.52 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008606/5.786, allocations: 0.9006 MB / 1.643 GB, free: 1.863 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02804/5.814, allocations: 6.512 MB / 1.649 GB, free: 12.49 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002039/5.816, allocations: 1.704 MB / 1.651 GB, free: 11.11 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003959/5.82, allocations: 1.026 MB / 1.652 GB, free: 10.18 MB / 490.7 MB Notification: Performance of SimCode: time 1.473e-06/5.82, allocations: 0 / 1.652 GB, free: 10.18 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.972/10.79, allocations: 92.73 MB / 1.742 GB, free: 53.24 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