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_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17") Notification: Performance of loadModel(ModelicaTest): time 2.283/2.283, allocations: 270 MB / 283.6 MB, free: 1.879 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.455e-05/3.464e-05, allocations: 4 kB / 348.4 MB, free: 2.762 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3209/0.321, allocations: 61.88 MB / 410.3 MB, free: 10.75 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.566/1.887, allocations: 0.5614 GB / 0.9621 GB, free: 121.1 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001989/1.888, allocations: 90.48 kB / 0.9621 GB, free: 121.1 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.73/4.618, allocations: 0.5634 GB / 1.526 GB, free: 45.67 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.379e-06/4.618, allocations: 0.5 kB / 1.526 GB, free: 45.67 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0003151/4.618, allocations: 65.72 kB / 1.526 GB, free: 45.67 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 452 * Number of variables: 452 Notification: Performance of Generate backend data structure: time 0.01113/4.629, allocations: 2.941 MB / 1.528 GB, free: 45.13 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.386e-05/4.629, allocations: 9.344 kB / 1.528 GB, free: 45.13 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004572/4.634, allocations: 470.2 kB / 1.529 GB, free: 45 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006799/4.641, allocations: 1.985 MB / 1.531 GB, free: 44.65 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001823/4.641, allocations: 139.4 kB / 1.531 GB, free: 44.64 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006314/4.642, allocations: 175.4 kB / 1.531 GB, free: 44.64 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005891/4.648, allocations: 2.706 MB / 1.534 GB, free: 44.2 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.085e-05/4.648, allocations: 5.438 kB / 1.534 GB, free: 44.2 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004022/4.648, allocations: 79.62 kB / 1.534 GB, free: 44.2 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002781/4.648, allocations: 157 kB / 1.534 GB, free: 44.19 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005251/4.654, allocations: 2.257 MB / 1.536 GB, free: 44.18 MB / 0.5417 GB Warning: The model contains alias variables with conflicting start and/or 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.01909/4.673, allocations: 11.61 MB / 1.548 GB, free: 38.03 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003628/4.676, allocations: 1.829 MB / 1.549 GB, free: 37.71 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002128/4.679, allocations: 1.109 MB / 1.55 GB, free: 37.7 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008968/4.68, allocations: 0.5077 MB / 1.551 GB, free: 37.23 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002492/4.682, allocations: 1.331 MB / 1.552 GB, free: 37.07 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=172): time 5.829e-06/4.682, allocations: 0 / 1.552 GB, free: 37.07 MB / 0.5417 GB 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: junctionVolume.medium.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=200): time 0.03353/4.716, allocations: 9.682 MB / 1.562 GB, free: 35.9 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.709e-05/4.716, allocations: 365.3 kB / 1.562 GB, free: 35.49 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00261/4.718, allocations: 1.464 MB / 1.563 GB, free: 35.27 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0004297/4.719, allocations: 64.2 kB / 1.564 GB, free: 35.23 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008016/4.72, allocations: 0.9215 MB / 1.564 GB, free: 34.98 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007155/4.72, allocations: 0.6695 MB / 1.565 GB, free: 34.56 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002391/4.721, allocations: 48.09 kB / 1.565 GB, free: 34.56 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001419/4.721, allocations: 391.5 kB / 1.566 GB, free: 34.26 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002188/4.723, allocations: 1.05 MB / 1.567 GB, free: 34.25 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002585/4.726, allocations: 1.525 MB / 1.568 GB, free: 33.79 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002713/4.728, allocations: 1.333 MB / 1.569 GB, free: 33.7 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.195e-05/4.728, allocations: 6.406 kB / 1.569 GB, free: 33.7 MB / 0.5417 GB Notification: Performance of matching and sorting (n=282) (initialization): time 0.007622/4.736, allocations: 3.289 MB / 1.573 GB, free: 33.4 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008731/4.737, allocations: 4.332 MB / 1.577 GB, free: 28.89 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.506e-05/4.737, allocations: 14.98 kB / 1.577 GB, free: 28.89 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009834/4.738, allocations: 295.6 kB / 1.577 GB, free: 28.85 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00375/4.742, allocations: 0.5689 MB / 1.578 GB, free: 28.85 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001969/4.744, allocations: 2.996 MB / 1.581 GB, free: 26.26 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003524/4.747, allocations: 230.5 kB / 1.581 GB, free: 26.24 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000575/4.748, allocations: 212.6 kB / 1.581 GB, free: 26.24 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.314e-05/4.748, allocations: 3.969 kB / 1.581 GB, free: 26.24 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00729/4.755, allocations: 3.008 MB / 1.584 GB, free: 26.09 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.402e-05/4.755, allocations: 9.219 kB / 1.584 GB, free: 26.09 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009504/4.756, allocations: 303.3 kB / 1.584 GB, free: 26.05 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003315/4.76, allocations: 0.5605 MB / 1.585 GB, free: 26.05 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003319/4.763, allocations: 2.991 MB / 1.588 GB, free: 39.46 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003516/4.766, allocations: 224.4 kB / 1.588 GB, free: 39.45 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005286/4.767, allocations: 205.8 kB / 1.588 GB, free: 39.44 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * 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 (261): * Single equations (assignments): 254 * 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.0008479/4.768, allocations: 310 kB / 1.588 GB, free: 39.27 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005855/4.768, allocations: 226.5 kB / 1.589 GB, free: 39.15 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01182/4.78, allocations: 4.785 MB / 1.593 GB, free: 38.86 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.317e-05/4.78, allocations: 21.5 kB / 1.593 GB, free: 38.86 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.161e-05/4.78, allocations: 0 / 1.593 GB, free: 38.86 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005912/4.786, allocations: 2.985 MB / 1.596 GB, free: 38.27 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01622/4.803, allocations: 7.223 MB / 1.603 GB, free: 36.85 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.746e-05/4.803, allocations: 6.375 kB / 1.603 GB, free: 36.85 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00286/4.806, allocations: 472.5 kB / 1.604 GB, free: 36.85 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001136/4.807, allocations: 315.8 kB / 1.604 GB, free: 36.81 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003694/4.807, allocations: 114.5 kB / 1.604 GB, free: 36.81 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003575/4.811, allocations: 3.754 MB / 1.608 GB, free: 33.48 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.005e-05/4.811, allocations: 11.78 kB / 1.608 GB, free: 33.48 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009646/4.82, allocations: 5.048 MB / 1.613 GB, free: 32.17 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001768/4.822, allocations: 0.5633 MB / 1.613 GB, free: 31.95 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006447/4.823, allocations: 58.25 kB / 1.613 GB, free: 31.95 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002091/4.825, allocations: 142.6 kB / 1.613 GB, free: 31.94 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003928/4.825, allocations: 191 kB / 1.614 GB, free: 31.93 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003921/4.826, allocations: 190.3 kB / 1.614 GB, free: 31.93 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.001965/4.828, allocations: 1.119 MB / 1.615 GB, free: 31.77 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.007e-06/4.828, allocations: 0 / 1.615 GB, free: 31.77 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.006547/4.834, allocations: 1.906 MB / 1.617 GB, free: 31.63 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * 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: 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 (206): * Single equations (assignments): 199 * 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.00553/4.84, allocations: 2.295 MB / 1.619 GB, free: 31.1 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.009623/4.85, allocations: 4.532 MB / 1.623 GB, free: 30.8 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.356e-05/4.85, allocations: 3.719 kB / 1.623 GB, free: 30.8 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.003452/4.853, allocations: 1.609 MB / 1.625 GB, free: 30.57 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006705/4.86, allocations: 1.123 MB / 1.626 GB, free: 30.55 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009787/4.87, allocations: 4.333 MB / 1.63 GB, free: 29.54 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002179/4.872, allocations: 1.768 MB / 1.632 GB, free: 28.8 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.01852/4.89, allocations: 3.309 MB / 1.635 GB, free: 28.73 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003394/4.894, allocations: 347.7 kB / 1.636 GB, free: 28.72 MB / 0.5573 GB Notification: Performance of SimCode: time 2.504e-06/4.894, allocations: 0 / 1.636 GB, free: 28.72 MB / 0.5573 GB Notification: Performance of Templates: time 0.2242/5.118, allocations: 85.2 MB / 1.719 GB, free: 12.07 MB / 0.573 GB