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_3.2.1_cpp_Modelica.Fluid.Examples.NonCircularPipes") Notification: Performance of loadModel(Modelica): time 1.708/1.708, allocations: 171.1 MB / 186.3 MB, free: 1.422 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.937e-05/2.95e-05, allocations: 4 kB / 228.1 MB, free: 8.012 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08514/0.08519, allocations: 38.77 MB / 266.9 MB, free: 1.152 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.NonCircularPipes): time 0.3158/0.4011, allocations: 51.22 MB / 318.1 MB, free: 4.594 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.05231/0.4535, allocations: 20.87 MB / 339 MB, free: 8.152 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002242/0.4558, allocations: 62.28 kB / 339 MB, free: 8.121 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002905/0.4587, allocations: 0.6777 MB / 339.7 MB, free: 7.496 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01178/0.4705, allocations: 2.766 MB / 342.5 MB, free: 5.051 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0236/0.4942, allocations: 5.657 MB / 348.1 MB, free: 464 kB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.008482/0.5027, allocations: 2.162 MB / 350.3 MB, free: 14.86 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002859/0.5056, allocations: 0.7333 MB / 351 MB, free: 14.12 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.03466/0.5403, allocations: 12.16 MB / 363.2 MB, free: 1.953 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02944/0.5698, allocations: 12.02 MB / 375.2 MB, free: 5.93 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02489/0.5948, allocations: 8.097 MB / 383.3 MB, free: 13.82 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0039/0.5987, allocations: 0.4961 MB / 383.8 MB, free: 13.33 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001478/0.6002, allocations: 0.5493 MB / 384.3 MB, free: 12.78 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001034/0.6013, allocations: 208 kB / 384.6 MB, free: 12.57 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01452/0.6158, allocations: 5.001 MB / 389.6 MB, free: 7.562 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.6159, allocations: 0 / 389.6 MB, free: 7.562 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.236e-06/0.6159, allocations: 0 / 389.6 MB, free: 7.562 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.986e-05/0.616, allocations: 0 / 389.6 MB, free: 7.562 MB / 314.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.009911/0.6259, allocations: 2.451 MB / 392 MB, free: 5.055 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.932e-05/0.626, allocations: 11.97 kB / 392 MB, free: 5.043 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00642/0.6324, allocations: 0.5794 MB / 392.6 MB, free: 4.461 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003467/0.6359, allocations: 1.148 MB / 393.7 MB, free: 3.27 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002436/0.6362, allocations: 138.8 kB / 393.9 MB, free: 3.133 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004096/0.6366, allocations: 152 kB / 394 MB, free: 2.984 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01017/0.6468, allocations: 2.789 MB / 396.8 MB, free: 60 kB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.535e-05/0.6469, allocations: 7.938 kB / 396.8 MB, free: 52 kB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003285/0.6472, allocations: 71.97 kB / 396.9 MB, free: 15.98 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003188/0.6476, allocations: 138.6 kB / 397 MB, free: 15.84 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0112/0.6588, allocations: 2.664 MB / 399.7 MB, free: 13.17 MB / 330.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.02426/0.6831, allocations: 11.93 MB / 411.6 MB, free: 304 kB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007807/0.691, allocations: 1.767 MB / 413.4 MB, free: 14.52 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01502/0.706, allocations: 5.692 MB / 419.1 MB, free: 8.035 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.845e-05/0.7061, allocations: 47.56 kB / 419.1 MB, free: 7.977 MB / 346.7 MB Notification: Performance of pre-optimization done (n=108): time 3.727e-06/0.7062, allocations: 0 / 419.1 MB, free: 7.977 MB / 346.7 MB Notification: Performance of matching and sorting (n=124): time 0.03576/0.7419, allocations: 7.025 MB / 426.2 MB, free: 0.8672 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001001/0.7421, allocations: 145.5 kB / 426.3 MB, free: 0.6953 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002382/0.7445, allocations: 1.007 MB / 427.3 MB, free: 15.68 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003435/0.7449, allocations: 49.7 kB / 427.4 MB, free: 15.62 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008091/0.7457, allocations: 0.7617 MB / 428.1 MB, free: 14.85 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007443/0.7465, allocations: 429.9 kB / 428.5 MB, free: 14.42 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001929/0.7467, allocations: 36 kB / 428.6 MB, free: 14.39 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002182/0.7469, allocations: 378.7 kB / 428.9 MB, free: 14.01 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003314/0.7503, allocations: 0.8744 MB / 429.8 MB, free: 13.13 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003904/0.7542, allocations: 1.33 MB / 431.1 MB, free: 11.61 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.538/5.292, allocations: 382.1 MB / 0.7942 GB, free: 45.2 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.105e-05/5.292, allocations: 4 kB / 0.7942 GB, free: 45.2 MB / 362.7 MB Notification: Performance of matching and sorting (n=208) (initialization): time 0.009019/5.301, allocations: 2.645 MB / 0.7967 GB, free: 42.59 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001081/5.302, allocations: 5.307 MB / 0.8019 GB, free: 36.88 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.901e-05/5.302, allocations: 12 kB / 0.8019 GB, free: 36.87 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002655/5.305, allocations: 0.4998 MB / 0.8024 GB, free: 36.36 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002894/5.308, allocations: 399.4 kB / 0.8028 GB, free: 35.96 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002767/5.311, allocations: 2.877 MB / 0.8056 GB, free: 33 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00278/5.313, allocations: 201.9 kB / 0.8058 GB, free: 32.82 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002731/5.314, allocations: 87.97 kB / 0.8059 GB, free: 32.73 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.534e-05/5.314, allocations: 5.406 kB / 0.8059 GB, free: 32.73 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008226/5.322, allocations: 2.517 MB / 0.8084 GB, free: 30.2 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.766e-05/5.322, allocations: 12 kB / 0.8084 GB, free: 30.18 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002165/5.324, allocations: 479 kB / 0.8088 GB, free: 29.71 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002892/5.327, allocations: 395.4 kB / 0.8092 GB, free: 29.32 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002691/5.33, allocations: 2.869 MB / 0.812 GB, free: 26.36 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002278/5.332, allocations: 203.4 kB / 0.8122 GB, free: 26.17 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002209/5.333, allocations: 79.97 kB / 0.8123 GB, free: 26.09 MB / 362.7 MB Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization sytem: circular_pipe.mediums[1].p = 1000000.0 annulus_pipe.mediums[1].p = 1000000.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * 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 (188): * Single equations (assignments): 184 * 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.001317/5.334, allocations: 0.5179 MB / 0.8128 GB, free: 25.57 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004006/5.334, allocations: 145.1 kB / 0.8129 GB, free: 25.5 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01115/5.345, allocations: 5.438 MB / 0.8182 GB, free: 20.14 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.939e-05/5.346, allocations: 63.86 kB / 0.8183 GB, free: 20.07 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.656e-06/5.346, allocations: 0 / 0.8183 GB, free: 20.07 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009824/5.355, allocations: 4.979 MB / 0.8232 GB, free: 14.98 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01628/5.372, allocations: 7.958 MB / 0.8309 GB, free: 6.973 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-05/5.372, allocations: 0 / 0.8309 GB, free: 6.973 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002244/5.374, allocations: 291.7 kB / 0.8312 GB, free: 6.688 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003048/5.377, allocations: 0.5514 MB / 0.8317 GB, free: 6.125 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002657/5.377, allocations: 42.3 kB / 0.8318 GB, free: 6.086 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002739/5.38, allocations: 2.943 MB / 0.8347 GB, free: 3.039 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.949e-06/5.38, allocations: 3.984 kB / 0.8347 GB, free: 3.035 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2395/5.62, allocations: 5.282 MB / 0.8398 GB, free: 129.2 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001578/5.621, allocations: 0.5152 MB / 0.8403 GB, free: 129.1 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005764/5.622, allocations: 35.59 kB / 0.8404 GB, free: 129.1 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002387/5.624, allocations: 152.7 kB / 0.8405 GB, free: 129.1 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005956/5.625, allocations: 118.1 kB / 0.8406 GB, free: 129 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001947/5.625, allocations: 48.31 kB / 0.8407 GB, free: 129 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001901/5.627, allocations: 0.8118 MB / 0.8414 GB, free: 128.7 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.302e-06/5.627, allocations: 0 / 0.8414 GB, free: 128.7 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.007672/5.635, allocations: 1.921 MB / 0.8433 GB, free: 128.6 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (122): * Single equations (assignments): 102 * 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.009059/5.644, allocations: 1.643 MB / 0.8449 GB, free: 128.4 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01307/5.657, allocations: 3.882 MB / 0.8487 GB, free: 127.2 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 9.838e-06/5.657, allocations: 3.812 kB / 0.8487 GB, free: 127.2 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00458/5.662, allocations: 1.717 MB / 0.8504 GB, free: 126.5 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00551/5.667, allocations: 0.6257 MB / 0.851 GB, free: 126.4 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01325/5.681, allocations: 6.376 MB / 0.8572 GB, free: 123.2 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001718/5.682, allocations: 1.781 MB / 0.859 GB, free: 122.4 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008346/5.683, allocations: 143.5 kB / 0.8591 GB, free: 122.4 MB / 362.7 MB Notification: Performance of SimCode: time 1.613e-06/5.683, allocations: 0 / 0.8591 GB, free: 122.4 MB / 362.7 MB Notification: Performance of Templates: time 0.1342/5.818, allocations: 83.37 MB / 0.9405 GB, free: 40.8 MB / 362.7 MB