Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.T|junctionIdeal.medium.p|pipe1.mediums.1..T|pipe1.mediums.1..p|pipe2.mediums.1..T|pipe2.mediums.1..p|pipe3.mediums.1..T|pipe3.mediums.1..p|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16") Notification: Performance of loadModel(ModelicaTest): time 2.368/2.368, allocations: 234.9 MB / 250.1 MB, free: 9.938 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.359e-05/3.358e-05, allocations: 4 kB / 308 MB, free: 15.92 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4333/0.4333, allocations: 54.87 MB / 362.9 MB, free: 12.08 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16): time 0.6566/1.09, allocations: 175 MB / 0.5252 GB, free: 2.168 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.05347/1.144, allocations: 20.36 MB / 0.5451 GB, free: 1.816 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003799/1.147, allocations: 110.6 kB / 0.5452 GB, free: 1.816 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003905/1.151, allocations: 0.8993 MB / 0.5461 GB, free: 1.805 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0132/1.165, allocations: 3.14 MB / 0.5491 GB, free: 1.078 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01782/1.182, allocations: 4.735 MB / 0.5538 GB, free: 15.46 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.007601/1.19, allocations: 2.879 MB / 0.5566 GB, free: 14.96 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002548/1.193, allocations: 1.045 MB / 0.5576 GB, free: 14.54 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005531/1.198, allocations: 1.724 MB / 0.5593 GB, free: 14.3 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004678/1.203, allocations: 1.495 MB / 0.5607 GB, free: 13.95 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01136/1.214, allocations: 3.15 MB / 0.5638 GB, free: 13.32 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002321/1.217, allocations: 250.6 kB / 0.5641 GB, free: 13.32 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001859/1.219, allocations: 0.7263 MB / 0.5648 GB, free: 13.11 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001625/1.22, allocations: 242 kB / 0.565 GB, free: 13.11 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009874/1.23, allocations: 3.782 MB / 0.5687 GB, free: 11.38 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/1.23, allocations: 3.375 kB / 0.5687 GB, free: 11.38 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.537e-06/1.23, allocations: 0 / 0.5687 GB, free: 11.38 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001323/1.231, allocations: 0 / 0.5687 GB, free: 11.38 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 427 * Number of variables: 427 Notification: Performance of Generate backend data structure: time 0.01034/1.241, allocations: 2.663 MB / 0.5713 GB, free: 8.883 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.078e-05/1.241, allocations: 8.031 kB / 0.5713 GB, free: 8.875 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004409/1.245, allocations: 429.7 kB / 0.5717 GB, free: 8.477 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004951/1.25, allocations: 1.429 MB / 0.5731 GB, free: 7.34 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002231/1.251, allocations: 127.6 kB / 0.5732 GB, free: 7.27 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008281/1.252, allocations: 164.5 kB / 0.5734 GB, free: 7.16 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00776/1.259, allocations: 2.519 MB / 0.5758 GB, free: 5.277 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.073e-05/1.259, allocations: 9.062 kB / 0.5758 GB, free: 5.273 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004299/1.26, allocations: 67.11 kB / 0.5759 GB, free: 5.258 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004585/1.26, allocations: 195.1 kB / 0.5761 GB, free: 5.09 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007439/1.268, allocations: 2.218 MB / 0.5783 GB, free: 3.602 MB / 442.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.0258/1.294, allocations: 10.72 MB / 0.5887 GB, free: 10.05 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005673/1.299, allocations: 1.757 MB / 0.5905 GB, free: 8.719 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00164/1.301, allocations: 466.9 kB / 0.5909 GB, free: 8.242 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003598/1.305, allocations: 1.159 MB / 0.592 GB, free: 7.375 MB / 458.7 MB Notification: Performance of pre-optimization done (n=162): time 7.034e-06/1.305, allocations: 0 / 0.592 GB, free: 7.375 MB / 458.7 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: pipe1.mediums[1].T 2: pipe2.mediums[1].T 3: pipe3.mediums[1].T 4: junctionIdeal.medium.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=185): time 0.04998/1.355, allocations: 10.83 MB / 0.6026 GB, free: 14.77 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000145/1.355, allocations: 183 kB / 0.6028 GB, free: 14.56 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003043/1.358, allocations: 1.31 MB / 0.6041 GB, free: 13.56 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005815/1.359, allocations: 64.83 kB / 0.6041 GB, free: 13.52 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009228/1.36, allocations: 0.8362 MB / 0.6049 GB, free: 12.98 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001199/1.361, allocations: 0.6274 MB / 0.6055 GB, free: 12.45 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002703/1.361, allocations: 40.56 kB / 0.6056 GB, free: 12.44 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002476/1.361, allocations: 404.5 kB / 0.606 GB, free: 12.07 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003169/1.365, allocations: 1.007 MB / 0.607 GB, free: 11.39 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004065/1.369, allocations: 1.508 MB / 0.6084 GB, free: 10.09 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004276/1.373, allocations: 1.297 MB / 0.6097 GB, free: 9.25 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.758e-05/1.373, allocations: 6.531 kB / 0.6097 GB, free: 9.246 MB / 474.7 MB Notification: Performance of matching and sorting (n=275) (initialization): time 0.01004/1.383, allocations: 2.995 MB / 0.6126 GB, free: 7.145 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002203/1.385, allocations: 5.126 MB / 0.6176 GB, free: 1.715 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.208e-05/1.386, allocations: 12 kB / 0.6176 GB, free: 1.703 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008421/1.386, allocations: 200.3 kB / 0.6178 GB, free: 1.52 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00494/1.391, allocations: 0.5609 MB / 0.6184 GB, free: 1.008 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002241/1.394, allocations: 2.333 MB / 0.6207 GB, free: 14.66 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004182/1.398, allocations: 210.8 kB / 0.6209 GB, free: 14.49 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008859/1.399, allocations: 189.8 kB / 0.621 GB, free: 14.32 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.982e-05/1.399, allocations: 7.953 kB / 0.621 GB, free: 14.32 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00913/1.408, allocations: 2.844 MB / 0.6238 GB, free: 12.38 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.224e-05/1.408, allocations: 16.62 kB / 0.6238 GB, free: 12.37 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006762/1.409, allocations: 193.3 kB / 0.624 GB, free: 12.19 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004771/1.414, allocations: 0.5515 MB / 0.6246 GB, free: 11.69 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002159/1.416, allocations: 2.338 MB / 0.6268 GB, free: 9.34 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003221/1.419, allocations: 199 kB / 0.627 GB, free: 9.176 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007275/1.42, allocations: 187.9 kB / 0.6272 GB, free: 9.012 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 58 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition1,$whenCondition2,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,valveOpening2.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (259): * Single equations (assignments): 253 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.002066/1.422, allocations: 0.6188 MB / 0.6278 GB, free: 8.582 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007229/1.423, allocations: 209.5 kB / 0.628 GB, free: 8.375 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01325/1.436, allocations: 3.487 MB / 0.6314 GB, free: 5.855 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.476e-05/1.436, allocations: 27.95 kB / 0.6315 GB, free: 5.828 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.102e-05/1.436, allocations: 0 / 0.6315 GB, free: 5.828 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008034/1.444, allocations: 2.705 MB / 0.6341 GB, free: 3.742 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02187/1.466, allocations: 6.796 MB / 0.6407 GB, free: 12.95 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.08e-05/1.466, allocations: 4 kB / 0.6407 GB, free: 12.94 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003957/1.47, allocations: 449 kB / 0.6412 GB, free: 12.52 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007918/1.471, allocations: 189.8 kB / 0.6413 GB, free: 12.33 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005698/1.471, allocations: 103.9 kB / 0.6414 GB, free: 12.23 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003199/1.475, allocations: 3.079 MB / 0.6444 GB, free: 8.949 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-05/1.475, allocations: 10.62 kB / 0.6445 GB, free: 8.941 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01291/1.488, allocations: 4.646 MB / 0.649 GB, free: 4.023 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00206/1.49, allocations: 0.5139 MB / 0.6495 GB, free: 3.488 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009224/1.491, allocations: 59.98 kB / 0.6496 GB, free: 3.43 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00286/1.494, allocations: 131.6 kB / 0.6497 GB, free: 3.301 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006582/1.494, allocations: 177.4 kB / 0.6499 GB, free: 3.133 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004739/1.495, allocations: 164 kB / 0.65 GB, free: 2.973 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002449/1.497, allocations: 0.992 MB / 0.651 GB, free: 1.988 MB / 0.4948 GB Notification: Performance of sort global known variables: time 8.61e-07/1.497, allocations: 0 / 0.651 GB, free: 1.988 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.00817/1.506, allocations: 1.702 MB / 0.6526 GB, free: 292 kB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 8 (pipe1.mediums[1].p,pipe1.mediums[1].T,pipe2.mediums[1].p,pipe2.mediums[1].T,pipe3.mediums[1].p,pipe3.mediums[1].T,junctionIdeal.medium.p,junctionIdeal.medium.T) * Number of discrete variables: 12 ($whenCondition1,$whenCondition2,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,valveOpening2.nextEventScaled) * Number of discrete states: 12 (valveOpening2.nextEvent,valveOpening2.last,valveOpening2.nextEventScaled,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (196): * Single equations (assignments): 190 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 3 {1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.005546/1.511, allocations: 1.266 MB / 0.6539 GB, free: 15.12 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0141/1.525, allocations: 4.422 MB / 0.6582 GB, free: 10.77 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.419e-05/1.525, allocations: 0 / 0.6582 GB, free: 10.77 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.004614/1.53, allocations: 1.56 MB / 0.6597 GB, free: 9.227 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0103/1.54, allocations: 0.9079 MB / 0.6606 GB, free: 8.32 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02315/1.564, allocations: 5.734 MB / 0.6662 GB, free: 2.496 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003581/1.567, allocations: 1.703 MB / 0.6679 GB, free: 0.7617 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004294/1.572, allocations: 363.3 kB / 0.6682 GB, free: 416 kB / 0.5105 GB Notification: Performance of SimCode: time 2.826e-06/1.572, allocations: 4 kB / 0.6682 GB, free: 412 kB / 0.5105 GB Notification: Performance of Templates: time 0.4826/2.054, allocations: 77.27 MB / 0.7437 GB, free: 212.8 MB / 0.5417 GB