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_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization") Notification: Performance of loadModel(ModelicaTest): time 2.394/2.394, allocations: 269 MB / 284.1 MB, free: 3.637 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.198e-05/3.198e-05, allocations: 7.984 kB / 349 MB, free: 10.76 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1332/0.1333, allocations: 61.89 MB / 410.9 MB, free: 12.87 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization): time 0.4093/0.5426, allocations: 39.32 MB / 450.2 MB, free: 7.395 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.04457/0.5872, allocations: 21.13 MB / 471.4 MB, free: 8.152 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001799/0.5891, allocations: 38.91 kB / 471.4 MB, free: 8.133 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002007/0.5911, allocations: 483.1 kB / 471.9 MB, free: 7.703 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01799/0.6091, allocations: 4.056 MB / 475.9 MB, free: 4.195 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01631/0.6255, allocations: 3.657 MB / 479.6 MB, free: 1.32 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.005686/0.6312, allocations: 2.131 MB / 481.7 MB, free: 15.8 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00181/0.6331, allocations: 0.6747 MB / 482.4 MB, free: 15.36 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1252/0.7583, allocations: 50.31 MB / 0.5202 GB, free: 13.83 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.04891/0.8073, allocations: 20 MB / 0.5398 GB, free: 9.82 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02322/0.8305, allocations: 7.773 MB / 0.5474 GB, free: 2.039 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003764/0.8343, allocations: 0.5078 MB / 0.5479 GB, free: 1.531 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001371/0.8357, allocations: 0.6312 MB / 0.5485 GB, free: 0.8984 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001188/0.837, allocations: 243.9 kB / 0.5487 GB, free: 0.6602 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01324/0.8502, allocations: 5.098 MB / 0.5537 GB, free: 11.55 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.8503, allocations: 0 / 0.5537 GB, free: 11.55 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.214e-06/0.8503, allocations: 4 kB / 0.5537 GB, free: 11.55 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.000105/0.8504, allocations: 0 / 0.5537 GB, free: 11.55 MB / 474.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.01385/0.8643, allocations: 2.954 MB / 0.5566 GB, free: 8.535 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.39e-05/0.8643, allocations: 12.02 kB / 0.5566 GB, free: 8.523 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007373/0.8717, allocations: 0.6805 MB / 0.5572 GB, free: 7.84 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003674/0.8754, allocations: 1.184 MB / 0.5584 GB, free: 6.613 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002999/0.8758, allocations: 163.2 kB / 0.5586 GB, free: 6.453 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005936/0.8764, allocations: 171.9 kB / 0.5587 GB, free: 6.285 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01219/0.8886, allocations: 3.557 MB / 0.5622 GB, free: 2.602 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.925e-05/0.8888, allocations: 7.938 kB / 0.5622 GB, free: 2.594 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003583/0.8891, allocations: 71.98 kB / 0.5623 GB, free: 2.523 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003897/0.8895, allocations: 223.5 kB / 0.5625 GB, free: 2.305 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0142/0.9037, allocations: 3.531 MB / 0.5659 GB, free: 14.77 MB / 490.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.03192/0.9357, allocations: 14.13 MB / 0.5797 GB, free: 15.59 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009535/0.9453, allocations: 2.301 MB / 0.582 GB, free: 13.24 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.6182/1.564, allocations: 64.31 MB / 0.6448 GB, free: 152.1 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00655/1.57, allocations: 1.724 MB / 0.6465 GB, free: 151.2 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=154): time 5.45e-06/1.57, allocations: 4 kB / 0.6465 GB, free: 151.2 MB / 0.5105 GB Notification: Performance of matching and sorting (n=174): time 0.03451/1.605, allocations: 9.473 MB / 0.6557 GB, free: 144.9 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.91e-05/1.605, allocations: 290.2 kB / 0.656 GB, free: 144.5 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002215/1.607, allocations: 1.19 MB / 0.6572 GB, free: 143.4 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0004648/1.608, allocations: 57.7 kB / 0.6572 GB, free: 143.3 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.000652/1.608, allocations: 0.8244 MB / 0.658 GB, free: 142.5 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007413/1.609, allocations: 0.6015 MB / 0.6586 GB, free: 141.9 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002304/1.609, allocations: 40 kB / 0.6587 GB, free: 141.8 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001423/1.609, allocations: 399.1 kB / 0.659 GB, free: 141.4 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003919/1.613, allocations: 1.288 MB / 0.6603 GB, free: 140.1 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004431/1.618, allocations: 1.857 MB / 0.6621 GB, free: 138 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004588/1.622, allocations: 1.524 MB / 0.6636 GB, free: 136.5 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-05/1.623, allocations: 8 kB / 0.6636 GB, free: 136.5 MB / 0.5105 GB Notification: Performance of matching and sorting (n=275) (initialization): time 0.01291/1.635, allocations: 4.287 MB / 0.6678 GB, free: 132.2 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.001366/1.637, allocations: 6.707 MB / 0.6743 GB, free: 125 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.693e-05/1.637, allocations: 16 kB / 0.6744 GB, free: 125 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02699/1.664, allocations: 3.759 MB / 0.678 GB, free: 121.2 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002308/1.666, allocations: 339.4 kB / 0.6783 GB, free: 120.9 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01062/1.677, allocations: 4.054 MB / 0.6823 GB, free: 116.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003719/1.681, allocations: 277.8 kB / 0.6826 GB, free: 116.5 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003631/1.681, allocations: 108 kB / 0.6827 GB, free: 116.4 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.421e-05/1.681, allocations: 4 kB / 0.6827 GB, free: 116.4 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01236/1.694, allocations: 3.984 MB / 0.6866 GB, free: 112.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.157e-05/1.694, allocations: 19.94 kB / 0.6866 GB, free: 112.4 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01493/1.709, allocations: 2.367 MB / 0.6889 GB, free: 110 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002648/1.711, allocations: 375.4 kB / 0.6893 GB, free: 109.7 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007944/1.719, allocations: 3.348 MB / 0.6925 GB, free: 106.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003137/1.722, allocations: 267.5 kB / 0.6928 GB, free: 106 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003226/1.723, allocations: 104 kB / 0.6929 GB, free: 105.9 MB / 0.5105 GB 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.001603/1.724, allocations: 0.6164 MB / 0.6935 GB, free: 105.3 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004764/1.725, allocations: 162 kB / 0.6936 GB, free: 105.1 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0144/1.739, allocations: 6.846 MB / 0.7003 GB, free: 98.25 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.204e-05/1.739, allocations: 79.83 kB / 0.7004 GB, free: 98.18 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.231e-05/1.739, allocations: 3.938 kB / 0.7004 GB, free: 98.17 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01092/1.75, allocations: 5.491 MB / 0.7058 GB, free: 92.57 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01917/1.77, allocations: 9.514 MB / 0.7151 GB, free: 83.02 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.061e-05/1.77, allocations: 4 kB / 0.7151 GB, free: 83.02 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003542/1.773, allocations: 435.4 kB / 0.7155 GB, free: 82.59 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002359/1.776, allocations: 443.6 kB / 0.7159 GB, free: 82.14 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003733/1.776, allocations: 67.95 kB / 0.716 GB, free: 82.08 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002032/1.778, allocations: 3.221 MB / 0.7191 GB, free: 78.73 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.598e-06/1.778, allocations: 3.688 kB / 0.7191 GB, free: 78.73 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01516/1.793, allocations: 7.11 MB / 0.7261 GB, free: 71.53 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002094/1.795, allocations: 0.7579 MB / 0.7268 GB, free: 70.75 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008284/1.796, allocations: 51.97 kB / 0.7268 GB, free: 70.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00315/1.799, allocations: 203.7 kB / 0.727 GB, free: 70.5 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007265/1.8, allocations: 181.7 kB / 0.7272 GB, free: 70.32 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002387/1.8, allocations: 67.95 kB / 0.7273 GB, free: 70.25 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002434/1.803, allocations: 1.229 MB / 0.7285 GB, free: 69.03 MB / 0.5105 GB Notification: Performance of sort global known variables: time 8.32e-07/1.803, allocations: 0 / 0.7285 GB, free: 69.03 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.008199/1.811, allocations: 2.18 MB / 0.7306 GB, free: 66.97 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.008343/1.82, allocations: 1.547 MB / 0.7321 GB, free: 65.68 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0168/1.836, allocations: 5.529 MB / 0.7375 GB, free: 60.15 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 9.999e-06/1.836, allocations: 0 / 0.7375 GB, free: 60.15 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.005989/1.842, allocations: 2.383 MB / 0.7398 GB, free: 57.77 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006923/1.849, allocations: 0.7808 MB / 0.7406 GB, free: 57 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01635/1.866, allocations: 8.228 MB / 0.7486 GB, free: 48.75 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001804/1.868, allocations: 2.047 MB / 0.7506 GB, free: 46.67 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001158/1.869, allocations: 175.4 kB / 0.7508 GB, free: 46.5 MB / 0.5105 GB Notification: Performance of SimCode: time 1.062e-06/1.869, allocations: 0 / 0.7508 GB, free: 46.5 MB / 0.5105 GB Notification: Performance of Templates: time 0.5245/2.393, allocations: 85.24 MB / 0.8341 GB, free: 175.6 MB / 0.5261 GB