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.368/2.368, allocations: 234.9 MB / 249.4 MB, free: 10.01 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.529e-05/3.528e-05, allocations: 4 kB / 308 MB, free: 15.34 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3952/0.3953, allocations: 54.85 MB / 362.9 MB, free: 12.27 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization): time 0.07484/0.4702, allocations: 39.14 MB / 402 MB, free: 6.543 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.04594/0.5162, allocations: 21.04 MB / 423.1 MB, free: 1.457 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002094/0.5183, allocations: 39.69 kB / 423.1 MB, free: 1.418 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002558/0.521, allocations: 485.7 kB / 423.6 MB, free: 0.9414 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0168/0.5378, allocations: 4.042 MB / 427.6 MB, free: 12.89 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0155/0.5533, allocations: 3.651 MB / 431.3 MB, free: 9.227 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.006145/0.5595, allocations: 2.127 MB / 433.4 MB, free: 7.098 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002087/0.5617, allocations: 0.6832 MB / 434.1 MB, free: 6.414 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1406/0.7023, allocations: 50.29 MB / 484.4 MB, free: 4.105 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.05279/0.7552, allocations: 19.99 MB / 0.4925 GB, free: 108 kB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.3652/1.12, allocations: 7.741 MB / 0.5001 GB, free: 75.02 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00406/1.125, allocations: 0.5089 MB / 0.5006 GB, free: 75.02 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001208/1.126, allocations: 0.6296 MB / 0.5012 GB, free: 75.02 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009142/1.127, allocations: 237.1 kB / 0.5014 GB, free: 75.02 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01205/1.139, allocations: 5.088 MB / 0.5064 GB, free: 74.73 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/1.139, allocations: 3.5 kB / 0.5064 GB, free: 74.73 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.545e-06/1.139, allocations: 3.344 kB / 0.5064 GB, free: 74.73 MB / 426.7 MB Notification: Performance of Transformations before backend: time 8.91e-05/1.139, allocations: 0 / 0.5064 GB, free: 74.73 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: 509 * Number of variables: 509 Notification: Performance of Generate backend data structure: time 0.01392/1.153, allocations: 2.948 MB / 0.5093 GB, free: 73.52 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.842e-05/1.153, allocations: 10.42 kB / 0.5093 GB, free: 73.52 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007222/1.16, allocations: 0.6821 MB / 0.51 GB, free: 73.41 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003553/1.164, allocations: 1.186 MB / 0.5111 GB, free: 73.08 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002772/1.164, allocations: 167.1 kB / 0.5113 GB, free: 73.08 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007329/1.165, allocations: 171.1 kB / 0.5114 GB, free: 73.07 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01185/1.177, allocations: 3.55 MB / 0.5149 GB, free: 72.09 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.712e-05/1.177, allocations: 18.06 kB / 0.5149 GB, free: 72.08 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003727/1.177, allocations: 70.16 kB / 0.515 GB, free: 72.08 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00035/1.178, allocations: 228.7 kB / 0.5152 GB, free: 72.04 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01396/1.192, allocations: 3.523 MB / 0.5186 GB, free: 69.98 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.02819/1.22, allocations: 14.14 MB / 0.5324 GB, free: 57.23 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008796/1.229, allocations: 2.284 MB / 0.5347 GB, free: 55.53 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2133/1.442, allocations: 64.31 MB / 0.5975 GB, free: 0.8867 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007327/1.449, allocations: 1.726 MB / 0.5992 GB, free: 15.54 MB / 458.7 MB Notification: Performance of pre-optimization done (n=154): time 5.56e-06/1.45, allocations: 0 / 0.5992 GB, free: 15.54 MB / 458.7 MB Notification: Performance of matching and sorting (n=174): time 0.03907/1.489, allocations: 9.472 MB / 0.6084 GB, free: 8.238 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002095/1.489, allocations: 281.2 kB / 0.6087 GB, free: 7.906 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003002/1.492, allocations: 1.187 MB / 0.6098 GB, free: 7.012 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005641/1.493, allocations: 57.83 kB / 0.6099 GB, free: 6.973 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001168/1.494, allocations: 0.8378 MB / 0.6107 GB, free: 6.363 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00129/1.495, allocations: 0.5957 MB / 0.6113 GB, free: 5.855 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003071/1.495, allocations: 43.44 kB / 0.6113 GB, free: 5.848 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002837/1.496, allocations: 394 kB / 0.6117 GB, free: 5.488 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004669/1.5, allocations: 1.284 MB / 0.613 GB, free: 4.609 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005382/1.506, allocations: 1.864 MB / 0.6148 GB, free: 2.961 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005198/1.511, allocations: 1.529 MB / 0.6163 GB, free: 1.988 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.43e-05/1.511, allocations: 4 kB / 0.6163 GB, free: 1.984 MB / 458.7 MB Notification: Performance of matching and sorting (n=275) (initialization): time 0.0151/1.526, allocations: 4.355 MB / 0.6205 GB, free: 15.03 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.003243/1.529, allocations: 6.712 MB / 0.6271 GB, free: 7.922 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.382e-05/1.53, allocations: 20 kB / 0.6271 GB, free: 7.902 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02912/1.559, allocations: 3.722 MB / 0.6308 GB, free: 4.582 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002527/1.561, allocations: 340.8 kB / 0.6311 GB, free: 4.285 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01276/1.574, allocations: 4.067 MB / 0.635 GB, free: 1.305 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004246/1.578, allocations: 268.8 kB / 0.6353 GB, free: 1.074 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005295/1.579, allocations: 108.7 kB / 0.6354 GB, free: 0.9883 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.126e-05/1.579, allocations: 4 kB / 0.6354 GB, free: 0.9844 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01476/1.594, allocations: 3.982 MB / 0.6393 GB, free: 13.52 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.742e-05/1.594, allocations: 20 kB / 0.6393 GB, free: 13.5 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01764/1.612, allocations: 2.479 MB / 0.6417 GB, free: 11.02 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002895/1.615, allocations: 384 kB / 0.6421 GB, free: 10.66 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009867/1.624, allocations: 3.34 MB / 0.6454 GB, free: 7.309 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004035/1.629, allocations: 275.4 kB / 0.6456 GB, free: 7.039 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005571/1.629, allocations: 104 kB / 0.6457 GB, free: 6.938 MB / 490.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.002061/1.631, allocations: 0.6218 MB / 0.6463 GB, free: 6.328 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005469/1.632, allocations: 168.9 kB / 0.6465 GB, free: 6.164 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01781/1.65, allocations: 6.833 MB / 0.6532 GB, free: 15.32 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001177/1.65, allocations: 83.83 kB / 0.6533 GB, free: 15.23 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.31e-05/1.65, allocations: 0 / 0.6533 GB, free: 15.23 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01371/1.664, allocations: 5.49 MB / 0.6586 GB, free: 9.641 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02276/1.686, allocations: 9.528 MB / 0.6679 GB, free: 84 kB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.326e-05/1.686, allocations: 4 kB / 0.6679 GB, free: 80 kB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003765/1.69, allocations: 440.2 kB / 0.6683 GB, free: 15.66 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002579/1.693, allocations: 446.1 kB / 0.6688 GB, free: 15.21 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004266/1.693, allocations: 59.97 kB / 0.6688 GB, free: 15.16 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003028/1.696, allocations: 3.215 MB / 0.672 GB, free: 11.82 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/1.696, allocations: 0 / 0.672 GB, free: 11.82 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01784/1.714, allocations: 7.104 MB / 0.6789 GB, free: 4.637 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002274/1.717, allocations: 0.758 MB / 0.6796 GB, free: 3.855 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006311/1.717, allocations: 51.98 kB / 0.6797 GB, free: 3.805 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002733/1.72, allocations: 211.5 kB / 0.6799 GB, free: 3.598 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005442/1.72, allocations: 177.7 kB / 0.6801 GB, free: 3.422 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002532/1.721, allocations: 71.97 kB / 0.6801 GB, free: 3.352 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002807/1.724, allocations: 1.237 MB / 0.6813 GB, free: 2.121 MB / 0.5105 GB Notification: Performance of sort global known variables: time 7.11e-07/1.724, allocations: 0 / 0.6813 GB, free: 2.121 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.3236/2.047, allocations: 2.163 MB / 0.6834 GB, free: 214.5 MB / 0.5105 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,$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.0109/2.058, allocations: 1.539 MB / 0.685 GB, free: 214.4 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01785/2.076, allocations: 5.551 MB / 0.6904 GB, free: 213.7 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.309e-05/2.076, allocations: 2.172 kB / 0.6904 GB, free: 213.7 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.00659/2.083, allocations: 2.386 MB / 0.6927 GB, free: 212.8 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00699/2.09, allocations: 0.7839 MB / 0.6935 GB, free: 212.6 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01714/2.107, allocations: 8.145 MB / 0.7014 GB, free: 208.5 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001869/2.109, allocations: 2.059 MB / 0.7034 GB, free: 207.6 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.006198/2.115, allocations: 1.616 MB / 0.705 GB, free: 206.9 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009736/2.116, allocations: 147.2 kB / 0.7052 GB, free: 206.7 MB / 0.5105 GB Notification: Performance of SimCode: time 1.172e-06/2.116, allocations: 6.234 kB / 0.7052 GB, free: 206.7 MB / 0.5105 GB Notification: Performance of Templates: time 0.1638/2.28, allocations: 78.64 MB / 0.782 GB, free: 128.1 MB / 0.5105 GB