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.822/1.822, allocations: 209.3 MB / 221.5 MB, free: 7.727 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.927e-05/2.913e-05, allocations: 4 kB / 273.1 MB, free: 3.164 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08358/0.08363, allocations: 48.69 MB / 321.8 MB, free: 2.375 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.67/1.754, allocations: 0.6811 GB / 0.9953 GB, free: 7.453 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002137/1.754, allocations: 75.97 kB / 0.9954 GB, free: 7.379 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.122/4.877, allocations: 0.6138 GB / 1.609 GB, free: 34.14 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.044e-06/4.877, allocations: 0 / 1.609 GB, free: 34.14 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002566/4.877, allocations: 72.34 kB / 1.609 GB, free: 34.12 MB / 458.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.009374/4.886, allocations: 3.161 MB / 1.612 GB, free: 32.49 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.221e-05/4.886, allocations: 8.5 kB / 1.612 GB, free: 32.49 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004372/4.891, allocations: 461.5 kB / 1.613 GB, free: 32.36 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01154/4.902, allocations: 1.984 MB / 1.615 GB, free: 31.86 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003687/4.903, allocations: 139 kB / 1.615 GB, free: 31.86 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001319/4.904, allocations: 180.3 kB / 1.615 GB, free: 31.86 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009376/4.914, allocations: 2.661 MB / 1.618 GB, free: 31.39 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.312e-05/4.914, allocations: 7.406 kB / 1.618 GB, free: 31.38 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000355/4.914, allocations: 79.91 kB / 1.618 GB, free: 31.38 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002309/4.914, allocations: 159.3 kB / 1.618 GB, free: 31.38 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005249/4.92, allocations: 2.221 MB / 1.62 GB, free: 31.35 MB / 458.7 MB 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.01957/4.939, allocations: 11.52 MB / 1.631 GB, free: 25.04 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003688/4.943, allocations: 1.81 MB / 1.633 GB, free: 24.71 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002189/4.945, allocations: 1.072 MB / 1.634 GB, free: 24.7 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001079/4.946, allocations: 460.2 kB / 1.635 GB, free: 24.41 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002263/4.948, allocations: 1.182 MB / 1.636 GB, free: 23.95 MB / 458.7 MB Notification: Performance of pre-optimization done (n=168): time 5.678e-06/4.948, allocations: 0 / 1.636 GB, free: 23.95 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: junctionVolume.medium.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=196): time 0.03494/4.983, allocations: 9.542 MB / 1.645 GB, free: 20.73 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.267e-05/4.984, allocations: 258.2 kB / 1.645 GB, free: 20.45 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0025/4.986, allocations: 1.384 MB / 1.647 GB, free: 19.93 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004803/4.987, allocations: 64.36 kB / 1.647 GB, free: 19.87 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007295/4.987, allocations: 0.921 MB / 1.648 GB, free: 19.15 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006254/4.988, allocations: 0.6648 MB / 1.648 GB, free: 18.64 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00022/4.988, allocations: 39.81 kB / 1.648 GB, free: 18.61 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001418/4.988, allocations: 399.4 kB / 1.649 GB, free: 18.26 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002155/4.991, allocations: 1.025 MB / 1.65 GB, free: 17.9 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002529/4.993, allocations: 1.498 MB / 1.651 GB, free: 16.45 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002396/4.995, allocations: 1.325 MB / 1.652 GB, free: 15.3 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.103e-05/4.996, allocations: 4 kB / 1.652 GB, free: 15.3 MB / 458.7 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.006636/5.002, allocations: 3.22 MB / 1.656 GB, free: 12.41 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008981/5.003, allocations: 4.844 MB / 1.66 GB, free: 7.152 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.186e-05/5.003, allocations: 12 kB / 1.66 GB, free: 7.141 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009199/5.004, allocations: 298 kB / 1.661 GB, free: 6.879 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003084/5.007, allocations: 0.5715 MB / 1.661 GB, free: 6.398 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001827/5.009, allocations: 3.001 MB / 1.664 GB, free: 3.359 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002996/5.012, allocations: 220.5 kB / 1.664 GB, free: 3.184 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004281/5.012, allocations: 207.9 kB / 1.665 GB, free: 2.996 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.345e-05/5.012, allocations: 10.28 kB / 1.665 GB, free: 2.988 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00608/5.019, allocations: 2.944 MB / 1.667 GB, free: 376 kB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.152e-05/5.019, allocations: 12 kB / 1.667 GB, free: 364 kB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008552/5.019, allocations: 298.6 kB / 1.668 GB, free: 100 kB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003459/5.023, allocations: 0.5758 MB / 1.668 GB, free: 15.64 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00295/5.026, allocations: 2.999 MB / 1.671 GB, free: 12.61 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003147/5.029, allocations: 214.3 kB / 1.671 GB, free: 12.44 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000501/5.03, allocations: 202.7 kB / 1.672 GB, free: 12.25 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * 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 (265): * Single equations (assignments): 258 * 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.0008826/5.031, allocations: 309.6 kB / 1.672 GB, free: 11.94 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005663/5.031, allocations: 213.4 kB / 1.672 GB, free: 11.73 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01388/5.045, allocations: 3.745 MB / 1.676 GB, free: 8.547 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.545e-05/5.045, allocations: 28 kB / 1.676 GB, free: 8.52 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.52e-05/5.045, allocations: 0 / 1.676 GB, free: 8.52 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.011/5.056, allocations: 2.899 MB / 1.679 GB, free: 5.832 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3671/5.423, allocations: 6.974 MB / 1.685 GB, free: 47.21 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.769e-05/5.423, allocations: 9.75 kB / 1.685 GB, free: 47.21 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002986/5.426, allocations: 460.4 kB / 1.686 GB, free: 47.21 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00124/5.428, allocations: 321.9 kB / 1.686 GB, free: 47.17 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003148/5.428, allocations: 114.5 kB / 1.686 GB, free: 47.17 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002547/5.431, allocations: 3.736 MB / 1.69 GB, free: 43.87 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.344e-06/5.431, allocations: 9.312 kB / 1.69 GB, free: 43.87 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01012/5.441, allocations: 4.879 MB / 1.695 GB, free: 42.86 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001758/5.443, allocations: 0.5424 MB / 1.695 GB, free: 42.76 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005763/5.443, allocations: 64.42 kB / 1.695 GB, free: 42.76 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002176/5.445, allocations: 135.8 kB / 1.695 GB, free: 42.76 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004528/5.446, allocations: 184.3 kB / 1.696 GB, free: 42.75 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004604/5.446, allocations: 184.6 kB / 1.696 GB, free: 42.75 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002134/5.448, allocations: 1.042 MB / 1.697 GB, free: 42.63 MB / 474.7 MB Notification: Performance of sort global known variables: time 8.66e-07/5.448, allocations: 0 / 1.697 GB, free: 42.63 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.009386/5.458, allocations: 2.053 MB / 1.699 GB, free: 42.63 MB / 474.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.01059/5.469, allocations: 2.601 MB / 1.701 GB, free: 42.3 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01544/5.484, allocations: 4.407 MB / 1.706 GB, free: 41.99 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-05/5.484, allocations: 9.406 kB / 1.706 GB, free: 41.99 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005348/5.489, allocations: 1.559 MB / 1.707 GB, free: 41.77 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01014/5.5, allocations: 1.05 MB / 1.708 GB, free: 41.75 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02686/5.527, allocations: 5.685 MB / 1.714 GB, free: 40.79 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002993/5.53, allocations: 1.761 MB / 1.715 GB, free: 40.05 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.01079/5.54, allocations: 1.58 MB / 1.717 GB, free: 40.02 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001617/5.542, allocations: 302.9 kB / 1.717 GB, free: 40.02 MB / 474.7 MB Notification: Performance of SimCode: time 2.088e-06/5.542, allocations: 0 / 1.717 GB, free: 40.02 MB / 474.7 MB Notification: Performance of Templates: time 0.1586/5.701, allocations: 84.91 MB / 1.8 GB, free: 32 MB / 474.7 MB