Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe.mediums.1..h|pipe.mediums.1..p|pipe.mediums.2..h|pipe.mediums.2..p|pipe.mediums.3..h|pipe.mediums.3..p|pipe.mediums.4..h|pipe.mediums.4..p|pipe.mediums.5..h|pipe.mediums.5..p|m_flow_initial",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization") Notification: Performance of loadModel(ModelicaTest): time 2.18/2.18, allocations: 235 MB / 247.2 MB, free: 14.35 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.972e-05/2.983e-05, allocations: 0 / 304.9 MB, free: 5.176 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3226/0.3226, allocations: 54.85 MB / 359.8 MB, free: 3.141 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.996/6.319, allocations: 2.664 GB / 3.015 GB, free: 9.984 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002123/6.319, allocations: 75.97 kB / 3.015 GB, free: 9.91 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.311/8.631, allocations: 0.489 GB / 3.504 GB, free: 52.58 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.193e-06/8.631, allocations: 0 / 3.504 GB, free: 52.58 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001315/8.631, allocations: 49.97 kB / 3.504 GB, free: 52.58 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 509 * Number of variables: 509 Notification: Performance of Generate backend data structure: time 0.0116/8.642, allocations: 2.977 MB / 3.507 GB, free: 51.12 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.048e-05/8.642, allocations: 7.656 kB / 3.507 GB, free: 51.12 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007065/8.649, allocations: 0.7049 MB / 3.508 GB, free: 50.95 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004936/8.654, allocations: 1.584 MB / 3.509 GB, free: 50.23 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002093/8.655, allocations: 164.6 kB / 3.509 GB, free: 50.16 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005079/8.655, allocations: 184.5 kB / 3.51 GB, free: 50.11 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008729/8.664, allocations: 3.501 MB / 3.513 GB, free: 48.64 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.435e-05/8.664, allocations: 7.484 kB / 3.513 GB, free: 48.64 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003247/8.664, allocations: 75.56 kB / 3.513 GB, free: 48.59 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001859/8.665, allocations: 176 kB / 3.513 GB, free: 48.56 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009158/8.674, allocations: 3.288 MB / 3.517 GB, free: 47.52 MB / 490.7 MB Warning: The model contains alias variables with conflicting start and/or 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.02239/8.696, allocations: 14.14 MB / 3.53 GB, free: 37.46 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006167/8.702, allocations: 2.127 MB / 3.532 GB, free: 36.68 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002058/8.705, allocations: 1.084 MB / 3.533 GB, free: 36.24 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4367/9.141, allocations: 63.65 MB / 3.596 GB, free: 67.29 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005664/9.147, allocations: 1.679 MB / 3.597 GB, free: 67.17 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=154): time 6.2e-06/9.147, allocations: 2.344 kB / 3.597 GB, free: 67.17 MB / 0.4948 GB Notification: Performance of matching and sorting (n=174): time 0.02565/9.173, allocations: 8.138 MB / 3.605 GB, free: 65.8 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.714e-05/9.173, allocations: 284.6 kB / 3.605 GB, free: 65.49 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002474/9.175, allocations: 1.173 MB / 3.607 GB, free: 65.32 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.000447/9.176, allocations: 60.19 kB / 3.607 GB, free: 65.29 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007993/9.177, allocations: 0.8281 MB / 3.607 GB, free: 64.98 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007399/9.177, allocations: 0.5997 MB / 3.608 GB, free: 64.68 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002111/9.178, allocations: 43.09 kB / 3.608 GB, free: 64.68 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001644/9.178, allocations: 392.2 kB / 3.608 GB, free: 64.38 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002582/9.18, allocations: 1.144 MB / 3.61 GB, free: 64.37 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003274/9.184, allocations: 1.68 MB / 3.611 GB, free: 63.75 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003191/9.187, allocations: 1.376 MB / 3.613 GB, free: 63.73 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.301e-05/9.187, allocations: 5.375 kB / 3.613 GB, free: 63.73 MB / 0.4948 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.0093/9.196, allocations: 3.932 MB / 3.616 GB, free: 63.56 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.001244/9.197, allocations: 6.28 MB / 3.623 GB, free: 57.03 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.427e-05/9.198, allocations: 15.59 kB / 3.623 GB, free: 57.03 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02103/9.219, allocations: 3.431 MB / 3.626 GB, free: 56.99 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0018/9.22, allocations: 336 kB / 3.626 GB, free: 56.99 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007316/9.228, allocations: 3.816 MB / 3.63 GB, free: 56.41 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003351/9.231, allocations: 275 kB / 3.63 GB, free: 56.4 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003477/9.232, allocations: 105.3 kB / 3.63 GB, free: 56.4 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.327e-05/9.232, allocations: 1.25 kB / 3.63 GB, free: 56.4 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008196/9.24, allocations: 3.538 MB / 3.634 GB, free: 56.34 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.523e-05/9.24, allocations: 20.38 kB / 3.634 GB, free: 56.34 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01043/9.25, allocations: 2.249 MB / 3.636 GB, free: 56.32 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002015/9.252, allocations: 374.6 kB / 3.636 GB, free: 56.31 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00527/9.258, allocations: 3.102 MB / 3.639 GB, free: 55.75 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003018/9.261, allocations: 262.6 kB / 3.64 GB, free: 55.74 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003274/9.261, allocations: 110.7 kB / 3.64 GB, free: 55.74 MB / 0.4948 GB Warning: Assuming fixed start value for the following 1 variables: m_flow_initial:DISCRETE(unit = "kg/s" fixed = false ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 72 * Number of states: 0 () * Number of discrete variables: 17 (source.medium.phase,$PRE.m_flow_initial,m_flow_initial,$whenCondition2,$whenCondition1,valve.state_b.phase,valve.state_a.phase,pipe.state_a.phase,pipe.statesFM[2].phase,pipe.statesFM[3].phase,pipe.statesFM[4].phase,pipe.statesFM[5].phase,pipe.statesFM[6].phase,sink.state.phase,sink.medium.phase,pipe.state_b.phase,source.state.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (166): * Single equations (assignments): 165 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {14 91} Notification: Performance of prepare postOptimizeDAE: time 0.0007022/9.262, allocations: 230.1 kB / 3.64 GB, free: 55.63 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004218/9.262, allocations: 168.4 kB / 3.64 GB, free: 55.55 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01098/9.273, allocations: 6.751 MB / 3.647 GB, free: 55.02 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.33e-05/9.273, allocations: 74.38 kB / 3.647 GB, free: 55.02 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.247e-05/9.273, allocations: 0 / 3.647 GB, free: 55.02 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008206/9.282, allocations: 5.447 MB / 3.652 GB, free: 54.28 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01559/9.297, allocations: 9.463 MB / 3.661 GB, free: 53.68 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.761e-05/9.297, allocations: 0 / 3.661 GB, free: 53.68 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002655/9.3, allocations: 444.6 kB / 3.662 GB, free: 53.68 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001952/9.302, allocations: 444 kB / 3.662 GB, free: 53.63 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002818/9.302, allocations: 68.84 kB / 3.662 GB, free: 53.63 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001831/9.304, allocations: 3.208 MB / 3.665 GB, free: 51.04 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.735e-06/9.304, allocations: 0 / 3.665 GB, free: 51.04 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01113/9.315, allocations: 6.741 MB / 3.672 GB, free: 48.15 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001917/9.317, allocations: 0.7739 MB / 3.673 GB, free: 47.69 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005198/9.318, allocations: 55.25 kB / 3.673 GB, free: 47.66 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002221/9.32, allocations: 206.9 kB / 3.673 GB, free: 47.62 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004247/9.32, allocations: 185.7 kB / 3.673 GB, free: 47.59 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002252/9.321, allocations: 71.11 kB / 3.673 GB, free: 47.58 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002167/9.323, allocations: 1.22 MB / 3.674 GB, free: 47.1 MB / 0.4948 GB Notification: Performance of sort global known variables: time 8.29e-07/9.323, allocations: 1.594 kB / 3.674 GB, free: 47.1 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.008583/9.331, allocations: 2.357 MB / 3.677 GB, free: 46.86 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 10 (pipe.mediums[1].p,pipe.mediums[1].h,pipe.mediums[2].p,pipe.mediums[2].h,pipe.mediums[3].p,pipe.mediums[3].h,pipe.mediums[4].p,pipe.mediums[4].h,pipe.mediums[5].p,pipe.mediums[5].h) * Number of discrete variables: 39 ($cse4.region3boundary,$cse5.region3boundary,$cse6.phase,$cse6.region,$cse7.region3boundary,$cse8.region3boundary,$cse9.phase,$cse9.region,$cse10.region3boundary,$cse11.region3boundary,$cse12.phase,$cse12.region,$cse13.region3boundary,$cse14.region3boundary,$cse15.phase,$cse15.region,$cse16.region3boundary,$cse17.region3boundary,$cse18.phase,$cse18.region,$cse25.phase,$cse25.region,$cse31.phase,$cse31.region,$cse35.phase,$cse35.region,$cse36.phase,$cse36.region,$whenCondition2,$whenCondition1,pipe.statesFM[2].phase,pipe.statesFM[3].phase,pipe.statesFM[4].phase,pipe.statesFM[5].phase,pipe.statesFM[6].phase,m_flow_initial,$cse3.phase,$cse3.region,source.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (202): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 20 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.009779/9.341, allocations: 2.029 MB / 3.679 GB, free: 46.6 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01138/9.353, allocations: 5.057 MB / 3.684 GB, free: 44.92 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 9.529e-06/9.353, allocations: 0 / 3.684 GB, free: 44.92 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.004583/9.357, allocations: 2.263 MB / 3.686 GB, free: 44.03 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005085/9.362, allocations: 0.7866 MB / 3.687 GB, free: 43.88 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01116/9.374, allocations: 5.669 MB / 3.692 GB, free: 41.84 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001805/9.375, allocations: 2.053 MB / 3.694 GB, free: 40.98 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.004713/9.38, allocations: 1.613 MB / 3.696 GB, free: 40.95 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007507/9.381, allocations: 142.2 kB / 3.696 GB, free: 40.93 MB / 0.4948 GB Notification: Performance of SimCode: time 1.805e-06/9.381, allocations: 0 / 3.696 GB, free: 40.93 MB / 0.4948 GB Notification: Performance of Templates: time 0.1548/9.536, allocations: 84.83 MB / 3.779 GB, free: 11.11 MB / 0.5105 GB