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.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization") Notification: Performance of loadModel(ModelicaTest): time 2.084/2.084, allocations: 209.3 MB / 224.4 MB, free: 0.6641 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.053e-05/3.059e-05, allocations: 7.984 kB / 276.2 MB, free: 15.88 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3627/0.3627, allocations: 48.69 MB / 324.8 MB, free: 2.879 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization): time 0.06759/0.4304, allocations: 38.86 MB / 363.7 MB, free: 6.902 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.04317/0.4736, allocations: 20.92 MB / 384.6 MB, free: 3.711 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001729/0.4754, allocations: 39.69 kB / 384.7 MB, free: 3.672 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002127/0.4775, allocations: 485.7 kB / 385.1 MB, free: 3.195 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0185/0.4961, allocations: 3.996 MB / 389.1 MB, free: 15.19 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01475/0.5109, allocations: 3.63 MB / 392.8 MB, free: 11.55 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.004968/0.5159, allocations: 2.092 MB / 394.9 MB, free: 9.457 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00146/0.5174, allocations: 0.6628 MB / 395.5 MB, free: 8.793 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1261/0.6435, allocations: 50.15 MB / 445.7 MB, free: 6.617 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.04945/0.693, allocations: 19.85 MB / 465.5 MB, free: 2.754 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02281/0.7158, allocations: 7.64 MB / 473.2 MB, free: 11.11 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003959/0.7198, allocations: 0.4961 MB / 473.7 MB, free: 10.61 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001366/0.7213, allocations: 0.6272 MB / 474.3 MB, free: 9.98 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001032/0.7223, allocations: 236 kB / 474.5 MB, free: 9.75 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01293/0.7353, allocations: 5.051 MB / 479.6 MB, free: 4.688 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.7353, allocations: 4 kB / 479.6 MB, free: 4.684 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.534e-06/0.7353, allocations: 0 / 479.6 MB, free: 4.684 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.112e-05/0.7354, allocations: 0 / 479.6 MB, free: 4.684 MB / 410.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.01366/0.7491, allocations: 2.923 MB / 482.5 MB, free: 1.703 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.607e-05/0.7492, allocations: 12.03 kB / 482.5 MB, free: 1.691 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007357/0.7566, allocations: 0.6688 MB / 483.2 MB, free: 1.02 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2742/1.031, allocations: 1.176 MB / 484.3 MB, free: 136.5 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003693/1.031, allocations: 161.2 kB / 484.5 MB, free: 136.5 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007922/1.032, allocations: 172 kB / 484.7 MB, free: 136.5 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01272/1.045, allocations: 3.557 MB / 488.2 MB, free: 135.2 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.753e-05/1.045, allocations: 10.06 kB / 488.2 MB, free: 135.2 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003427/1.045, allocations: 70.36 kB / 488.3 MB, free: 135.2 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003889/1.046, allocations: 224.5 kB / 488.5 MB, free: 135.1 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01436/1.06, allocations: 3.531 MB / 492.1 MB, free: 134.1 MB / 410.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.03022/1.09, allocations: 14.13 MB / 0.4943 GB, free: 123.8 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00938/1.1, allocations: 2.287 MB / 0.4966 GB, free: 122.6 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2051/1.305, allocations: 64.24 MB / 0.5593 GB, free: 55.23 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006699/1.312, allocations: 1.726 MB / 0.561 GB, free: 53.47 MB / 410.7 MB Notification: Performance of pre-optimization done (n=154): time 4.969e-06/1.312, allocations: 0 / 0.561 GB, free: 53.47 MB / 410.7 MB Notification: Performance of matching and sorting (n=174): time 0.03519/1.347, allocations: 9.471 MB / 0.5702 GB, free: 43.92 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001024/1.347, allocations: 278.3 kB / 0.5705 GB, free: 43.59 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002324/1.349, allocations: 1.19 MB / 0.5717 GB, free: 42.39 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004708/1.35, allocations: 61.69 kB / 0.5717 GB, free: 42.32 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006848/1.351, allocations: 0.8163 MB / 0.5725 GB, free: 41.5 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008538/1.352, allocations: 0.6029 MB / 0.5731 GB, free: 40.91 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002656/1.352, allocations: 44 kB / 0.5731 GB, free: 40.86 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001494/1.352, allocations: 399.1 kB / 0.5735 GB, free: 40.46 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003957/1.356, allocations: 1.288 MB / 0.5748 GB, free: 39.17 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004537/1.361, allocations: 1.865 MB / 0.5766 GB, free: 37.05 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004597/1.365, allocations: 1.514 MB / 0.5781 GB, free: 35.54 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-05/1.365, allocations: 11.98 kB / 0.5781 GB, free: 35.53 MB / 410.7 MB Notification: Performance of matching and sorting (n=275) (initialization): time 0.014/1.379, allocations: 4.292 MB / 0.5823 GB, free: 31.22 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001423/1.381, allocations: 6.707 MB / 0.5888 GB, free: 23.99 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.103e-05/1.381, allocations: 18 kB / 0.5888 GB, free: 23.98 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02712/1.408, allocations: 3.722 MB / 0.5925 GB, free: 20.25 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002363/1.41, allocations: 339.4 kB / 0.5928 GB, free: 19.91 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01117/1.422, allocations: 4.066 MB / 0.5968 GB, free: 15.82 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003911/1.426, allocations: 267.4 kB / 0.597 GB, free: 15.56 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004855/1.426, allocations: 108 kB / 0.5971 GB, free: 15.45 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.433e-05/1.426, allocations: 8 kB / 0.5971 GB, free: 15.45 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01289/1.439, allocations: 3.981 MB / 0.601 GB, free: 11.46 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.596e-05/1.439, allocations: 23.98 kB / 0.6011 GB, free: 11.44 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01511/1.454, allocations: 2.367 MB / 0.6034 GB, free: 9.062 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002624/1.457, allocations: 371.4 kB / 0.6037 GB, free: 8.699 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008253/1.465, allocations: 3.34 MB / 0.607 GB, free: 5.328 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003223/1.468, allocations: 275.3 kB / 0.6072 GB, free: 5.059 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003643/1.469, allocations: 108 kB / 0.6073 GB, free: 4.953 MB / 410.7 MB Warning: Assuming fixed start value for the following 1 variables: m_flow_initial:DISCRETE(unit = "kg/s" fixed = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 77 * Number of states: 0 () * Number of discrete variables: 17 (source.medium.phase,$PRE.m_flow_initial,m_flow_initial,$whenCondition2,$whenCondition1,pipe.state_a.phase,valve.state_b.phase,valve.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 (171): * Single equations (assignments): 170 * 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.002173/1.471, allocations: 0.629 MB / 0.608 GB, free: 4.316 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006362/1.472, allocations: 158.6 kB / 0.6081 GB, free: 4.16 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01708/1.489, allocations: 6.829 MB / 0.6148 GB, free: 13.3 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001173/1.489, allocations: 79.89 kB / 0.6149 GB, free: 13.22 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.592e-05/1.489, allocations: 8.078 kB / 0.6149 GB, free: 13.21 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0132/1.502, allocations: 5.491 MB / 0.6202 GB, free: 7.609 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2949/1.797, allocations: 9.517 MB / 0.6295 GB, free: 145.7 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.873e-05/1.797, allocations: 2.781 kB / 0.6295 GB, free: 145.7 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003897/1.801, allocations: 440.4 kB / 0.6299 GB, free: 145.7 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002606/1.804, allocations: 446.5 kB / 0.6304 GB, free: 145.7 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004832/1.804, allocations: 63.33 kB / 0.6304 GB, free: 145.7 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002338/1.807, allocations: 3.213 MB / 0.6336 GB, free: 143 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.773e-06/1.807, allocations: 7.719 kB / 0.6336 GB, free: 143 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01865/1.825, allocations: 7.099 MB / 0.6405 GB, free: 140.2 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002422/1.828, allocations: 0.7589 MB / 0.6413 GB, free: 139.9 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009187/1.829, allocations: 49.89 kB / 0.6413 GB, free: 139.9 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003471/1.832, allocations: 210 kB / 0.6415 GB, free: 139.8 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008707/1.833, allocations: 186.3 kB / 0.6417 GB, free: 139.8 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002972/1.834, allocations: 65.78 kB / 0.6417 GB, free: 139.8 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003182/1.837, allocations: 1.236 MB / 0.6429 GB, free: 139.3 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.042e-06/1.837, allocations: 0 / 0.6429 GB, free: 139.3 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00952/1.846, allocations: 2.156 MB / 0.6451 GB, free: 139.2 MB / 426.7 MB 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,$cse30.phase,$cse30.region,$cse31.phase,$cse31.region,$cse34.phase,$cse34.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.009138/1.856, allocations: 1.555 MB / 0.6466 GB, free: 138.9 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0178/1.873, allocations: 5.515 MB / 0.652 GB, free: 137.1 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.326e-05/1.873, allocations: 6.781 kB / 0.652 GB, free: 137.1 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006487/1.88, allocations: 2.383 MB / 0.6543 GB, free: 136.2 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007204/1.887, allocations: 0.7691 MB / 0.655 GB, free: 136 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01702/1.904, allocations: 8.234 MB / 0.6631 GB, free: 128.9 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001834/1.906, allocations: 2.043 MB / 0.6651 GB, free: 126.9 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001182/1.907, allocations: 167.4 kB / 0.6652 GB, free: 126.7 MB / 426.7 MB Notification: Performance of SimCode: time 1.282e-06/1.907, allocations: 4 kB / 0.6652 GB, free: 126.7 MB / 426.7 MB Notification: Performance of Templates: time 0.1378/2.045, allocations: 84.98 MB / 0.7482 GB, free: 41.6 MB / 426.7 MB