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.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14") Notification: Performance of loadModel(ModelicaTest): time 2.094/2.094, allocations: 209.3 MB / 224.4 MB, free: 0.5195 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.512e-05/3.524e-05, allocations: 4 kB / 276.1 MB, free: 15.88 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3966/0.3967, allocations: 48.7 MB / 324.8 MB, free: 2.898 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14): time 0.1396/0.5363, allocations: 82.99 MB / 407.8 MB, free: 12.44 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.06494/0.6013, allocations: 29.96 MB / 437.8 MB, free: 14.43 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003778/0.6051, allocations: 107.2 kB / 437.9 MB, free: 14.32 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00499/0.6102, allocations: 1.159 MB / 439.1 MB, free: 13.16 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02359/0.6338, allocations: 5.542 MB / 444.6 MB, free: 7.598 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02571/0.6596, allocations: 6.504 MB / 451.1 MB, free: 1.086 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.008557/0.6682, allocations: 3.139 MB / 454.2 MB, free: 13.94 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002621/0.6709, allocations: 1.04 MB / 455.3 MB, free: 12.89 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005968/0.6769, allocations: 1.835 MB / 457.1 MB, free: 11.05 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.04663/0.7236, allocations: 18.13 MB / 475.2 MB, free: 8.914 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.3644/1.088, allocations: 8.944 MB / 484.2 MB, free: 32.48 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004953/1.093, allocations: 0.5686 MB / 484.8 MB, free: 32.48 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002186/1.095, allocations: 0.742 MB / 485.5 MB, free: 32.48 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002264/1.098, allocations: 282.4 kB / 485.8 MB, free: 32.48 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01871/1.116, allocations: 6.162 MB / 491.9 MB, free: 32.09 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/1.116, allocations: 0 / 491.9 MB, free: 32.09 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.567e-06/1.116, allocations: 1.438 kB / 491.9 MB, free: 32.09 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001674/1.117, allocations: 1.062 kB / 491.9 MB, free: 32.09 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: 532 * Number of variables: 532 Notification: Performance of Generate backend data structure: time 0.01725/1.134, allocations: 3.355 MB / 495.3 MB, free: 30.54 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.531e-05/1.134, allocations: 8.781 kB / 495.3 MB, free: 30.54 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009206/1.143, allocations: 0.7974 MB / 496.1 MB, free: 30.4 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005904/1.149, allocations: 1.581 MB / 497.7 MB, free: 30 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004616/1.15, allocations: 177.8 kB / 497.9 MB, free: 29.99 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00112/1.151, allocations: 202.1 kB / 498.1 MB, free: 29.99 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01305/1.164, allocations: 3.545 MB / 0.4898 GB, free: 29.56 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.31e-05/1.164, allocations: 9.938 kB / 0.4899 GB, free: 29.56 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003957/1.164, allocations: 86.25 kB / 0.4899 GB, free: 29.56 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004126/1.165, allocations: 200.6 kB / 0.4901 GB, free: 29.56 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01374/1.179, allocations: 3.311 MB / 0.4934 GB, free: 29.54 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.02963/1.208, allocations: 15.35 MB / 0.5084 GB, free: 20.04 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009741/1.218, allocations: 2.774 MB / 0.5111 GB, free: 19.41 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06189/1.28, allocations: 18.92 MB / 0.5295 GB, free: 23.03 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006959/1.287, allocations: 1.675 MB / 0.5312 GB, free: 22.9 MB / 426.7 MB Notification: Performance of pre-optimization done (n=169): time 6.723e-06/1.287, allocations: 2.625 kB / 0.5312 GB, free: 22.9 MB / 426.7 MB Notification: Performance of matching and sorting (n=185): time 0.04116/1.328, allocations: 9.055 MB / 0.54 GB, free: 17.01 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001521/1.328, allocations: 179.5 kB / 0.5402 GB, free: 16.8 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002739/1.331, allocations: 1.317 MB / 0.5415 GB, free: 15.8 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006596/1.332, allocations: 68.62 kB / 0.5415 GB, free: 15.75 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009535/1.333, allocations: 0.9468 MB / 0.5425 GB, free: 15.12 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001083/1.334, allocations: 0.6187 MB / 0.5431 GB, free: 14.59 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002322/1.334, allocations: 43.31 kB / 0.5431 GB, free: 14.58 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002624/1.335, allocations: 400.4 kB / 0.5435 GB, free: 14.21 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004087/1.339, allocations: 1.112 MB / 0.5446 GB, free: 13.46 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004901/1.344, allocations: 1.644 MB / 0.5462 GB, free: 12.02 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004776/1.348, allocations: 1.379 MB / 0.5475 GB, free: 11.12 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.212e-05/1.348, allocations: 9.125 kB / 0.5475 GB, free: 11.12 MB / 426.7 MB Notification: Performance of matching and sorting (n=275) (initialization): time 0.01167/1.36, allocations: 3.204 MB / 0.5507 GB, free: 8.883 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002591/1.363, allocations: 5.814 MB / 0.5563 GB, free: 2.723 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.328e-05/1.363, allocations: 16 kB / 0.5564 GB, free: 2.707 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001449/1.364, allocations: 246.2 kB / 0.5566 GB, free: 2.508 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004796/1.369, allocations: 0.5429 MB / 0.5571 GB, free: 2.016 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002596/1.372, allocations: 2.434 MB / 0.5595 GB, free: 15.64 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005063/1.377, allocations: 306 kB / 0.5598 GB, free: 15.38 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007721/1.378, allocations: 110.2 kB / 0.5599 GB, free: 15.29 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.961e-05/1.378, allocations: 4 kB / 0.5599 GB, free: 15.29 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01113/1.389, allocations: 3.074 MB / 0.5629 GB, free: 13.2 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.345e-05/1.389, allocations: 12 kB / 0.5629 GB, free: 13.19 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001316/1.39, allocations: 247.2 kB / 0.5632 GB, free: 12.99 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004617/1.395, allocations: 0.5316 MB / 0.5637 GB, free: 12.51 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002458/1.398, allocations: 2.435 MB / 0.5661 GB, free: 10.13 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004008/1.402, allocations: 306 kB / 0.5663 GB, free: 9.863 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005202/1.402, allocations: 104.9 kB / 0.5664 GB, free: 9.781 MB / 442.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: 28 (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,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,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.002207/1.404, allocations: 0.6905 MB / 0.5671 GB, free: 9.305 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007088/1.405, allocations: 205.6 kB / 0.5673 GB, free: 9.102 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01916/1.424, allocations: 7.493 MB / 0.5746 GB, free: 3.98 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001232/1.425, allocations: 84.44 kB / 0.5747 GB, free: 3.918 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.406e-05/1.425, allocations: 7.922 kB / 0.5747 GB, free: 3.914 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01527/1.44, allocations: 6.509 MB / 0.5811 GB, free: 15.38 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03063/1.47, allocations: 12 MB / 0.5928 GB, free: 6.973 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.394e-05/1.471, allocations: 8.641 kB / 0.5928 GB, free: 6.965 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003515/1.474, allocations: 433.3 kB / 0.5932 GB, free: 6.574 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002035/1.476, allocations: 344 kB / 0.5936 GB, free: 6.293 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005104/1.477, allocations: 72.03 kB / 0.5936 GB, free: 6.254 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00238/1.479, allocations: 2.527 MB / 0.5961 GB, free: 3.828 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-05/1.479, allocations: 11.98 kB / 0.5961 GB, free: 3.816 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01875/1.498, allocations: 7.645 MB / 0.6036 GB, free: 14.22 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00259/1.501, allocations: 0.7269 MB / 0.6043 GB, free: 13.6 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009351/1.502, allocations: 56.17 kB / 0.6043 GB, free: 13.58 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003539/1.505, allocations: 221.8 kB / 0.6045 GB, free: 13.39 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00075/1.506, allocations: 173.9 kB / 0.6047 GB, free: 13.25 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002867/1.506, allocations: 81.77 kB / 0.6048 GB, free: 13.18 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002593/1.509, allocations: 1.109 MB / 0.6059 GB, free: 12.33 MB / 474.7 MB Notification: Performance of sort global known variables: time 9.22e-07/1.509, allocations: 3.938 kB / 0.6059 GB, free: 12.33 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01434/1.523, allocations: 2.5 MB / 0.6083 GB, free: 9.996 MB / 474.7 MB 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: 54 ($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,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,junctionIdeal.medium.phase) * 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 (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.01557/1.539, allocations: 2.048 MB / 0.6103 GB, free: 8.211 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01612/1.555, allocations: 5.298 MB / 0.6155 GB, free: 4.488 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.44e-05/1.555, allocations: 0 / 0.6155 GB, free: 4.488 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006863/1.562, allocations: 2.693 MB / 0.6181 GB, free: 2.809 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009143/1.571, allocations: 0.9828 MB / 0.6191 GB, free: 1.996 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02142/1.593, allocations: 9.081 MB / 0.6279 GB, free: 10.08 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003009/1.596, allocations: 2.238 MB / 0.6301 GB, free: 7.898 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001693/1.597, allocations: 211.7 kB / 0.6303 GB, free: 7.703 MB / 490.7 MB Notification: Performance of SimCode: time 1.963e-06/1.598, allocations: 4 kB / 0.6303 GB, free: 7.699 MB / 490.7 MB Notification: Performance of Templates: time 0.5237/2.121, allocations: 113.2 MB / 0.7409 GB, free: 145.8 MB / 0.4948 GB