Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16,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.BranchingPipes16") Notification: Performance of loadModel(ModelicaTest): time 2.042/2.042, allocations: 209.2 MB / 224.4 MB, free: 0.5117 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.931e-05/3.939e-05, allocations: 4 kB / 276.2 MB, free: 15.86 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4747/0.4748, allocations: 48.7 MB / 324.9 MB, free: 2.355 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16): time 0.6272/1.102, allocations: 174.9 MB / 499.7 MB, free: 3.418 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.04157/1.144, allocations: 20.35 MB / 0.5079 GB, free: 3.102 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00367/1.147, allocations: 114.4 kB / 0.508 GB, free: 3.098 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003757/1.151, allocations: 0.8944 MB / 0.5089 GB, free: 3.09 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0134/1.165, allocations: 3.145 MB / 0.512 GB, free: 2.992 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01818/1.183, allocations: 4.731 MB / 0.5166 GB, free: 2.434 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.007328/1.19, allocations: 2.868 MB / 0.5194 GB, free: 1.926 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0025/1.193, allocations: 1.042 MB / 0.5204 GB, free: 1.512 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005523/1.198, allocations: 1.72 MB / 0.5221 GB, free: 1.262 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004442/1.203, allocations: 1.497 MB / 0.5235 GB, free: 0.9141 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01095/1.214, allocations: 3.148 MB / 0.5266 GB, free: 288 kB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002426/1.216, allocations: 247.4 kB / 0.5268 GB, free: 288 kB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001841/1.218, allocations: 0.7233 MB / 0.5276 GB, free: 80 kB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001665/1.22, allocations: 249.1 kB / 0.5278 GB, free: 76 kB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009958/1.23, allocations: 3.767 MB / 0.5315 GB, free: 14.35 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.548e-06/1.23, allocations: 0 / 0.5315 GB, free: 14.35 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.076e-06/1.23, allocations: 0 / 0.5315 GB, free: 14.35 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001257/1.23, allocations: 3.375 kB / 0.5315 GB, free: 14.35 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.01009/1.24, allocations: 2.647 MB / 0.5341 GB, free: 12.69 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.749e-05/1.24, allocations: 9.062 kB / 0.5341 GB, free: 12.69 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004352/1.245, allocations: 425.9 kB / 0.5345 GB, free: 12.51 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004982/1.25, allocations: 1.427 MB / 0.5359 GB, free: 11.82 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001785/1.25, allocations: 128.1 kB / 0.536 GB, free: 11.82 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006366/1.251, allocations: 160.6 kB / 0.5361 GB, free: 11.82 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007204/1.258, allocations: 2.506 MB / 0.5386 GB, free: 11.01 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.25e-05/1.258, allocations: 13.28 kB / 0.5386 GB, free: 11.01 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003393/1.258, allocations: 68.39 kB / 0.5387 GB, free: 11.01 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003996/1.259, allocations: 180.5 kB / 0.5388 GB, free: 10.97 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00711/1.266, allocations: 2.214 MB / 0.541 GB, free: 10.61 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.02577/1.292, allocations: 10.69 MB / 0.5514 GB, free: 2.383 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005308/1.297, allocations: 1.784 MB / 0.5532 GB, free: 1.023 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001523/1.299, allocations: 447.7 kB / 0.5536 GB, free: 0.5625 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003456/1.302, allocations: 1.14 MB / 0.5547 GB, free: 15.71 MB / 442.7 MB Notification: Performance of pre-optimization done (n=158): time 6.622e-06/1.302, allocations: 0 / 0.5547 GB, free: 15.71 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.04882/1.351, allocations: 10.81 MB / 0.5653 GB, free: 7.102 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000146/1.351, allocations: 179.5 kB / 0.5655 GB, free: 6.895 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00314/1.354, allocations: 1.309 MB / 0.5667 GB, free: 5.895 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006305/1.355, allocations: 58.95 kB / 0.5668 GB, free: 5.855 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001054/1.356, allocations: 0.8366 MB / 0.5676 GB, free: 5.316 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001251/1.357, allocations: 0.6172 MB / 0.5682 GB, free: 4.789 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002841/1.358, allocations: 43 kB / 0.5682 GB, free: 4.777 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002608/1.358, allocations: 400 kB / 0.5686 GB, free: 4.414 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003297/1.361, allocations: 1.003 MB / 0.5696 GB, free: 3.738 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004197/1.366, allocations: 1.504 MB / 0.5711 GB, free: 2.434 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00418/1.37, allocations: 1.292 MB / 0.5723 GB, free: 1.602 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.574e-05/1.37, allocations: 4 kB / 0.5723 GB, free: 1.598 MB / 442.7 MB Notification: Performance of matching and sorting (n=271) (initialization): time 0.01013/1.38, allocations: 2.995 MB / 0.5753 GB, free: 15.5 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002283/1.382, allocations: 5.112 MB / 0.5803 GB, free: 10.07 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.003e-05/1.382, allocations: 16 kB / 0.5803 GB, free: 10.06 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008392/1.383, allocations: 197.8 kB / 0.5805 GB, free: 9.883 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004986/1.388, allocations: 0.5608 MB / 0.581 GB, free: 9.367 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002311/1.391, allocations: 2.34 MB / 0.5833 GB, free: 7.02 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004163/1.395, allocations: 214.3 kB / 0.5835 GB, free: 6.844 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009066/1.396, allocations: 186.5 kB / 0.5837 GB, free: 6.68 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.822e-05/1.396, allocations: 4 kB / 0.5837 GB, free: 6.676 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009605/1.406, allocations: 2.861 MB / 0.5865 GB, free: 4.715 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.695e-05/1.406, allocations: 12 kB / 0.5865 GB, free: 4.703 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006789/1.406, allocations: 193 kB / 0.5867 GB, free: 4.531 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004813/1.411, allocations: 0.5571 MB / 0.5872 GB, free: 4.02 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00223/1.413, allocations: 2.336 MB / 0.5895 GB, free: 1.676 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003372/1.417, allocations: 203.1 kB / 0.5897 GB, free: 1.508 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000812/1.418, allocations: 189.8 kB / 0.5899 GB, free: 1.344 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.002215/1.42, allocations: 0.6121 MB / 0.5905 GB, free: 0.9141 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007449/1.421, allocations: 205.5 kB / 0.5907 GB, free: 0.7109 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01424/1.435, allocations: 3.495 MB / 0.5941 GB, free: 14.18 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.148e-05/1.435, allocations: 19.95 kB / 0.5941 GB, free: 14.16 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.258e-05/1.435, allocations: 4 kB / 0.5941 GB, free: 14.16 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008127/1.443, allocations: 2.719 MB / 0.5968 GB, free: 12.05 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02085/1.464, allocations: 6.765 MB / 0.6034 GB, free: 6.73 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.996e-05/1.464, allocations: 7.375 kB / 0.6034 GB, free: 6.727 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003937/1.468, allocations: 443.7 kB / 0.6038 GB, free: 6.324 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000797/1.469, allocations: 188.2 kB / 0.604 GB, free: 6.152 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005533/1.47, allocations: 100.8 kB / 0.6041 GB, free: 6.082 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00309/1.473, allocations: 3.09 MB / 0.6071 GB, free: 2.934 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-05/1.473, allocations: 6.812 kB / 0.6071 GB, free: 2.93 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0122/1.485, allocations: 4.63 MB / 0.6116 GB, free: 15.23 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001985/1.487, allocations: 0.5078 MB / 0.6121 GB, free: 14.8 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008364/1.488, allocations: 61.94 kB / 0.6122 GB, free: 14.77 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002659/1.491, allocations: 121.4 kB / 0.6123 GB, free: 14.68 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005288/1.491, allocations: 176.8 kB / 0.6125 GB, free: 14.53 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004673/1.492, allocations: 168.1 kB / 0.6126 GB, free: 14.38 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002368/1.494, allocations: 0.9858 MB / 0.6136 GB, free: 13.66 MB / 490.7 MB Notification: Performance of sort global known variables: time 8.22e-07/1.494, allocations: 0 / 0.6136 GB, free: 13.66 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.008134/1.502, allocations: 1.696 MB / 0.6152 GB, free: 12.09 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.005688/1.508, allocations: 1.259 MB / 0.6165 GB, free: 10.98 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0137/1.522, allocations: 4.293 MB / 0.6207 GB, free: 7.879 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.326e-05/1.522, allocations: 4.75 kB / 0.6207 GB, free: 7.875 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004323/1.526, allocations: 1.506 MB / 0.6221 GB, free: 6.738 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008145/1.534, allocations: 0.8981 MB / 0.623 GB, free: 5.996 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01542/1.55, allocations: 5.709 MB / 0.6286 GB, free: 0.7656 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002072/1.552, allocations: 1.697 MB / 0.6302 GB, free: 15.11 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00287/1.555, allocations: 364.5 kB / 0.6306 GB, free: 14.78 MB / 0.4948 GB Notification: Performance of SimCode: time 1.654e-06/1.555, allocations: 0 / 0.6306 GB, free: 14.78 MB / 0.4948 GB Notification: Performance of Templates: time 0.5149/2.07, allocations: 76.88 MB / 0.7057 GB, free: 210.8 MB / 0.5105 GB