Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.T|junctionIdeal.medium.p|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.BranchingPipes15") Notification: Performance of loadModel(ModelicaTest): time 2.007/2.007, allocations: 209.2 MB / 224.4 MB, free: 0.6719 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.389e-05/3.389e-05, allocations: 4 kB / 276.1 MB, free: 15.89 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3654/0.3655, allocations: 48.7 MB / 324.8 MB, free: 2.883 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15): time 0.7088/1.074, allocations: 174.9 MB / 499.7 MB, free: 3.41 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.04242/1.117, allocations: 20.36 MB / 0.5079 GB, free: 3.09 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003857/1.121, allocations: 110.6 kB / 0.508 GB, free: 3.09 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00397/1.125, allocations: 0.906 MB / 0.5089 GB, free: 3.074 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01373/1.139, allocations: 3.13 MB / 0.512 GB, free: 2.984 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01856/1.157, allocations: 4.727 MB / 0.5166 GB, free: 2.453 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.00759/1.165, allocations: 2.871 MB / 0.5194 GB, free: 1.938 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002348/1.167, allocations: 1.05 MB / 0.5204 GB, free: 1.52 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005491/1.173, allocations: 1.715 MB / 0.5221 GB, free: 1.277 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004433/1.177, allocations: 1.488 MB / 0.5235 GB, free: 0.9336 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01078/1.188, allocations: 3.151 MB / 0.5266 GB, free: 304 kB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002345/1.191, allocations: 250.3 kB / 0.5268 GB, free: 304 kB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001806/1.192, allocations: 0.7256 MB / 0.5276 GB, free: 96 kB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001651/1.194, allocations: 241.8 kB / 0.5278 GB, free: 96 kB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01021/1.204, allocations: 3.764 MB / 0.5315 GB, free: 14.38 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/1.204, allocations: 0 / 0.5315 GB, free: 14.38 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.727e-06/1.204, allocations: 4 kB / 0.5315 GB, free: 14.37 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001358/1.205, allocations: 0 / 0.5315 GB, free: 14.37 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: 423 * Number of variables: 423 Notification: Performance of Generate backend data structure: time 0.01043/1.215, allocations: 2.656 MB / 0.5341 GB, free: 12.71 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.543e-05/1.215, allocations: 9.062 kB / 0.5341 GB, free: 12.71 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00427/1.219, allocations: 428.4 kB / 0.5345 GB, free: 12.52 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004546/1.224, allocations: 1.422 MB / 0.5359 GB, free: 11.84 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001733/1.224, allocations: 128.2 kB / 0.536 GB, free: 11.83 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006018/1.225, allocations: 168.4 kB / 0.5361 GB, free: 11.83 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007235/1.232, allocations: 2.502 MB / 0.5386 GB, free: 11.03 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.171e-05/1.232, allocations: 5.719 kB / 0.5386 GB, free: 11.03 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003333/1.232, allocations: 70.39 kB / 0.5387 GB, free: 11.03 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004143/1.233, allocations: 190.5 kB / 0.5388 GB, free: 10.98 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007041/1.24, allocations: 2.209 MB / 0.541 GB, free: 10.63 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.02566/1.266, allocations: 10.68 MB / 0.5514 GB, free: 2.441 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005426/1.271, allocations: 1.787 MB / 0.5532 GB, free: 1.078 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001567/1.273, allocations: 455 kB / 0.5536 GB, free: 0.6133 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003525/1.276, allocations: 1.137 MB / 0.5547 GB, free: 15.76 MB / 442.7 MB Notification: Performance of pre-optimization done (n=158): time 6.312e-06/1.276, allocations: 0 / 0.5547 GB, free: 15.76 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 Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=181): time 0.05205/1.328, allocations: 10.81 MB / 0.5653 GB, free: 7.156 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001371/1.329, allocations: 187.6 kB / 0.5655 GB, free: 6.941 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003398/1.332, allocations: 1.306 MB / 0.5667 GB, free: 5.945 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006986/1.333, allocations: 58.83 kB / 0.5668 GB, free: 5.906 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001106/1.334, allocations: 0.8427 MB / 0.5676 GB, free: 5.363 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001241/1.335, allocations: 0.613 MB / 0.5682 GB, free: 4.84 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002884/1.336, allocations: 39.56 kB / 0.5683 GB, free: 4.832 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002466/1.336, allocations: 401.6 kB / 0.5686 GB, free: 4.465 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003248/1.339, allocations: 1.008 MB / 0.5696 GB, free: 3.785 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003962/1.343, allocations: 1.497 MB / 0.5711 GB, free: 2.488 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003932/1.347, allocations: 1.295 MB / 0.5723 GB, free: 1.652 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.628e-05/1.347, allocations: 4 kB / 0.5723 GB, free: 1.648 MB / 442.7 MB Notification: Performance of matching and sorting (n=271) (initialization): time 0.009525/1.357, allocations: 2.999 MB / 0.5753 GB, free: 15.54 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002265/1.359, allocations: 5.109 MB / 0.5803 GB, free: 10.12 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.836e-05/1.359, allocations: 12 kB / 0.5803 GB, free: 10.11 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008276/1.36, allocations: 198.1 kB / 0.5805 GB, free: 9.938 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004963/1.365, allocations: 0.563 MB / 0.581 GB, free: 9.418 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002359/1.367, allocations: 2.332 MB / 0.5833 GB, free: 7.074 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004166/1.372, allocations: 222.5 kB / 0.5835 GB, free: 6.891 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008255/1.372, allocations: 186.5 kB / 0.5837 GB, free: 6.727 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.455e-05/1.372, allocations: 4 kB / 0.5837 GB, free: 6.723 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00876/1.381, allocations: 2.86 MB / 0.5865 GB, free: 4.766 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.386e-05/1.381, allocations: 12 kB / 0.5865 GB, free: 4.754 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006531/1.382, allocations: 195.6 kB / 0.5867 GB, free: 4.578 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004687/1.387, allocations: 0.5562 MB / 0.5872 GB, free: 4.07 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002141/1.389, allocations: 2.334 MB / 0.5895 GB, free: 1.727 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003253/1.392, allocations: 201.2 kB / 0.5897 GB, free: 1.562 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006158/1.393, allocations: 191.1 kB / 0.5899 GB, free: 1.395 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 58 * 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 (259): * Single equations (assignments): 253 * 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.001942/1.395, allocations: 0.6102 MB / 0.5905 GB, free: 0.9727 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007011/1.396, allocations: 209.5 kB / 0.5907 GB, free: 0.7656 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01271/1.408, allocations: 3.486 MB / 0.5941 GB, free: 14.23 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.872e-05/1.408, allocations: 19.95 kB / 0.5941 GB, free: 14.21 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.163e-05/1.408, allocations: 4 kB / 0.5941 GB, free: 14.21 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007292/1.416, allocations: 2.714 MB / 0.5967 GB, free: 12.11 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01978/1.436, allocations: 6.778 MB / 0.6034 GB, free: 6.777 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.8e-05/1.436, allocations: 4 kB / 0.6034 GB, free: 6.773 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003868/1.439, allocations: 446.6 kB / 0.6038 GB, free: 6.371 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007539/1.44, allocations: 189.1 kB / 0.604 GB, free: 6.195 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004451/1.441, allocations: 101.9 kB / 0.6041 GB, free: 6.125 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002858/1.444, allocations: 3.086 MB / 0.6071 GB, free: 2.98 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.167e-06/1.444, allocations: 6.625 kB / 0.6071 GB, free: 2.977 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0115/1.455, allocations: 4.632 MB / 0.6116 GB, free: 15.28 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001903/1.457, allocations: 0.5062 MB / 0.6121 GB, free: 14.86 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008618/1.458, allocations: 60.25 kB / 0.6122 GB, free: 14.82 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002764/1.461, allocations: 122 kB / 0.6123 GB, free: 14.73 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005227/1.461, allocations: 169.5 kB / 0.6124 GB, free: 14.59 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004575/1.462, allocations: 167.9 kB / 0.6126 GB, free: 14.44 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002471/1.464, allocations: 0.9898 MB / 0.6136 GB, free: 13.71 MB / 490.7 MB Notification: Performance of sort global known variables: time 9.42e-07/1.464, allocations: 4 kB / 0.6136 GB, free: 13.7 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.007881/1.472, allocations: 1.693 MB / 0.6152 GB, free: 12.14 MB / 490.7 MB 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: 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 (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.005366/1.478, allocations: 1.257 MB / 0.6165 GB, free: 11.03 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01327/1.491, allocations: 4.297 MB / 0.6207 GB, free: 7.93 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.514e-05/1.491, allocations: 0 / 0.6207 GB, free: 7.93 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004185/1.495, allocations: 1.506 MB / 0.6221 GB, free: 6.797 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008051/1.503, allocations: 0.9136 MB / 0.623 GB, free: 6.043 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01493/1.518, allocations: 5.714 MB / 0.6286 GB, free: 0.8047 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002149/1.521, allocations: 1.697 MB / 0.6303 GB, free: 15.15 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002763/1.523, allocations: 361.1 kB / 0.6306 GB, free: 14.82 MB / 0.4948 GB Notification: Performance of SimCode: time 1.994e-06/1.523, allocations: 0 / 0.6306 GB, free: 14.82 MB / 0.4948 GB Notification: Performance of Templates: time 0.4256/1.949, allocations: 76.87 MB / 0.7057 GB, free: 211.2 MB / 0.5105 GB