Running command: translateModel(Modelica.Fluid.Examples.NonCircularPipes,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|annulus_pipe.mediums.1..h|annulus_pipe.mediums.2..h|annulus_pipe.mediums.2..p|circular_pipe.mediums.1..h|circular_pipe.mediums.2..h|circular_pipe.mediums.2..p",fileNamePrefix="Modelica_trunk_cpp_Modelica.Fluid.Examples.NonCircularPipes") Notification: Performance of loadModel(Modelica): time 2.138/2.138, allocations: 224.7 MB / 241.1 MB, free: 1.691 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.075e-05/3.074e-05, allocations: 5.094 kB / 294.6 MB, free: 11.43 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1214/0.1214, allocations: 50.42 MB / 345 MB, free: 8.969 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.NonCircularPipes): time 0.1038/0.2252, allocations: 51.88 MB / 396.8 MB, free: 4.949 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.3853/0.6106, allocations: 21.1 MB / 417.9 MB, free: 5.824 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002472/0.6132, allocations: 60.19 kB / 418 MB, free: 5.824 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003193/0.6164, allocations: 0.6745 MB / 418.7 MB, free: 5.812 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01424/0.6307, allocations: 2.799 MB / 421.5 MB, free: 5.754 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02427/0.655, allocations: 5.747 MB / 427.2 MB, free: 5.469 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.005689/0.6607, allocations: 2.206 MB / 429.4 MB, free: 5.105 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001535/0.6623, allocations: 0.7284 MB / 430.2 MB, free: 4.816 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0282/0.6905, allocations: 12.31 MB / 442.5 MB, free: 1.66 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02968/0.7202, allocations: 12.15 MB / 454.6 MB, free: 6.586 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02569/0.746, allocations: 8.228 MB / 462.8 MB, free: 164 kB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004015/0.7501, allocations: 0.5157 MB / 463.4 MB, free: 15.64 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001472/0.7516, allocations: 0.5532 MB / 463.9 MB, free: 15.27 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001174/0.7528, allocations: 208 kB / 464.1 MB, free: 15.07 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01454/0.7673, allocations: 5.06 MB / 469.2 MB, free: 10.48 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.441e-06/0.7674, allocations: 0 / 469.2 MB, free: 10.48 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.445e-06/0.7674, allocations: 0 / 469.2 MB, free: 10.48 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.368e-05/0.7675, allocations: 0 / 469.2 MB, free: 10.48 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 391 * Number of variables: 391 Notification: Performance of Generate backend data structure: time 0.009429/0.777, allocations: 2.502 MB / 471.7 MB, free: 7.941 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.897e-05/0.777, allocations: 8.031 kB / 471.7 MB, free: 7.934 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006484/0.7835, allocations: 0.6043 MB / 472.3 MB, free: 7.332 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003426/0.787, allocations: 1.109 MB / 473.4 MB, free: 6.242 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002417/0.7873, allocations: 148.9 kB / 473.5 MB, free: 6.102 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004025/0.7877, allocations: 146.4 kB / 473.7 MB, free: 5.965 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009917/0.7976, allocations: 2.796 MB / 476.5 MB, free: 3.059 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.161e-05/0.7977, allocations: 7 kB / 476.5 MB, free: 3.055 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000293/0.798, allocations: 67.66 kB / 476.6 MB, free: 2.996 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003298/0.7984, allocations: 153.5 kB / 476.7 MB, free: 2.848 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01071/0.8091, allocations: 2.667 MB / 479.4 MB, free: 208 kB / 362.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.02344/0.8326, allocations: 11.68 MB / 491.1 MB, free: 3.793 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008178/0.8408, allocations: 1.77 MB / 492.8 MB, free: 2.023 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03035/0.8712, allocations: 8.422 MB / 0.4895 GB, free: 8.617 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.159e-05/0.8713, allocations: 51.55 kB / 0.4895 GB, free: 8.559 MB / 394.7 MB Notification: Performance of pre-optimization done (n=114): time 3.717e-06/0.8714, allocations: 4 kB / 0.4895 GB, free: 8.555 MB / 394.7 MB Notification: Performance of matching and sorting (n=132): time 0.03789/0.9093, allocations: 7.473 MB / 0.4968 GB, free: 1.074 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001091/0.9094, allocations: 145.8 kB / 0.497 GB, free: 0.9023 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00236/0.9118, allocations: 1.061 MB / 0.498 GB, free: 15.83 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003527/0.9122, allocations: 45.7 kB / 0.4981 GB, free: 15.78 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007102/0.9129, allocations: 0.6988 MB / 0.4987 GB, free: 15.08 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000674/0.9136, allocations: 459 kB / 0.4992 GB, free: 14.64 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001623/0.9138, allocations: 32 kB / 0.4992 GB, free: 14.61 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002049/0.914, allocations: 373.4 kB / 0.4996 GB, free: 14.23 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003218/0.9172, allocations: 0.8861 MB / 0.5004 GB, free: 13.35 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00465/0.9219, allocations: 1.273 MB / 0.5017 GB, free: 11.94 MB / 410.7 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: annulus_pipe.mediums[1].p = 1000000.0 (boundary.p = 1000000.0) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: circular_pipe.mediums[1].p = 1000000.0 (boundary.p = 1000000.0) Notification: Performance of analyzeInitialSystem (initialization): time 0.0492/0.9712, allocations: 6.579 MB / 0.5081 GB, free: 5.332 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.215e-05/0.9712, allocations: 4 kB / 0.5081 GB, free: 5.328 MB / 410.7 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.009505/0.9807, allocations: 2.605 MB / 0.5107 GB, free: 2.777 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001811/0.9826, allocations: 4.181 MB / 0.5147 GB, free: 14.27 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.752e-05/0.9827, allocations: 12 kB / 0.5147 GB, free: 14.26 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002865/0.9856, allocations: 0.5104 MB / 0.5152 GB, free: 13.74 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003052/0.9887, allocations: 379.4 kB / 0.5156 GB, free: 13.39 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003678/0.9924, allocations: 2.913 MB / 0.5185 GB, free: 10.39 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003041/0.9955, allocations: 195.7 kB / 0.5186 GB, free: 10.2 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003081/0.9958, allocations: 79.97 kB / 0.5187 GB, free: 10.12 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.626e-05/0.9959, allocations: 4 kB / 0.5187 GB, free: 10.11 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009142/1.005, allocations: 2.483 MB / 0.5211 GB, free: 7.621 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.356e-05/1.005, allocations: 12 kB / 0.5212 GB, free: 7.609 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002418/1.008, allocations: 479 kB / 0.5216 GB, free: 7.129 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002967/1.011, allocations: 375.4 kB / 0.522 GB, free: 6.762 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003592/1.014, allocations: 2.915 MB / 0.5248 GB, free: 3.746 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002465/1.017, allocations: 199.7 kB / 0.525 GB, free: 3.551 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002428/1.017, allocations: 75.92 kB / 0.5251 GB, free: 3.477 MB / 426.7 MB Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization sytem: annulus_pipe.mediums[1].p = 1000000.0 circular_pipe.mediums[1].p = 1000000.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 11 (boundary.medium.phase,massflowsink1.medium.phase,massflowsink2.medium.phase,circular_pipe.statesFM[1].phase,circular_pipe.statesFM[2].phase,annulus_pipe.statesFM[1].phase,annulus_pipe.statesFM[2].phase,annulus_pipe.state_b.phase,annulus_pipe.state_a.phase,circular_pipe.state_b.phase,circular_pipe.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (177): * Single equations (assignments): 173 * Array equations: 0 * Algorithm blocks: 0 * 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 {2 8,1 1,2 8,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.00153/1.018, allocations: 0.5167 MB / 0.5256 GB, free: 2.949 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004897/1.019, allocations: 146.2 kB / 0.5257 GB, free: 2.805 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01413/1.033, allocations: 5.567 MB / 0.5312 GB, free: 13.19 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.851e-05/1.033, allocations: 59.91 kB / 0.5312 GB, free: 13.13 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.18e-05/1.033, allocations: 0 / 0.5312 GB, free: 13.13 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01221/1.046, allocations: 5.083 MB / 0.5362 GB, free: 7.926 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02315/1.069, allocations: 8.622 MB / 0.5446 GB, free: 15.16 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.387e-05/1.069, allocations: 4.438 kB / 0.5446 GB, free: 15.15 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002368/1.071, allocations: 291.6 kB / 0.5449 GB, free: 14.87 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003212/1.074, allocations: 0.5455 MB / 0.5454 GB, free: 14.31 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003159/1.075, allocations: 43.98 kB / 0.5455 GB, free: 14.27 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003552/1.078, allocations: 2.91 MB / 0.5483 GB, free: 11.25 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.983e-06/1.078, allocations: 3.938 kB / 0.5483 GB, free: 11.25 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01492/1.093, allocations: 5.53 MB / 0.5537 GB, free: 5.574 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0017/1.095, allocations: 0.521 MB / 0.5542 GB, free: 5.031 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006112/1.096, allocations: 35.98 kB / 0.5542 GB, free: 4.996 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002516/1.098, allocations: 163.6 kB / 0.5544 GB, free: 4.836 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004764/1.099, allocations: 129.1 kB / 0.5545 GB, free: 4.711 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001901/1.099, allocations: 47.98 kB / 0.5546 GB, free: 4.664 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002041/1.101, allocations: 0.901 MB / 0.5554 GB, free: 3.762 MB / 458.7 MB Notification: Performance of sort global known variables: time 5.01e-07/1.101, allocations: 0 / 0.5554 GB, free: 3.762 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.007722/1.109, allocations: 1.948 MB / 0.5574 GB, free: 1.812 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 6 (circular_pipe.mediums[1].h,circular_pipe.mediums[2].p,circular_pipe.mediums[2].h,annulus_pipe.mediums[1].h,annulus_pipe.mediums[2].p,annulus_pipe.mediums[2].h) * Number of discrete variables: 35 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse9.region3boundary,$cse10.region3boundary,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse14.phase,$cse14.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse21.phase,$cse21.region,boundary.medium.phase,massflowsink1.medium.phase,massflowsink2.medium.phase,circular_pipe.statesFM[1].phase,circular_pipe.statesFM[2].phase,annulus_pipe.statesFM[1].phase,annulus_pipe.statesFM[2].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (130): * Single equations (assignments): 110 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 16 * 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 {2 8,1 1,2 8,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.009154/1.118, allocations: 1.665 MB / 0.559 GB, free: 276 kB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.326/1.444, allocations: 3.898 MB / 0.5628 GB, free: 169.8 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.339e-05/1.444, allocations: 2.125 kB / 0.5628 GB, free: 169.8 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006001/1.45, allocations: 1.836 MB / 0.5646 GB, free: 169 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006988/1.457, allocations: 0.7269 MB / 0.5653 GB, free: 168.9 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0147/1.472, allocations: 6.377 MB / 0.5715 GB, free: 165.7 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001809/1.474, allocations: 1.784 MB / 0.5733 GB, free: 164.9 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009631/1.475, allocations: 148 kB / 0.5734 GB, free: 164.9 MB / 458.7 MB Notification: Performance of SimCode: time 1.814e-06/1.475, allocations: 0 / 0.5734 GB, free: 164.9 MB / 458.7 MB Notification: Performance of Templates: time 0.1331/1.608, allocations: 84.75 MB / 0.6562 GB, free: 86.82 MB / 458.7 MB