Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe2.mediums.1..h|pipe2.mediums.1..p|pipe3.mediums.1..h|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.BranchingPipes3") Notification: Performance of loadModel(ModelicaTest): time 1.929/1.929, allocations: 209.3 MB / 224.4 MB, free: 0.5156 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.435e-05/3.436e-05, allocations: 4 kB / 276.1 MB, free: 15.87 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3534/0.3534, allocations: 48.7 MB / 324.8 MB, free: 2.875 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3): time 0.1366/0.4901, allocations: 80.57 MB / 405.4 MB, free: 14.86 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0594/0.5495, allocations: 28.91 MB / 434.3 MB, free: 1.895 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003615/0.5532, allocations: 103.2 kB / 434.4 MB, free: 1.793 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00456/0.5578, allocations: 1.104 MB / 435.5 MB, free: 0.6836 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02276/0.5806, allocations: 5.363 MB / 440.9 MB, free: 11.3 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02344/0.6041, allocations: 6.175 MB / 447.1 MB, free: 5.125 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.007835/0.612, allocations: 2.877 MB / 449.9 MB, free: 2.242 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002354/0.6144, allocations: 0.9937 MB / 450.9 MB, free: 1.246 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005364/0.6198, allocations: 1.691 MB / 452.6 MB, free: 15.55 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0445/0.6643, allocations: 18.04 MB / 470.7 MB, free: 13.5 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02644/0.6908, allocations: 8.815 MB / 479.5 MB, free: 4.676 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004413/0.6953, allocations: 0.5547 MB / 480 MB, free: 4.121 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001665/0.697, allocations: 0.6778 MB / 480.7 MB, free: 3.441 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00105/0.6981, allocations: 256 kB / 481 MB, free: 3.191 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.3389/1.037, allocations: 5.83 MB / 486.8 MB, free: 35.17 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/1.037, allocations: 0.8438 kB / 486.8 MB, free: 35.17 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.936e-06/1.037, allocations: 0 / 486.8 MB, free: 35.17 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001536/1.037, allocations: 1.188 kB / 486.8 MB, free: 35.17 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 472 * Number of variables: 472 Notification: Performance of Generate backend data structure: time 0.01354/1.051, allocations: 3.115 MB / 489.9 MB, free: 33.7 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.692e-05/1.051, allocations: 8.969 kB / 489.9 MB, free: 33.7 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008677/1.06, allocations: 0.7246 MB / 490.6 MB, free: 33.57 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00526/1.065, allocations: 1.485 MB / 492.1 MB, free: 33.17 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003101/1.065, allocations: 166.2 kB / 492.3 MB, free: 33.17 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008591/1.066, allocations: 178.4 kB / 492.5 MB, free: 33.17 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0123/1.078, allocations: 3.154 MB / 495.6 MB, free: 32.79 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.705e-05/1.079, allocations: 8.312 kB / 495.6 MB, free: 32.79 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003768/1.079, allocations: 77.64 kB / 495.7 MB, free: 32.79 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004756/1.079, allocations: 174.2 kB / 495.9 MB, free: 32.79 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01294/1.092, allocations: 2.917 MB / 498.8 MB, free: 32.77 MB / 410.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.02647/1.119, allocations: 13.81 MB / 0.5006 GB, free: 24.3 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007916/1.127, allocations: 2.015 MB / 0.5026 GB, free: 24.25 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05891/1.186, allocations: 19.03 MB / 0.5211 GB, free: 11.78 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006474/1.192, allocations: 1.551 MB / 0.5226 GB, free: 11.65 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001771/1.194, allocations: 168.8 kB / 0.5228 GB, free: 11.57 MB / 410.7 MB Notification: Performance of pre-optimization done (n=151): time 6.552e-06/1.194, allocations: 4 kB / 0.5228 GB, free: 11.57 MB / 410.7 MB Notification: Performance of matching and sorting (n=163): time 0.038/1.232, allocations: 8.203 MB / 0.5308 GB, free: 10.32 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.768e-05/1.232, allocations: 179.1 kB / 0.531 GB, free: 10.14 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00246/1.235, allocations: 1.233 MB / 0.5322 GB, free: 9.965 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005925/1.235, allocations: 54.77 kB / 0.5323 GB, free: 9.926 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007725/1.236, allocations: 0.8635 MB / 0.5331 GB, free: 9.402 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008477/1.237, allocations: 0.546 MB / 0.5336 GB, free: 8.98 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001909/1.237, allocations: 35.44 kB / 0.5337 GB, free: 8.973 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001342/1.237, allocations: 391 kB / 0.534 GB, free: 8.637 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003167/1.241, allocations: 0.996 MB / 0.535 GB, free: 8.113 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003821/1.245, allocations: 1.466 MB / 0.5364 GB, free: 6.855 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00381/1.248, allocations: 1.244 MB / 0.5377 GB, free: 6.047 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.666e-05/1.248, allocations: 4 kB / 0.5377 GB, free: 6.043 MB / 410.7 MB Notification: Performance of matching and sorting (n=241) (initialization): time 0.01107/1.26, allocations: 3.099 MB / 0.5407 GB, free: 3.871 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001736/1.261, allocations: 5.029 MB / 0.5456 GB, free: 14.54 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.887e-05/1.261, allocations: 13.59 kB / 0.5456 GB, free: 14.53 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004395/1.266, allocations: 0.5181 MB / 0.5461 GB, free: 14.07 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004008/1.27, allocations: 475.7 kB / 0.5466 GB, free: 13.66 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003265/1.273, allocations: 2.697 MB / 0.5492 GB, free: 11.09 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004355/1.278, allocations: 263.4 kB / 0.5495 GB, free: 10.87 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003692/1.278, allocations: 96.58 kB / 0.5495 GB, free: 10.79 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.488e-05/1.278, allocations: 10.44 kB / 0.5496 GB, free: 10.78 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00874/1.287, allocations: 2.782 MB / 0.5523 GB, free: 8.883 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.195e-05/1.287, allocations: 15.95 kB / 0.5523 GB, free: 8.867 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001002/1.288, allocations: 198.5 kB / 0.5525 GB, free: 8.707 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003824/1.292, allocations: 481.5 kB / 0.5529 GB, free: 8.281 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001748/1.293, allocations: 1.886 MB / 0.5548 GB, free: 6.457 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003302/1.297, allocations: 254.7 kB / 0.555 GB, free: 6.234 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002902/1.297, allocations: 96.23 kB / 0.5551 GB, free: 6.16 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 57 * Number of states: 0 () * Number of discrete variables: 27 (valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.state_a.phase,$whenCondition1,$whenCondition2,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,pipe3.state_a.phase,pipe2.state_a.phase,pipe1.state_a.phase,pipe3.state_b.phase,pipe2.state_b.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (224): * Single equations (assignments): 218 * 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,2 5} Notification: Performance of prepare postOptimizeDAE: time 0.001922/1.299, allocations: 0.6427 MB / 0.5557 GB, free: 5.707 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006539/1.3, allocations: 186.4 kB / 0.5559 GB, free: 5.523 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01639/1.316, allocations: 7.418 MB / 0.5632 GB, free: 488 kB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001059/1.316, allocations: 89.38 kB / 0.5632 GB, free: 420 kB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.143e-05/1.316, allocations: 0 / 0.5632 GB, free: 420 kB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01349/1.33, allocations: 6.483 MB / 0.5696 GB, free: 11.91 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02489/1.355, allocations: 11.07 MB / 0.5804 GB, free: 4.426 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.902e-05/1.355, allocations: 4 kB / 0.5804 GB, free: 4.422 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002811/1.358, allocations: 355.6 kB / 0.5807 GB, free: 4.105 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00422/1.362, allocations: 1.179 MB / 0.5819 GB, free: 3.062 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003382/1.362, allocations: 70.22 kB / 0.5819 GB, free: 3.027 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003618/1.366, allocations: 3.188 MB / 0.5851 GB, free: 200 kB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.639e-06/1.366, allocations: 7.094 kB / 0.5851 GB, free: 196 kB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01699/1.383, allocations: 7.347 MB / 0.5922 GB, free: 10.9 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002427/1.385, allocations: 0.6823 MB / 0.5929 GB, free: 10.31 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008551/1.386, allocations: 51.3 kB / 0.593 GB, free: 10.29 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003162/1.389, allocations: 186.7 kB / 0.5931 GB, free: 10.13 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005474/1.39, allocations: 150.2 kB / 0.5933 GB, free: 10.01 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002457/1.39, allocations: 68.28 kB / 0.5933 GB, free: 9.953 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002511/1.393, allocations: 1.046 MB / 0.5944 GB, free: 9.148 MB / 458.7 MB Notification: Performance of sort global known variables: time 5.71e-07/1.393, allocations: 0 / 0.5944 GB, free: 9.148 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01118/1.404, allocations: 2.365 MB / 0.5967 GB, free: 6.934 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 53 ($cse6.phase,$cse6.region,$cse8.region3boundary,$cse9.region3boundary,$cse10.phase,$cse10.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse21.phase,$cse21.region,$cse23.region3boundary,$cse24.region3boundary,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse28.phase,$cse28.region,$cse29.region3boundary,$cse30.region3boundary,$cse31.phase,$cse31.region,$cse33.phase,$cse33.region,$cse34.phase,$cse34.region,$cse36.phase,$cse36.region,$cse41.phase,$cse41.region,$whenCondition1,$whenCondition2,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,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 (177): * Single equations (assignments): 151 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 20 * 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,2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.01093/1.415, allocations: 1.991 MB / 0.5986 GB, free: 5.18 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01448/1.43, allocations: 4.802 MB / 0.6033 GB, free: 1.805 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.312e-05/1.43, allocations: 3.906 kB / 0.6033 GB, free: 1.805 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006366/1.436, allocations: 2.466 MB / 0.6057 GB, free: 264 kB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008341/1.444, allocations: 0.8997 MB / 0.6066 GB, free: 15.52 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01929/1.464, allocations: 8.413 MB / 0.6148 GB, free: 8.18 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002782/1.467, allocations: 2.14 MB / 0.6169 GB, free: 6.094 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001399/1.468, allocations: 186.5 kB / 0.6171 GB, free: 5.922 MB / 474.7 MB Notification: Performance of SimCode: time 1.723e-06/1.468, allocations: 3.938 kB / 0.6171 GB, free: 5.918 MB / 474.7 MB Notification: Performance of Templates: time 0.4728/1.941, allocations: 106.2 MB / 0.7208 GB, free: 169.9 MB / 0.4948 GB