Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe.volume.medium.h|pipe.volume.medium.p|m_flow_initial",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization") Notification: Performance of loadModel(ModelicaTest): time 2.458/2.458, allocations: 234.9 MB / 250.1 MB, free: 9.945 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.067e-05/3.062e-05, allocations: 4 kB / 308 MB, free: 15.92 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4489/0.449, allocations: 54.86 MB / 362.9 MB, free: 12.06 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization): time 0.1483/0.5974, allocations: 52.86 MB / 415.7 MB, free: 8.871 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.08477/0.6822, allocations: 25.1 MB / 440.8 MB, free: 15.71 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002278/0.6846, allocations: 51.56 kB / 440.9 MB, free: 15.66 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002795/0.6874, allocations: 0.5635 MB / 441.4 MB, free: 15.09 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01815/0.7056, allocations: 4.662 MB / 446.1 MB, free: 10.42 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01499/0.7206, allocations: 3.946 MB / 450 MB, free: 6.465 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.004364/0.725, allocations: 1.621 MB / 451.7 MB, free: 4.836 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001883/0.7269, allocations: 0.5784 MB / 452.2 MB, free: 4.258 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1641/0.891, allocations: 49.99 MB / 0.4905 GB, free: 2.234 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.3973/1.288, allocations: 25.39 MB / 0.5152 GB, free: 52.71 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02239/1.311, allocations: 8.384 MB / 0.5234 GB, free: 48.18 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004138/1.315, allocations: 0.5039 MB / 0.5239 GB, free: 47.68 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000957/1.316, allocations: 351.7 kB / 0.5243 GB, free: 47.56 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007952/1.317, allocations: 148 kB / 0.5244 GB, free: 47.41 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01232/1.329, allocations: 4.763 MB / 0.5291 GB, free: 44.96 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/1.329, allocations: 0 / 0.5291 GB, free: 44.96 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.314e-06/1.329, allocations: 4 kB / 0.5291 GB, free: 44.96 MB / 426.7 MB Notification: Performance of Transformations before backend: time 7.985e-05/1.329, allocations: 0 / 0.5291 GB, free: 44.96 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: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.009446/1.339, allocations: 2.228 MB / 0.5312 GB, free: 42.84 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.157e-05/1.339, allocations: 8.031 kB / 0.5312 GB, free: 42.83 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004839/1.344, allocations: 472.2 kB / 0.5317 GB, free: 42.41 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002679/1.346, allocations: 0.9425 MB / 0.5326 GB, free: 41.72 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002443/1.347, allocations: 141.8 kB / 0.5327 GB, free: 41.61 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004028/1.347, allocations: 98.33 kB / 0.5328 GB, free: 41.55 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006472/1.354, allocations: 1.874 MB / 0.5347 GB, free: 40.12 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.809e-05/1.354, allocations: 2.625 kB / 0.5347 GB, free: 40.12 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002209/1.354, allocations: 39.78 kB / 0.5347 GB, free: 40.11 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001653/1.354, allocations: 83.25 kB / 0.5348 GB, free: 40.04 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00714/1.361, allocations: 1.792 MB / 0.5365 GB, free: 38.83 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.0186/1.38, allocations: 8.56 MB / 0.5449 GB, free: 31.26 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005391/1.385, allocations: 1.403 MB / 0.5463 GB, free: 30.13 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2202/1.606, allocations: 64.16 MB / 0.6089 GB, free: 7.652 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004015/1.61, allocations: 0.8832 MB / 0.6098 GB, free: 6.949 MB / 474.7 MB Notification: Performance of pre-optimization done (n=82): time 8.596e-06/1.61, allocations: 3.984 kB / 0.6098 GB, free: 6.945 MB / 474.7 MB Notification: Performance of matching and sorting (n=86): time 0.0209/1.631, allocations: 4.598 MB / 0.6143 GB, free: 3.242 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002268/1.631, allocations: 405.1 kB / 0.6147 GB, free: 2.758 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002191/1.633, allocations: 0.9364 MB / 0.6156 GB, free: 2.055 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003301/1.634, allocations: 45.94 kB / 0.6156 GB, free: 2.016 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006134/1.634, allocations: 0.5681 MB / 0.6162 GB, free: 1.617 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005133/1.635, allocations: 306.4 kB / 0.6165 GB, free: 1.363 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001346/1.635, allocations: 25.5 kB / 0.6165 GB, free: 1.359 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001911/1.635, allocations: 362.8 kB / 0.6168 GB, free: 1.016 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002094/1.637, allocations: 0.5358 MB / 0.6174 GB, free: 0.6758 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002526/1.64, allocations: 1.024 MB / 0.6184 GB, free: 15.67 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002572/1.642, allocations: 0.7102 MB / 0.6191 GB, free: 15.25 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.088e-05/1.642, allocations: 4 kB / 0.6191 GB, free: 15.25 MB / 490.7 MB Notification: Performance of matching and sorting (n=162) (initialization): time 0.006974/1.649, allocations: 1.88 MB / 0.6209 GB, free: 14.04 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002614/1.652, allocations: 5.578 MB / 0.6263 GB, free: 8.145 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.997e-05/1.652, allocations: 17.86 kB / 0.6264 GB, free: 8.129 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01123/1.664, allocations: 1.136 MB / 0.6275 GB, free: 7.121 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00207/1.666, allocations: 252.7 kB / 0.6277 GB, free: 6.902 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003971/1.67, allocations: 1.492 MB / 0.6292 GB, free: 5.777 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002512/1.672, allocations: 137 kB / 0.6293 GB, free: 5.664 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003562/1.673, allocations: 68.61 kB / 0.6294 GB, free: 5.609 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.929e-05/1.673, allocations: 5.719 kB / 0.6294 GB, free: 5.605 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006519/1.679, allocations: 1.705 MB / 0.631 GB, free: 4.527 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.041e-05/1.679, allocations: 12 kB / 0.6311 GB, free: 4.516 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002488/1.682, allocations: 378.5 kB / 0.6314 GB, free: 4.219 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002316/1.684, allocations: 287.5 kB / 0.6317 GB, free: 3.969 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002529/1.687, allocations: 1.07 MB / 0.6327 GB, free: 3.094 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001976/1.689, allocations: 123.7 kB / 0.6328 GB, free: 2.992 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002671/1.689, allocations: 79.36 kB / 0.6329 GB, free: 2.93 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: 64 * Number of states: 0 () * Number of discrete variables: 19 (source.medium.phase,$PRE.m_flow_initial,m_flow_initial,$whenCondition2,$whenCondition1,valve.state_b.phase,valve.state_a.phase,pipe.staticPipe2.flowModel.states[2].phase,pipe.staticPipe2.flowModel.states[1].phase,pipe.staticPipe1.flowModel.states[2].phase,pipe.staticPipe1.flowModel.states[1].phase,pipe.volume.regularFlow[1],pipe.volume.regularFlow[2],pipe.volume.heatTransfer.states[1].phase,pipe.volume.inFlow[2],pipe.volume.inFlow[1],sink.state.phase,sink.medium.phase,source.state.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (125): * Single equations (assignments): 124 * 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 {3 35} Notification: Performance of prepare postOptimizeDAE: time 0.001223/1.69, allocations: 381.3 kB / 0.6333 GB, free: 2.691 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004581/1.691, allocations: 134.4 kB / 0.6334 GB, free: 2.559 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009765/1.701, allocations: 4.057 MB / 0.6374 GB, free: 15.89 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.512e-05/1.701, allocations: 43.5 kB / 0.6374 GB, free: 15.86 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.501e-05/1.701, allocations: 0 / 0.6374 GB, free: 15.86 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.339e-05/1.701, allocations: 11.36 kB / 0.6374 GB, free: 15.85 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01249/1.713, allocations: 5.537 MB / 0.6428 GB, free: 12.25 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.369e-05/1.713, allocations: 0 / 0.6428 GB, free: 12.25 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001496/1.715, allocations: 176.3 kB / 0.643 GB, free: 12.1 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01146/1.726, allocations: 1.552 MB / 0.6445 GB, free: 10.7 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000249/1.727, allocations: 30.05 kB / 0.6446 GB, free: 10.68 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002861/1.73, allocations: 2.082 MB / 0.6466 GB, free: 9.012 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.509e-06/1.73, allocations: 0 / 0.6466 GB, free: 9.012 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009593/1.739, allocations: 3.982 MB / 0.6505 GB, free: 6.355 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001613/1.741, allocations: 0.5261 MB / 0.651 GB, free: 5.926 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000579/1.742, allocations: 27.19 kB / 0.651 GB, free: 5.914 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001987/1.744, allocations: 95.27 kB / 0.6511 GB, free: 5.836 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000335/1.744, allocations: 81.06 kB / 0.6512 GB, free: 5.77 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001306/1.744, allocations: 34.55 kB / 0.6512 GB, free: 5.742 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002524/1.747, allocations: 1.056 MB / 0.6522 GB, free: 5.004 MB / 0.4948 GB Notification: Performance of sort global known variables: time 2.745e-06/1.747, allocations: 4 kB / 0.6522 GB, free: 5 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.008257/1.755, allocations: 1.816 MB / 0.654 GB, free: 3.289 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (pipe.volume.medium.p,pipe.volume.medium.h) * Number of discrete variables: 25 ($cse6.region3boundary,$cse7.region3boundary,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse22.phase,$cse22.region,$whenCondition2,$whenCondition1,pipe.volume.heatTransfer.states[1].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 (86): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.01022/1.765, allocations: 1.666 MB / 0.6556 GB, free: 1.805 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.008828/1.774, allocations: 2.472 MB / 0.6581 GB, free: 172 kB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.357e-05/1.774, allocations: 0 / 0.6581 GB, free: 172 kB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.003101/1.777, allocations: 1.067 MB / 0.6591 GB, free: 15.54 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005948/1.783, allocations: 0.6079 MB / 0.6597 GB, free: 15.05 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01034/1.794, allocations: 4.488 MB / 0.6641 GB, free: 11.1 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001518/1.795, allocations: 1.472 MB / 0.6655 GB, free: 9.637 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007164/1.796, allocations: 113 kB / 0.6656 GB, free: 9.531 MB / 0.5105 GB Notification: Performance of SimCode: time 1.423e-06/1.796, allocations: 0 / 0.6656 GB, free: 9.531 MB / 0.5105 GB Notification: Performance of Templates: time 0.4432/2.239, allocations: 55.5 MB / 0.7198 GB, free: 211.1 MB / 0.5261 GB