Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes15",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.334/2.334, allocations: 235 MB / 247.6 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 5.006e-05/5.014e-05, allocations: 4 kB / 305 MB, free: 5.57 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3988/0.3989, allocations: 54.86 MB / 359.9 MB, free: 2.699 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.869/2.268, allocations: 0.6876 GB / 1.039 GB, free: 41.3 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002421/2.269, allocations: 76.31 kB / 1.039 GB, free: 41.27 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.044/5.313, allocations: 0.5495 GB / 1.589 GB, free: 37.65 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.743e-06/5.313, allocations: 0 / 1.589 GB, free: 37.65 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0003497/5.313, allocations: 60.86 kB / 1.589 GB, free: 37.64 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.01614/5.33, allocations: 3.024 MB / 1.592 GB, free: 35.9 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.38e-05/5.33, allocations: 10.91 kB / 1.592 GB, free: 35.9 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001584/5.331, allocations: 236.7 kB / 1.592 GB, free: 35.77 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007462/5.339, allocations: 446.2 kB / 1.592 GB, free: 35.61 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01213/5.351, allocations: 1.928 MB / 1.594 GB, free: 34.75 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003344/5.351, allocations: 135.6 kB / 1.594 GB, free: 34.69 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001339/5.353, allocations: 164 kB / 1.594 GB, free: 34.65 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01049/5.363, allocations: 2.554 MB / 1.597 GB, free: 33.48 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.869e-05/5.363, allocations: 7.406 kB / 1.597 GB, free: 33.48 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005671/5.364, allocations: 75.69 kB / 1.597 GB, free: 33.44 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004135/5.364, allocations: 154.8 kB / 1.597 GB, free: 33.41 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009865/5.374, allocations: 2.146 MB / 1.599 GB, free: 32.68 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.03542/5.41, allocations: 10.96 MB / 1.61 GB, free: 22.57 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007064/5.417, allocations: 1.74 MB / 1.612 GB, free: 20.76 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004006/5.421, allocations: 1.032 MB / 1.613 GB, free: 19.73 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002037/5.423, allocations: 453.2 kB / 1.613 GB, free: 19.24 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004806/5.428, allocations: 1.145 MB / 1.614 GB, free: 18.07 MB / 490.7 MB Notification: Performance of pre-optimization done (n=162): time 9.247e-06/5.428, allocations: 0 / 1.614 GB, free: 18.07 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.05605/5.484, allocations: 8.474 MB / 1.623 GB, free: 9.477 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001474/5.484, allocations: 261.3 kB / 1.623 GB, free: 9.164 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003894/5.488, allocations: 1.329 MB / 1.624 GB, free: 7.836 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009301/5.489, allocations: 61.7 kB / 1.624 GB, free: 7.77 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001109/5.49, allocations: 0.814 MB / 1.625 GB, free: 6.953 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001428/5.492, allocations: 0.6203 MB / 1.626 GB, free: 6.336 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003538/5.492, allocations: 40 kB / 1.626 GB, free: 6.297 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002321/5.492, allocations: 394.9 kB / 1.626 GB, free: 5.902 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003915/5.496, allocations: 0.984 MB / 1.627 GB, free: 4.918 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004786/5.501, allocations: 1.426 MB / 1.628 GB, free: 3.328 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004739/5.506, allocations: 1.26 MB / 1.63 GB, free: 2.059 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.049e-05/5.506, allocations: 4 kB / 1.63 GB, free: 2.055 MB / 490.7 MB Notification: Performance of matching and sorting (n=266) (initialization): time 0.01341/5.52, allocations: 2.854 MB / 1.632 GB, free: 15.17 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.002757/5.522, allocations: 4.166 MB / 1.636 GB, free: 10.67 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001099/5.523, allocations: 8 kB / 1.636 GB, free: 10.66 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001108/5.524, allocations: 191.3 kB / 1.637 GB, free: 10.46 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008108/5.532, allocations: 0.5461 MB / 1.637 GB, free: 9.914 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003222/5.535, allocations: 2.334 MB / 1.639 GB, free: 7.48 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006113/5.541, allocations: 207.7 kB / 1.64 GB, free: 7.277 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001064/5.542, allocations: 191.9 kB / 1.64 GB, free: 7.09 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.491e-05/5.542, allocations: 4 kB / 1.64 GB, free: 7.086 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00911/5.551, allocations: 2.693 MB / 1.642 GB, free: 4.367 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.196e-05/5.552, allocations: 15.94 kB / 1.642 GB, free: 4.352 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006713/5.552, allocations: 191.8 kB / 1.643 GB, free: 4.152 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004907/5.557, allocations: 0.5383 MB / 1.643 GB, free: 3.613 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002339/5.56, allocations: 2.323 MB / 1.645 GB, free: 1.188 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003655/5.563, allocations: 207.8 kB / 1.646 GB, free: 0.9844 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009387/5.564, allocations: 188 kB / 1.646 GB, free: 0.8008 MB / 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.001118/5.565, allocations: 292.7 kB / 1.646 GB, free: 0.4961 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007905/5.566, allocations: 213.4 kB / 1.646 GB, free: 292 kB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01384/5.58, allocations: 3.465 MB / 1.65 GB, free: 12.8 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-05/5.58, allocations: 16 kB / 1.65 GB, free: 12.79 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.349e-05/5.58, allocations: 4 kB / 1.65 GB, free: 12.78 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008377/5.589, allocations: 2.712 MB / 1.652 GB, free: 9.957 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02398/5.613, allocations: 6.849 MB / 1.659 GB, free: 2.793 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-05/5.613, allocations: 8 kB / 1.659 GB, free: 2.785 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004283/5.617, allocations: 448.1 kB / 1.659 GB, free: 2.348 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008069/5.618, allocations: 195.2 kB / 1.66 GB, free: 2.145 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006869/5.619, allocations: 95.95 kB / 1.66 GB, free: 2.051 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.41/6.029, allocations: 3.057 MB / 1.663 GB, free: 65.42 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.452e-05/6.029, allocations: 14 kB / 1.663 GB, free: 65.42 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01277/6.041, allocations: 4.643 MB / 1.667 GB, free: 64.35 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002388/6.044, allocations: 0.5231 MB / 1.668 GB, free: 64.26 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009927/6.045, allocations: 61.19 kB / 1.668 GB, free: 64.26 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003348/6.048, allocations: 130.6 kB / 1.668 GB, free: 64.26 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007951/6.049, allocations: 181.6 kB / 1.668 GB, free: 64.25 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005668/6.05, allocations: 173.5 kB / 1.668 GB, free: 64.25 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002788/6.053, allocations: 1.003 MB / 1.669 GB, free: 64.13 MB / 0.5105 GB Notification: Performance of sort global known variables: time 8.82e-07/6.053, allocations: 0 / 1.669 GB, free: 64.13 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01052/6.063, allocations: 1.954 MB / 1.671 GB, free: 64.13 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.0228/6.086, allocations: 9.264 MB / 1.68 GB, free: 60.57 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01296/6.099, allocations: 4.213 MB / 1.684 GB, free: 60.28 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.311e-05/6.099, allocations: 3.562 kB / 1.684 GB, free: 60.28 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0039/6.103, allocations: 1.515 MB / 1.686 GB, free: 60.05 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008506/6.112, allocations: 0.9163 MB / 1.687 GB, free: 60.03 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02664/6.138, allocations: 6.517 MB / 1.693 GB, free: 58.99 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001609/6.14, allocations: 1.7 MB / 1.695 GB, free: 58.26 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003677/6.144, allocations: 1.033 MB / 1.696 GB, free: 58.25 MB / 0.5105 GB Notification: Performance of SimCode: time 1.393e-06/6.144, allocations: 0 / 1.696 GB, free: 58.25 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.425/10.57, allocations: 93.14 MB / 1.787 GB, free: 45.71 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15_res.mat does not exist to compare? outputFormat=mat