Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.T|junctionIdeal.medium.p|junctionVolume.medium.T|pipe1.mediums.1..T|pipe1.mediums.1..p|pipe2.mediums.1..T|pipe2.mediums.1..p|pipe3.mediums.1..T|pipe3.mediums.1..p|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17") Notification: Performance of loadModel(ModelicaTest): time 2.004/2.004, allocations: 209.3 MB / 224.4 MB, free: 0.5195 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.743e-05/2.742e-05, allocations: 4 kB / 276.2 MB, free: 15.86 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3588/0.3588, allocations: 48.69 MB / 324.8 MB, free: 2.883 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17): time 0.6767/1.036, allocations: 180.7 MB / 0.4937 GB, free: 3.422 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.04551/1.081, allocations: 21.41 MB / 0.5146 GB, free: 3.066 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004299/1.086, allocations: 110.2 kB / 0.5147 GB, free: 3.066 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004211/1.09, allocations: 0.9592 MB / 0.5156 GB, free: 3.059 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01505/1.105, allocations: 3.483 MB / 0.519 GB, free: 2.953 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01819/1.123, allocations: 4.841 MB / 0.5237 GB, free: 1.68 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.007887/1.131, allocations: 3.049 MB / 0.5267 GB, free: 1.141 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002163/1.133, allocations: 1.11 MB / 0.5278 GB, free: 0.6992 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005331/1.139, allocations: 1.837 MB / 0.5296 GB, free: 448 kB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004332/1.143, allocations: 1.565 MB / 0.5311 GB, free: 84 kB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01123/1.154, allocations: 3.223 MB / 0.5343 GB, free: 15.45 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002181/1.157, allocations: 258.9 kB / 0.5345 GB, free: 15.45 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0016/1.158, allocations: 0.7573 MB / 0.5353 GB, free: 15.24 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00127/1.159, allocations: 257.2 kB / 0.5355 GB, free: 15.24 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0103/1.17, allocations: 3.924 MB / 0.5393 GB, free: 13.44 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/1.17, allocations: 0 / 0.5393 GB, free: 13.44 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.875e-06/1.17, allocations: 0 / 0.5393 GB, free: 13.44 MB / 426.7 MB Notification: Performance of Transformations before backend: time 7.604e-05/1.17, allocations: 0 / 0.5393 GB, free: 13.44 MB / 426.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.009941/1.18, allocations: 2.747 MB / 0.542 GB, free: 11.73 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.5e-05/1.18, allocations: 8.812 kB / 0.542 GB, free: 11.73 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004268/1.184, allocations: 443.8 kB / 0.5425 GB, free: 11.54 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0045/1.189, allocations: 1.482 MB / 0.5439 GB, free: 10.83 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001397/1.189, allocations: 132.1 kB / 0.544 GB, free: 10.82 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004725/1.189, allocations: 176.2 kB / 0.5442 GB, free: 10.82 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006443/1.196, allocations: 2.609 MB / 0.5467 GB, free: 9.988 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.618e-05/1.196, allocations: 9.625 kB / 0.5468 GB, free: 9.984 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003101/1.196, allocations: 74.19 kB / 0.5468 GB, free: 9.984 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003979/1.197, allocations: 196.5 kB / 0.547 GB, free: 9.941 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006364/1.203, allocations: 2.299 MB / 0.5493 GB, free: 8.934 MB / 426.7 MB Warning: The model contains alias variables with redundant start and/or conflicting 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.02531/1.228, allocations: 11.25 MB / 0.5602 GB, free: 14.9 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005391/1.234, allocations: 1.843 MB / 0.562 GB, free: 13.51 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001547/1.235, allocations: 459.1 kB / 0.5625 GB, free: 13.04 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003404/1.239, allocations: 1.192 MB / 0.5636 GB, free: 12.16 MB / 442.7 MB Notification: Performance of pre-optimization done (n=168): time 5.781e-06/1.239, allocations: 0 / 0.5636 GB, free: 12.16 MB / 442.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: junctionIdeal.medium.T 5: junctionVolume.medium.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=196): time 0.05402/1.293, allocations: 12.02 MB / 0.5754 GB, free: 2.535 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001498/1.293, allocations: 191.5 kB / 0.5756 GB, free: 2.316 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002962/1.296, allocations: 1.365 MB / 0.5769 GB, free: 1.277 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006076/1.297, allocations: 61.95 kB / 0.577 GB, free: 1.238 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009509/1.298, allocations: 0.8826 MB / 0.5778 GB, free: 0.6719 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001156/1.299, allocations: 0.6631 MB / 0.5785 GB, free: 104 kB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002587/1.299, allocations: 47.06 kB / 0.5785 GB, free: 92 kB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002748/1.299, allocations: 400.1 kB / 0.5789 GB, free: 15.73 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00345/1.303, allocations: 1.059 MB / 0.5799 GB, free: 15.02 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004174/1.307, allocations: 1.594 MB / 0.5815 GB, free: 13.63 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0043/1.312, allocations: 1.366 MB / 0.5828 GB, free: 12.75 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.246e-05/1.312, allocations: 4 kB / 0.5828 GB, free: 12.75 MB / 458.7 MB Notification: Performance of matching and sorting (n=293) (initialization): time 0.011/1.323, allocations: 3.245 MB / 0.586 GB, free: 10.46 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002757/1.325, allocations: 5.639 MB / 0.5915 GB, free: 4.496 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.672e-05/1.326, allocations: 12 kB / 0.5915 GB, free: 4.484 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001395/1.327, allocations: 312 kB / 0.5918 GB, free: 4.219 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005052/1.332, allocations: 0.5849 MB / 0.5924 GB, free: 3.684 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003199/1.335, allocations: 3.017 MB / 0.5953 GB, free: 0.6914 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004309/1.34, allocations: 206.7 kB / 0.5955 GB, free: 0.5234 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008946/1.341, allocations: 209.5 kB / 0.5957 GB, free: 348 kB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.689e-05/1.341, allocations: 4 kB / 0.5957 GB, free: 344 kB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009762/1.35, allocations: 3.082 MB / 0.5987 GB, free: 14.23 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.025e-05/1.35, allocations: 16 kB / 0.5988 GB, free: 14.21 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00121/1.352, allocations: 320.5 kB / 0.5991 GB, free: 13.94 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004841/1.357, allocations: 0.5725 MB / 0.5996 GB, free: 13.42 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003159/1.36, allocations: 3.018 MB / 0.6026 GB, free: 10.43 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00341/1.363, allocations: 216.4 kB / 0.6028 GB, free: 10.25 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007678/1.364, allocations: 204.8 kB / 0.603 GB, free: 10.07 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 64 * 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 (274): * Single equations (assignments): 267 * 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.00212/1.366, allocations: 0.6254 MB / 0.6036 GB, free: 9.641 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007429/1.367, allocations: 217.4 kB / 0.6038 GB, free: 9.426 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01597/1.383, allocations: 3.761 MB / 0.6075 GB, free: 6.695 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.313e-05/1.383, allocations: 24 kB / 0.6075 GB, free: 6.672 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.154e-05/1.383, allocations: 0 / 0.6075 GB, free: 6.672 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008412/1.391, allocations: 2.918 MB / 0.6103 GB, free: 4.426 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02104/1.413, allocations: 6.913 MB / 0.6171 GB, free: 15.11 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.292e-05/1.413, allocations: 4 kB / 0.6171 GB, free: 15.11 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003971/1.417, allocations: 466.6 kB / 0.6175 GB, free: 14.69 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001513/1.418, allocations: 327.5 kB / 0.6178 GB, free: 14.39 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005068/1.419, allocations: 104.6 kB / 0.6179 GB, free: 14.32 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003902/1.423, allocations: 3.755 MB / 0.6216 GB, free: 10.54 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.327e-06/1.423, allocations: 10.44 kB / 0.6216 GB, free: 10.54 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0128/1.435, allocations: 4.875 MB / 0.6264 GB, free: 6.707 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002088/1.438, allocations: 0.53 MB / 0.6269 GB, free: 6.266 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007814/1.438, allocations: 62.17 kB / 0.627 GB, free: 6.238 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002702/1.441, allocations: 124.1 kB / 0.6271 GB, free: 6.141 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005431/1.442, allocations: 185 kB / 0.6273 GB, free: 5.984 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004738/1.442, allocations: 181.1 kB / 0.6274 GB, free: 5.824 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002333/1.445, allocations: 1.028 MB / 0.6284 GB, free: 5.066 MB / 490.7 MB Notification: Performance of sort global known variables: time 5.41e-07/1.445, allocations: 0 / 0.6284 GB, free: 5.066 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.007952/1.453, allocations: 1.785 MB / 0.6302 GB, free: 3.418 MB / 490.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.00524/1.458, allocations: 1.303 MB / 0.6314 GB, free: 2.27 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01354/1.471, allocations: 4.55 MB / 0.6359 GB, free: 15 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.518e-05/1.471, allocations: 4 kB / 0.6359 GB, free: 14.99 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.00458/1.476, allocations: 1.59 MB / 0.6374 GB, free: 13.79 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008691/1.485, allocations: 1.042 MB / 0.6385 GB, free: 12.93 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01532/1.5, allocations: 5.997 MB / 0.6443 GB, free: 7.441 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002026/1.502, allocations: 1.732 MB / 0.646 GB, free: 5.75 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00284/1.505, allocations: 384.3 kB / 0.6464 GB, free: 5.395 MB / 0.4948 GB Notification: Performance of SimCode: time 1.132e-06/1.505, allocations: 0 / 0.6464 GB, free: 5.395 MB / 0.4948 GB Notification: Performance of Templates: time 0.478/1.983, allocations: 88.66 MB / 0.733 GB, free: 187.7 MB / 0.5105 GB