Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.T|junctionIdeal.medium.p|junctionVolume.medium.T|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.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17") Notification: Performance of loadModel(ModelicaTest): time 1.968/1.968, allocations: 209.3 MB / 223.8 MB, free: 448 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.856e-05/3.852e-05, allocations: 4 kB / 276.2 MB, free: 15.2 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3505/0.3506, allocations: 48.69 MB / 324.9 MB, free: 3.367 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17): time 0.6381/0.9888, allocations: 180.7 MB / 0.4937 GB, free: 3.438 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.04317/1.032, allocations: 21.41 MB / 0.5146 GB, free: 3.09 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003721/1.036, allocations: 110.1 kB / 0.5147 GB, free: 3.09 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003883/1.04, allocations: 0.9616 MB / 0.5156 GB, free: 3.078 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01442/1.054, allocations: 3.489 MB / 0.519 GB, free: 2.969 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01732/1.072, allocations: 4.836 MB / 0.5238 GB, free: 1.734 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.008345/1.08, allocations: 3.045 MB / 0.5267 GB, free: 1.199 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002591/1.083, allocations: 1.106 MB / 0.5278 GB, free: 0.7578 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005779/1.088, allocations: 1.838 MB / 0.5296 GB, free: 0.4961 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00454/1.093, allocations: 1.574 MB / 0.5312 GB, free: 140 kB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01112/1.104, allocations: 3.224 MB / 0.5343 GB, free: 15.52 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002321/1.106, allocations: 255.8 kB / 0.5346 GB, free: 15.52 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001904/1.108, allocations: 0.7578 MB / 0.5353 GB, free: 15.3 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00154/1.11, allocations: 256.8 kB / 0.5355 GB, free: 15.3 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009999/1.12, allocations: 3.924 MB / 0.5394 GB, free: 13.5 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.367e-06/1.12, allocations: 0 / 0.5394 GB, free: 13.5 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.234e-06/1.12, allocations: 0 / 0.5394 GB, free: 13.5 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.000106/1.12, allocations: 0 / 0.5394 GB, free: 13.5 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: 448 * Number of variables: 448 Notification: Performance of Generate backend data structure: time 0.01054/1.131, allocations: 2.75 MB / 0.5421 GB, free: 11.79 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.982e-05/1.131, allocations: 9.531 kB / 0.5421 GB, free: 11.79 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00444/1.135, allocations: 437.2 kB / 0.5425 GB, free: 11.61 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004589/1.14, allocations: 1.484 MB / 0.5439 GB, free: 10.89 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001507/1.14, allocations: 138.9 kB / 0.5441 GB, free: 10.88 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005215/1.141, allocations: 171.1 kB / 0.5442 GB, free: 10.88 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006878/1.147, allocations: 2.617 MB / 0.5468 GB, free: 10.05 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.858e-05/1.148, allocations: 9.906 kB / 0.5468 GB, free: 10.04 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003325/1.148, allocations: 72.38 kB / 0.5469 GB, free: 10.04 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003917/1.148, allocations: 194.4 kB / 0.547 GB, free: 10 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00682/1.155, allocations: 2.306 MB / 0.5493 GB, free: 8.973 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.02562/1.181, allocations: 11.24 MB / 0.5603 GB, free: 14.95 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00513/1.186, allocations: 1.837 MB / 0.5621 GB, free: 13.56 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001453/1.188, allocations: 466.8 kB / 0.5625 GB, free: 13.09 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003168/1.191, allocations: 1.191 MB / 0.5637 GB, free: 12.2 MB / 442.7 MB Notification: Performance of pre-optimization done (n=168): time 4.909e-06/1.191, allocations: 0 / 0.5637 GB, free: 12.2 MB / 442.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 5: junctionVolume.medium.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=196): time 0.07005/1.261, allocations: 12.03 MB / 0.5754 GB, free: 2.582 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001822/1.261, allocations: 184.2 kB / 0.5756 GB, free: 2.367 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004208/1.265, allocations: 1.364 MB / 0.5769 GB, free: 1.328 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007709/1.266, allocations: 66.45 kB / 0.577 GB, free: 1.285 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001111/1.267, allocations: 0.944 MB / 0.5779 GB, free: 0.7031 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001204/1.268, allocations: 0.6561 MB / 0.5786 GB, free: 144 kB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002724/1.269, allocations: 47.31 kB / 0.5786 GB, free: 132 kB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002873/1.269, allocations: 396 kB / 0.579 GB, free: 15.77 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003438/1.272, allocations: 1.059 MB / 0.58 GB, free: 15.06 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004076/1.277, allocations: 1.594 MB / 0.5816 GB, free: 13.68 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004115/1.281, allocations: 1.357 MB / 0.5829 GB, free: 12.8 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.904e-05/1.281, allocations: 4 kB / 0.5829 GB, free: 12.8 MB / 458.7 MB Notification: Performance of matching and sorting (n=293) (initialization): time 0.01055/1.291, allocations: 3.366 MB / 0.5862 GB, free: 10.4 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002381/1.294, allocations: 5.809 MB / 0.5919 GB, free: 4.18 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.786e-05/1.294, allocations: 16 kB / 0.5919 GB, free: 4.164 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00139/1.295, allocations: 308.7 kB / 0.5922 GB, free: 3.898 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00495/1.3, allocations: 0.5905 MB / 0.5927 GB, free: 3.355 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003171/1.304, allocations: 3.015 MB / 0.5957 GB, free: 380 kB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004483/1.308, allocations: 225.8 kB / 0.5959 GB, free: 192 kB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007778/1.309, allocations: 209.9 kB / 0.5961 GB, free: 4 kB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.774e-05/1.309, allocations: 4 kB / 0.5961 GB, free: 0 / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009167/1.318, allocations: 3.079 MB / 0.5991 GB, free: 13.9 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-05/1.318, allocations: 12.09 kB / 0.5991 GB, free: 13.89 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001176/1.319, allocations: 311 kB / 0.5994 GB, free: 13.62 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00475/1.324, allocations: 0.5749 MB / 0.6 GB, free: 13.09 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002944/1.327, allocations: 3.013 MB / 0.6029 GB, free: 10.11 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003971/1.331, allocations: 230.5 kB / 0.6031 GB, free: 9.918 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006333/1.332, allocations: 209.2 kB / 0.6033 GB, free: 9.734 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 64 * Number of states: 0 () * Number of discrete variables: 12 ($whenCondition1,$whenCondition2,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (274): * Single equations (assignments): 267 * 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: 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 7,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.00193/1.334, allocations: 0.6287 MB / 0.604 GB, free: 9.301 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007273/1.335, allocations: 213.4 kB / 0.6042 GB, free: 9.09 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01338/1.348, allocations: 3.758 MB / 0.6078 GB, free: 6.363 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.198e-05/1.348, allocations: 20 kB / 0.6079 GB, free: 6.344 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.212e-05/1.348, allocations: 4 kB / 0.6079 GB, free: 6.34 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008364/1.356, allocations: 2.919 MB / 0.6107 GB, free: 4.094 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02043/1.377, allocations: 6.91 MB / 0.6175 GB, free: 14.77 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.829e-05/1.377, allocations: 4 kB / 0.6175 GB, free: 14.77 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003845/1.381, allocations: 462.5 kB / 0.6179 GB, free: 14.36 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001511/1.382, allocations: 324.6 kB / 0.6182 GB, free: 14.07 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004796/1.383, allocations: 110.5 kB / 0.6183 GB, free: 14 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003824/1.387, allocations: 3.761 MB / 0.622 GB, free: 10.21 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-05/1.387, allocations: 6.531 kB / 0.622 GB, free: 10.2 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01226/1.399, allocations: 4.876 MB / 0.6268 GB, free: 6.379 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001927/1.401, allocations: 0.5214 MB / 0.6273 GB, free: 5.945 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007289/1.402, allocations: 58.55 kB / 0.6273 GB, free: 5.918 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00258/1.404, allocations: 131.3 kB / 0.6274 GB, free: 5.816 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000486/1.405, allocations: 193 kB / 0.6276 GB, free: 5.652 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004517/1.405, allocations: 176.5 kB / 0.6278 GB, free: 5.496 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002209/1.408, allocations: 1.029 MB / 0.6288 GB, free: 4.738 MB / 490.7 MB Notification: Performance of sort global known variables: time 5.11e-07/1.408, allocations: 0 / 0.6288 GB, free: 4.738 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.007602/1.415, allocations: 1.785 MB / 0.6305 GB, free: 3.09 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * Number of states: 9 (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,junctionVolume.medium.T) * Number of discrete variables: 10 ($whenCondition1,$whenCondition2,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent) * Number of discrete states: 10 (valveOpening2.last,valveOpening2.nextEvent,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (205): * Single equations (assignments): 198 * 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: 5 * 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: 4 {1 6,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.005011/1.42, allocations: 1.303 MB / 0.6318 GB, free: 1.945 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0134/1.434, allocations: 4.61 MB / 0.6363 GB, free: 14.63 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.46e-05/1.434, allocations: 4.188 kB / 0.6363 GB, free: 14.63 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.004515/1.438, allocations: 1.588 MB / 0.6379 GB, free: 13.43 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008829/1.447, allocations: 1.044 MB / 0.6389 GB, free: 12.57 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01521/1.462, allocations: 5.945 MB / 0.6447 GB, free: 7.117 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00207/1.465, allocations: 1.757 MB / 0.6464 GB, free: 5.398 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.01049/1.475, allocations: 1.575 MB / 0.648 GB, free: 3.82 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002045/1.477, allocations: 300.7 kB / 0.6482 GB, free: 3.543 MB / 0.4948 GB Notification: Performance of SimCode: time 1.332e-06/1.477, allocations: 0 / 0.6482 GB, free: 3.543 MB / 0.4948 GB Notification: Performance of Templates: time 0.4241/1.901, allocations: 62.87 MB / 0.7096 GB, free: 214.9 MB / 0.5105 GB