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_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization") Notification: Performance of loadModel(ModelicaTest): time 2.446/2.446, allocations: 269 MB / 284.1 MB, free: 3.648 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.173e-05/3.185e-05, allocations: 4 kB / 349 MB, free: 10.79 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1334/0.1334, allocations: 61.89 MB / 410.9 MB, free: 12.89 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization): time 0.4254/0.5589, allocations: 53.14 MB / 464.1 MB, free: 13.36 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.05206/0.611, allocations: 25.22 MB / 489.3 MB, free: 9.188 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002346/0.6134, allocations: 51.56 kB / 489.3 MB, free: 9.137 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002825/0.6163, allocations: 0.5597 MB / 489.9 MB, free: 8.574 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0205/0.6368, allocations: 4.678 MB / 494.6 MB, free: 3.883 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01724/0.6541, allocations: 3.942 MB / 498.5 MB, free: 15.93 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.004715/0.6589, allocations: 1.629 MB / 0.4884 GB, free: 14.29 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001555/0.6605, allocations: 0.5785 MB / 0.489 GB, free: 13.71 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1245/0.785, allocations: 50.02 MB / 0.5378 GB, free: 11.67 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.06656/0.8516, allocations: 25.4 MB / 0.5626 GB, free: 2.262 MB / 474.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02582/0.8775, allocations: 8.413 MB / 0.5708 GB, free: 9.84 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003881/0.8814, allocations: 0.5078 MB / 0.5713 GB, free: 9.332 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009808/0.8824, allocations: 350.9 kB / 0.5717 GB, free: 8.988 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006859/0.8831, allocations: 148 kB / 0.5718 GB, free: 8.844 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01332/0.8965, allocations: 4.775 MB / 0.5765 GB, free: 4.059 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.494e-06/0.8965, allocations: 0 / 0.5765 GB, free: 4.059 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.595e-06/0.8965, allocations: 3.938 kB / 0.5765 GB, free: 4.055 MB / 490.7 MB Notification: Performance of Transformations before backend: time 5.131e-05/0.8966, allocations: 4 kB / 0.5765 GB, free: 4.051 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: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.009153/0.9058, allocations: 2.227 MB / 0.5787 GB, free: 1.773 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.744e-05/0.9058, allocations: 8.031 kB / 0.5787 GB, free: 1.766 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004778/0.9106, allocations: 473.9 kB / 0.5791 GB, free: 1.301 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002735/0.9134, allocations: 0.9453 MB / 0.58 GB, free: 320 kB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002618/0.9137, allocations: 153.3 kB / 0.5802 GB, free: 152 kB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003956/0.9141, allocations: 91.98 kB / 0.5803 GB, free: 60 kB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006907/0.9211, allocations: 1.869 MB / 0.5821 GB, free: 14.09 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.746e-05/0.9212, allocations: 3.938 kB / 0.5821 GB, free: 14.08 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002284/0.9214, allocations: 43.98 kB / 0.5821 GB, free: 14.04 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001933/0.9216, allocations: 81.95 kB / 0.5822 GB, free: 13.96 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007463/0.9291, allocations: 1.791 MB / 0.584 GB, free: 12.16 MB / 0.4948 GB 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.01964/0.9488, allocations: 8.552 MB / 0.5923 GB, free: 3.008 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005654/0.9545, allocations: 1.414 MB / 0.5937 GB, free: 1.516 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5665/1.521, allocations: 64.16 MB / 0.6564 GB, free: 145 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003508/1.525, allocations: 0.8909 MB / 0.6572 GB, free: 144.2 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=82): time 4.248e-06/1.525, allocations: 0 / 0.6572 GB, free: 144.2 MB / 0.5105 GB Notification: Performance of matching and sorting (n=86): time 0.01842/1.543, allocations: 4.608 MB / 0.6617 GB, free: 139.6 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001128/1.543, allocations: 405.9 kB / 0.6621 GB, free: 139.2 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001714/1.545, allocations: 0.9304 MB / 0.663 GB, free: 138.2 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0002537/1.545, allocations: 41.7 kB / 0.6631 GB, free: 138.2 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004661/1.546, allocations: 0.5717 MB / 0.6636 GB, free: 137.6 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004057/1.546, allocations: 307.2 kB / 0.6639 GB, free: 137.3 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001293/1.546, allocations: 24 kB / 0.6639 GB, free: 137.3 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001387/1.546, allocations: 358.8 kB / 0.6643 GB, free: 136.9 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00188/1.548, allocations: 0.5413 MB / 0.6648 GB, free: 136.4 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00225/1.551, allocations: 1.033 MB / 0.6658 GB, free: 135.1 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002245/1.553, allocations: 0.6978 MB / 0.6665 GB, free: 134.4 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.309e-05/1.553, allocations: 4 kB / 0.6665 GB, free: 134.4 MB / 0.5105 GB Notification: Performance of matching and sorting (n=162) (initialization): time 0.005906/1.559, allocations: 1.888 MB / 0.6684 GB, free: 132.5 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.00116/1.56, allocations: 5.577 MB / 0.6738 GB, free: 126.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.397e-05/1.56, allocations: 15.95 kB / 0.6738 GB, free: 126.5 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01062/1.571, allocations: 1.157 MB / 0.6749 GB, free: 125.4 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001764/1.573, allocations: 247.6 kB / 0.6752 GB, free: 125.1 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003372/1.576, allocations: 1.501 MB / 0.6766 GB, free: 123.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002128/1.578, allocations: 129.4 kB / 0.6768 GB, free: 123.5 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002285/1.578, allocations: 71.98 kB / 0.6768 GB, free: 123.4 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.279e-05/1.578, allocations: 4 kB / 0.6768 GB, free: 123.4 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00539/1.584, allocations: 1.704 MB / 0.6785 GB, free: 121.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.689e-05/1.584, allocations: 19.59 kB / 0.6785 GB, free: 121.7 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002213/1.586, allocations: 389.9 kB / 0.6789 GB, free: 121.3 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002018/1.588, allocations: 287.5 kB / 0.6792 GB, free: 121 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00198/1.59, allocations: 1.055 MB / 0.6802 GB, free: 119.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001666/1.592, allocations: 123.8 kB / 0.6803 GB, free: 119.8 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001643/1.592, allocations: 71.98 kB / 0.6804 GB, free: 119.7 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: 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.0009353/1.593, allocations: 404.5 kB / 0.6808 GB, free: 119.3 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003183/1.593, allocations: 122.5 kB / 0.6809 GB, free: 119.2 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007581/1.601, allocations: 4.058 MB / 0.6849 GB, free: 115.1 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.936e-05/1.601, allocations: 43.94 kB / 0.6849 GB, free: 115.1 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.122e-05/1.601, allocations: 0 / 0.6849 GB, free: 115.1 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.256e-05/1.601, allocations: 7.984 kB / 0.6849 GB, free: 115.1 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009833/1.611, allocations: 5.533 MB / 0.6903 GB, free: 109.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.668e-05/1.611, allocations: 4 kB / 0.6903 GB, free: 109.5 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001318/1.612, allocations: 171.8 kB / 0.6905 GB, free: 109.3 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0109/1.623, allocations: 1.587 MB / 0.692 GB, free: 107.7 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002129/1.623, allocations: 35.94 kB / 0.6921 GB, free: 107.7 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002145/1.626, allocations: 2.071 MB / 0.6941 GB, free: 105.6 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.322e-06/1.626, allocations: 9.844 kB / 0.6941 GB, free: 105.6 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007693/1.633, allocations: 3.99 MB / 0.698 GB, free: 101.4 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001214/1.635, allocations: 0.5249 MB / 0.6985 GB, free: 100.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004725/1.635, allocations: 27.94 kB / 0.6985 GB, free: 100.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001597/1.637, allocations: 88 kB / 0.6986 GB, free: 100.8 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002148/1.637, allocations: 72.89 kB / 0.6987 GB, free: 100.7 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001094/1.637, allocations: 43.67 kB / 0.6987 GB, free: 100.7 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002034/1.639, allocations: 1.054 MB / 0.6998 GB, free: 99.61 MB / 0.5105 GB Notification: Performance of sort global known variables: time 5.31e-07/1.639, allocations: 0 / 0.6998 GB, free: 99.61 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.006369/1.646, allocations: 1.817 MB / 0.7015 GB, free: 97.95 MB / 0.5105 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.008493/1.654, allocations: 1.69 MB / 0.7032 GB, free: 96.56 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.008241/1.662, allocations: 2.475 MB / 0.7056 GB, free: 94.09 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.016e-05/1.662, allocations: 4 kB / 0.7056 GB, free: 94.08 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.002575/1.665, allocations: 1.055 MB / 0.7066 GB, free: 93.04 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005501/1.671, allocations: 0.63 MB / 0.7072 GB, free: 92.41 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00802/1.679, allocations: 4.472 MB / 0.7116 GB, free: 87.89 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001003/1.68, allocations: 1.476 MB / 0.7131 GB, free: 86.39 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005871/1.68, allocations: 111.4 kB / 0.7132 GB, free: 86.28 MB / 0.5105 GB Notification: Performance of SimCode: time 1.433e-06/1.68, allocations: 0 / 0.7132 GB, free: 86.28 MB / 0.5105 GB Notification: Performance of Templates: time 0.1006/1.781, allocations: 55.62 MB / 0.7675 GB, free: 30.7 MB / 0.5105 GB