Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.h|junctionIdeal.medium.p|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.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14") Notification: Performance of loadModel(ModelicaTest): time 2.319/2.319, allocations: 234.9 MB / 250.1 MB, free: 10.92 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.133e-05/3.127e-05, allocations: 4 kB / 308 MB, free: 0.8984 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3527/0.3528, allocations: 54.88 MB / 362.9 MB, free: 11.9 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14): time 0.1375/0.4904, allocations: 83.66 MB / 446.5 MB, free: 8.031 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.06402/0.5544, allocations: 30.15 MB / 476.7 MB, free: 9.82 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003667/0.5582, allocations: 107.2 kB / 476.8 MB, free: 9.715 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006261/0.5645, allocations: 1.166 MB / 477.9 MB, free: 8.543 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02554/0.5901, allocations: 5.604 MB / 483.5 MB, free: 2.922 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.428/1.018, allocations: 6.542 MB / 490.1 MB, free: 9.121 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.007923/1.026, allocations: 3.19 MB / 493.3 MB, free: 9.117 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0025/1.029, allocations: 1.061 MB / 494.3 MB, free: 9.102 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005738/1.034, allocations: 1.847 MB / 496.2 MB, free: 9.102 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.03919/1.074, allocations: 18.31 MB / 0.5024 GB, free: 8.82 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02582/1.1, allocations: 9.125 MB / 0.5113 GB, free: 5.742 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004506/1.104, allocations: 0.582 MB / 0.5119 GB, free: 5.16 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001907/1.106, allocations: 0.7516 MB / 0.5126 GB, free: 4.871 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001881/1.108, allocations: 284 kB / 0.5129 GB, free: 4.594 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01556/1.124, allocations: 6.235 MB / 0.519 GB, free: 1.004 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/1.124, allocations: 3.5 kB / 0.519 GB, free: 1.004 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.404e-06/1.124, allocations: 0 / 0.519 GB, free: 1.004 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001407/1.124, allocations: 4 kB / 0.519 GB, free: 1 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: 536 * Number of variables: 536 Notification: Performance of Generate backend data structure: time 0.0137/1.137, allocations: 3.439 MB / 0.5224 GB, free: 13.73 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.612e-05/1.138, allocations: 8.031 kB / 0.5224 GB, free: 13.72 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008673/1.146, allocations: 0.8231 MB / 0.5232 GB, free: 12.96 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005079/1.151, allocations: 1.587 MB / 0.5247 GB, free: 11.74 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003083/1.152, allocations: 181.9 kB / 0.5249 GB, free: 11.64 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008073/1.153, allocations: 201.4 kB / 0.5251 GB, free: 11.5 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0133/1.166, allocations: 3.548 MB / 0.5286 GB, free: 8.754 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.386e-05/1.166, allocations: 9.812 kB / 0.5286 GB, free: 8.75 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003793/1.166, allocations: 86.72 kB / 0.5287 GB, free: 8.727 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004462/1.167, allocations: 209.7 kB / 0.5289 GB, free: 8.551 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01383/1.181, allocations: 3.327 MB / 0.5321 GB, free: 6.168 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.0314/1.212, allocations: 15.39 MB / 0.5471 GB, free: 7.941 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01017/1.222, allocations: 2.769 MB / 0.5498 GB, free: 5.703 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06448/1.287, allocations: 18.94 MB / 0.5683 GB, free: 0.8984 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007324/1.294, allocations: 1.688 MB / 0.57 GB, free: 15.6 MB / 474.7 MB Notification: Performance of pre-optimization done (n=173): time 6.302e-06/1.294, allocations: 0 / 0.57 GB, free: 15.6 MB / 474.7 MB Notification: Performance of matching and sorting (n=189): time 0.04201/1.336, allocations: 9.071 MB / 0.5788 GB, free: 8.617 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001337/1.337, allocations: 182.4 kB / 0.579 GB, free: 8.41 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002888/1.339, allocations: 1.323 MB / 0.5803 GB, free: 7.402 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005296/1.34, allocations: 66.77 kB / 0.5804 GB, free: 7.355 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001006/1.341, allocations: 0.9527 MB / 0.5813 GB, free: 6.711 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001113/1.342, allocations: 0.6326 MB / 0.5819 GB, free: 6.164 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002179/1.342, allocations: 46.06 kB / 0.582 GB, free: 6.152 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002198/1.343, allocations: 392.8 kB / 0.5823 GB, free: 5.797 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003876/1.346, allocations: 1.126 MB / 0.5834 GB, free: 5.035 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004685/1.351, allocations: 1.651 MB / 0.585 GB, free: 3.59 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004655/1.356, allocations: 1.395 MB / 0.5864 GB, free: 2.68 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.428e-05/1.356, allocations: 4 kB / 0.5864 GB, free: 2.676 MB / 474.7 MB Notification: Performance of matching and sorting (n=279) (initialization): time 0.01105/1.367, allocations: 3.196 MB / 0.5895 GB, free: 464 kB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00251/1.37, allocations: 5.815 MB / 0.5952 GB, free: 10.3 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.37e-05/1.37, allocations: 12 kB / 0.5952 GB, free: 10.29 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001416/1.371, allocations: 244.2 kB / 0.5955 GB, free: 10.09 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004773/1.376, allocations: 0.5429 MB / 0.596 GB, free: 9.594 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002525/1.379, allocations: 2.442 MB / 0.5984 GB, free: 7.215 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004924/1.384, allocations: 301.7 kB / 0.5987 GB, free: 6.953 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007307/1.384, allocations: 108.2 kB / 0.5988 GB, free: 6.867 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.756e-05/1.384, allocations: 4 kB / 0.5988 GB, free: 6.863 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01098/1.395, allocations: 3.068 MB / 0.6018 GB, free: 4.793 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.941e-05/1.395, allocations: 12 kB / 0.6018 GB, free: 4.781 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00126/1.397, allocations: 237.8 kB / 0.602 GB, free: 4.586 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004639/1.401, allocations: 0.5421 MB / 0.6025 GB, free: 4.098 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002283/1.404, allocations: 2.44 MB / 0.6049 GB, free: 1.715 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003813/1.408, allocations: 310 kB / 0.6052 GB, free: 1.445 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005596/1.408, allocations: 103.3 kB / 0.6053 GB, free: 1.363 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 66 * Number of states: 0 () * Number of discrete variables: 30 (valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.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,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,valveOpening2.nextEventScaled,junctionIdeal.medium.phase,pipe3.state_a.phase,pipe2.state_a.phase,pipe1.state_b.phase,pipe1.state_a.phase,pipe3.state_b.phase,pipe2.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (263): * Single equations (assignments): 257 * 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.002196/1.41, allocations: 0.6946 MB / 0.606 GB, free: 0.8867 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006939/1.411, allocations: 205.6 kB / 0.6062 GB, free: 0.6836 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01889/1.43, allocations: 7.485 MB / 0.6135 GB, free: 11.58 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001157/1.43, allocations: 88.31 kB / 0.6136 GB, free: 11.52 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.315e-05/1.43, allocations: 3.688 kB / 0.6136 GB, free: 11.52 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01492/1.445, allocations: 6.503 MB / 0.6199 GB, free: 6.992 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03135/1.477, allocations: 12.03 MB / 0.6317 GB, free: 14.57 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.129e-05/1.477, allocations: 4.094 kB / 0.6317 GB, free: 14.57 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003612/1.48, allocations: 431.6 kB / 0.6321 GB, free: 14.18 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002096/1.482, allocations: 343.2 kB / 0.6324 GB, free: 13.9 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005283/1.483, allocations: 77.45 kB / 0.6325 GB, free: 13.86 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002334/1.485, allocations: 2.525 MB / 0.635 GB, free: 11.43 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.414e-05/1.485, allocations: 10.81 kB / 0.635 GB, free: 11.42 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01928/1.505, allocations: 7.659 MB / 0.6424 GB, free: 3.441 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002426/1.507, allocations: 0.7339 MB / 0.6432 GB, free: 2.684 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009017/1.508, allocations: 63.98 kB / 0.6432 GB, free: 2.621 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003399/1.512, allocations: 215.5 kB / 0.6434 GB, free: 2.41 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006947/1.512, allocations: 176.8 kB / 0.6436 GB, free: 2.246 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000294/1.513, allocations: 83.92 kB / 0.6437 GB, free: 2.164 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002785/1.515, allocations: 1.11 MB / 0.6448 GB, free: 1.035 MB / 0.5105 GB Notification: Performance of sort global known variables: time 7.92e-07/1.515, allocations: 4 kB / 0.6448 GB, free: 1.031 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01113/1.527, allocations: 2.522 MB / 0.6472 GB, free: 14.51 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 8 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h,junctionIdeal.medium.p,junctionIdeal.medium.h) * Number of discrete variables: 56 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse18.phase,$cse18.region,$cse20.region3boundary,$cse21.region3boundary,$cse22.phase,$cse22.region,$cse24.phase,$cse24.region,$cse25.region3boundary,$cse26.region3boundary,$cse27.phase,$cse27.region,$cse29.phase,$cse29.region,$cse30.phase,$cse30.region,$cse31.region3boundary,$cse32.region3boundary,$cse33.phase,$cse33.region,$cse37.phase,$cse37.region,$cse42.phase,$cse42.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,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,valveOpening2.nextEventScaled,junctionIdeal.medium.phase) * 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 (212): * Single equations (assignments): 183 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 23 * 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 Backend phase and start with SimCode phase: time 0.01158/1.538, allocations: 2.083 MB / 0.6493 GB, free: 12.6 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01787/1.556, allocations: 5.44 MB / 0.6546 GB, free: 7.207 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.38e-05/1.556, allocations: 0.625 kB / 0.6546 GB, free: 7.207 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.007812/1.564, allocations: 2.772 MB / 0.6573 GB, free: 4.461 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008985/1.573, allocations: 0.9707 MB / 0.6582 GB, free: 3.492 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02459/1.598, allocations: 9.122 MB / 0.6671 GB, free: 10.43 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004523/1.602, allocations: 2.252 MB / 0.6693 GB, free: 8.145 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001926/1.604, allocations: 219.4 kB / 0.6695 GB, free: 7.93 MB / 0.5417 GB Notification: Performance of SimCode: time 1.393e-06/1.604, allocations: 0 / 0.6695 GB, free: 7.93 MB / 0.5417 GB Notification: Performance of Templates: time 0.5242/2.129, allocations: 113.8 MB / 0.7807 GB, free: 145.6 MB / 0.5417 GB