Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe2.mediums.1..h|pipe2.mediums.1..p|pipe3.mediums.1..h|pipe3.mediums.1..p|valve1.filter.x.1.|valve1.filter.x.2.|valve2.filter.x.1.|valve2.filter.x.2.|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1") Notification: Performance of loadModel(ModelicaTest): time 1.982/1.982, allocations: 209.3 MB / 223.8 MB, free: 444 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.784e-05/2.779e-05, allocations: 0 / 276.2 MB, free: 15.2 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3761/0.3762, allocations: 48.69 MB / 324.9 MB, free: 3.371 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1): time 0.1295/0.5058, allocations: 74.96 MB / 399.8 MB, free: 4.395 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.0658/0.5716, allocations: 29.57 MB / 429.4 MB, free: 6.77 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005956/0.5777, allocations: 99.19 kB / 429.5 MB, free: 6.672 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006131/0.5839, allocations: 1.077 MB / 430.6 MB, free: 5.59 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02124/0.6052, allocations: 5.133 MB / 435.7 MB, free: 452 kB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02514/0.6304, allocations: 6.488 MB / 442.2 MB, free: 9.949 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.008295/0.6387, allocations: 2.986 MB / 445.2 MB, free: 6.957 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002651/0.6414, allocations: 1.036 MB / 446.2 MB, free: 5.918 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.04896/0.6904, allocations: 17.92 MB / 464.1 MB, free: 3.984 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.04846/0.7389, allocations: 18.1 MB / 482.2 MB, free: 1.871 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.3535/1.092, allocations: 9.27 MB / 491.5 MB, free: 44.68 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.005585/1.098, allocations: 0.5727 MB / 492.1 MB, free: 44.68 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002036/1.1, allocations: 0.7491 MB / 492.8 MB, free: 44.68 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002178/1.102, allocations: 273 kB / 493.1 MB, free: 44.68 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0165/1.119, allocations: 6.193 MB / 499.3 MB, free: 44.28 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.323e-06/1.119, allocations: 0 / 499.3 MB, free: 44.28 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.897e-06/1.119, allocations: 6.672 kB / 499.3 MB, free: 44.28 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000171/1.119, allocations: 0 / 499.3 MB, free: 44.28 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 514 * Number of variables: 514 Notification: Performance of Generate backend data structure: time 0.01584/1.135, allocations: 3.44 MB / 0.491 GB, free: 42.71 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.911e-05/1.135, allocations: 8.344 kB / 0.491 GB, free: 42.71 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008988/1.144, allocations: 0.7947 MB / 0.4917 GB, free: 42.57 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004482/1.149, allocations: 1.555 MB / 0.4933 GB, free: 42.17 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002634/1.149, allocations: 174.1 kB / 0.4934 GB, free: 42.17 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007092/1.15, allocations: 195.2 kB / 0.4936 GB, free: 42.16 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01189/1.162, allocations: 3.574 MB / 0.4971 GB, free: 41.75 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.488e-05/1.162, allocations: 9.75 kB / 0.4971 GB, free: 41.75 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003801/1.162, allocations: 82 kB / 0.4972 GB, free: 41.75 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004167/1.163, allocations: 203 kB / 0.4974 GB, free: 41.74 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01381/1.177, allocations: 3.492 MB / 0.5008 GB, free: 41.73 MB / 410.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.0304/1.207, allocations: 14.59 MB / 0.515 GB, free: 33.05 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008102/1.215, allocations: 2.192 MB / 0.5172 GB, free: 32.6 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0613/1.277, allocations: 19.08 MB / 0.5358 GB, free: 12.02 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00625/1.283, allocations: 1.637 MB / 0.5374 GB, free: 10.75 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0014/1.284, allocations: 174.4 kB / 0.5376 GB, free: 10.6 MB / 410.7 MB Notification: Performance of pre-optimization done (n=158): time 5.932e-06/1.284, allocations: 0 / 0.5376 GB, free: 10.6 MB / 410.7 MB Notification: Performance of matching and sorting (n=170): time 0.04068/1.325, allocations: 9.054 MB / 0.5464 GB, free: 3.531 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001209/1.325, allocations: 341 kB / 0.5468 GB, free: 3.129 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00276/1.328, allocations: 1.439 MB / 0.5482 GB, free: 2.047 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005024/1.328, allocations: 59.83 kB / 0.5482 GB, free: 2.004 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009237/1.329, allocations: 1.015 MB / 0.5492 GB, free: 1.355 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008129/1.33, allocations: 0.5699 MB / 0.5498 GB, free: 0.8672 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002217/1.33, allocations: 50.06 kB / 0.5498 GB, free: 0.8516 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001404/1.331, allocations: 385.7 kB / 0.5502 GB, free: 0.5 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003548/1.334, allocations: 1.129 MB / 0.5513 GB, free: 15.73 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004462/1.339, allocations: 1.64 MB / 0.5529 GB, free: 14.29 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004425/1.343, allocations: 1.394 MB / 0.5542 GB, free: 13.38 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.432e-05/1.343, allocations: 4 kB / 0.5542 GB, free: 13.37 MB / 426.7 MB Notification: Performance of matching and sorting (n=268) (initialization): time 0.01437/1.358, allocations: 3.493 MB / 0.5577 GB, free: 10.92 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002724/1.36, allocations: 5.563 MB / 0.5631 GB, free: 4.98 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.457e-05/1.361, allocations: 19.98 kB / 0.5631 GB, free: 4.961 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008687/1.369, allocations: 0.9605 MB / 0.564 GB, free: 4.105 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004058/1.373, allocations: 490.7 kB / 0.5645 GB, free: 3.672 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004488/1.378, allocations: 3.149 MB / 0.5676 GB, free: 0.8125 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00393/1.382, allocations: 237.1 kB / 0.5678 GB, free: 0.6133 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007371/1.383, allocations: 104.3 kB / 0.5679 GB, free: 0.5312 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.908e-05/1.383, allocations: 4 kB / 0.5679 GB, free: 0.5273 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01201/1.395, allocations: 3.205 MB / 0.5711 GB, free: 14.33 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.102e-05/1.395, allocations: 16 kB / 0.5711 GB, free: 14.31 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00218/1.397, allocations: 371.6 kB / 0.5714 GB, free: 14.01 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004433/1.402, allocations: 0.5065 MB / 0.5719 GB, free: 13.55 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007047/1.409, allocations: 4.138 MB / 0.576 GB, free: 9.758 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004069/1.413, allocations: 229.2 kB / 0.5762 GB, free: 9.566 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005055/1.413, allocations: 106.5 kB / 0.5763 GB, free: 9.48 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * Number of states: 0 () * Number of discrete variables: 27 (pipe3.state_a.phase,pipe2.state_a.phase,pipe1.state_b.phase,pipe1.state_a.phase,valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.state_a.phase,$whenCondition1,$whenCondition2,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,pipe3.state_b.phase,pipe2.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (232): * Single equations (assignments): 222 * Array equations: 2 * Algorithm blocks: 2 * Record equations: 2 * 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,3 19} Notification: Performance of prepare postOptimizeDAE: time 0.002035/1.416, allocations: 0.6932 MB / 0.577 GB, free: 9.004 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006509/1.416, allocations: 205.5 kB / 0.5771 GB, free: 8.801 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01777/1.434, allocations: 7.819 MB / 0.5848 GB, free: 3.535 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001262/1.434, allocations: 89.94 kB / 0.5849 GB, free: 3.469 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.143e-06/1.434, allocations: 0 / 0.5849 GB, free: 3.469 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01584/1.45, allocations: 6.845 MB / 0.5916 GB, free: 14.78 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02617/1.476, allocations: 10.77 MB / 0.6021 GB, free: 7.75 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-05/1.476, allocations: 0 / 0.6021 GB, free: 7.75 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002978/1.479, allocations: 338.9 kB / 0.6024 GB, free: 7.441 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008138/1.487, allocations: 2.106 MB / 0.6045 GB, free: 5.598 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005695/1.488, allocations: 61.41 kB / 0.6045 GB, free: 5.566 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005781/1.494, allocations: 4.095 MB / 0.6085 GB, free: 2.199 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.492e-06/1.494, allocations: 3.953 kB / 0.6085 GB, free: 2.195 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01971/1.514, allocations: 7.866 MB / 0.6162 GB, free: 12.35 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002494/1.516, allocations: 0.7184 MB / 0.6169 GB, free: 11.61 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001271/1.518, allocations: 51.94 kB / 0.6169 GB, free: 11.56 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003766/1.521, allocations: 191.6 kB / 0.6171 GB, free: 11.37 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007691/1.522, allocations: 137.8 kB / 0.6173 GB, free: 11.23 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003105/1.523, allocations: 59.98 kB / 0.6173 GB, free: 11.18 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.003569/1.526, allocations: 1.205 MB / 0.6185 GB, free: 9.953 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.032e-06/1.526, allocations: 0 / 0.6185 GB, free: 9.953 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01086/1.537, allocations: 2.447 MB / 0.6209 GB, free: 7.508 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (pipe1.mediums[1].p,pipe1.mediums[1].h,valve1.filter.x[1],valve1.filter.x[2],valve2.filter.x[1],valve2.filter.x[2],pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 53 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse21.phase,$cse21.region,$cse23.region3boundary,$cse24.region3boundary,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse29.phase,$cse29.region,$cse30.region3boundary,$cse31.region3boundary,$cse32.phase,$cse32.region,$cse34.phase,$cse34.region,$cse35.phase,$cse35.region,$cse37.phase,$cse37.region,$cse42.phase,$cse42.region,$whenCondition1,$whenCondition2,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,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 (168): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 19 * 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,3 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.01214/1.549, allocations: 1.964 MB / 0.6228 GB, free: 5.711 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01833/1.568, allocations: 5.546 MB / 0.6282 GB, free: 164 kB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.105e-06/1.568, allocations: 0 / 0.6282 GB, free: 164 kB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006717/1.574, allocations: 2.408 MB / 0.6306 GB, free: 13.76 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008225/1.583, allocations: 0.8691 MB / 0.6314 GB, free: 12.89 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02163/1.604, allocations: 8.69 MB / 0.6399 GB, free: 4.277 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004175/1.609, allocations: 2.299 MB / 0.6421 GB, free: 1.945 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.008416/1.617, allocations: 2.38 MB / 0.6445 GB, free: 15.57 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009136/1.618, allocations: 155.3 kB / 0.6446 GB, free: 15.43 MB / 0.4948 GB Notification: Performance of SimCode: time 1.152e-06/1.618, allocations: 2.625 kB / 0.6446 GB, free: 15.43 MB / 0.4948 GB Notification: Performance of Templates: time 0.466/2.084, allocations: 77.38 MB / 0.7202 GB, free: 176.3 MB / 0.4948 GB