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.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16") Notification: Performance of loadModel(ModelicaTest): time 1.899/1.899, allocations: 209.3 MB / 223.8 MB, free: 444 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.982e-05/2.983e-05, allocations: 4 kB / 276.2 MB, free: 15.21 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3434/0.3435, allocations: 48.71 MB / 324.9 MB, free: 3.352 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16): time 0.611/0.9545, allocations: 174.9 MB / 499.8 MB, free: 3.465 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.04166/0.9962, allocations: 20.35 MB / 0.5079 GB, free: 3.152 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003576/0.9999, allocations: 107.4 kB / 0.508 GB, free: 3.152 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003671/1.004, allocations: 0.8985 MB / 0.5089 GB, free: 3.141 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01275/1.016, allocations: 3.137 MB / 0.512 GB, free: 3.047 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01744/1.034, allocations: 4.738 MB / 0.5166 GB, free: 2.547 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.00723/1.041, allocations: 2.862 MB / 0.5194 GB, free: 2.039 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002258/1.043, allocations: 1.038 MB / 0.5204 GB, free: 1.629 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005308/1.049, allocations: 1.72 MB / 0.5221 GB, free: 1.383 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004707/1.054, allocations: 1.499 MB / 0.5236 GB, free: 1.035 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0111/1.065, allocations: 3.142 MB / 0.5266 GB, free: 412 kB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002247/1.067, allocations: 250.1 kB / 0.5269 GB, free: 412 kB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001681/1.069, allocations: 0.7245 MB / 0.5276 GB, free: 204 kB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001246/1.07, allocations: 241.9 kB / 0.5278 GB, free: 204 kB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009568/1.08, allocations: 3.77 MB / 0.5315 GB, free: 14.49 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/1.08, allocations: 4 kB / 0.5315 GB, free: 14.48 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.765e-06/1.08, allocations: 0 / 0.5315 GB, free: 14.48 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001104/1.08, allocations: 0 / 0.5315 GB, free: 14.48 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: 423 * Number of variables: 423 Notification: Performance of Generate backend data structure: time 0.009661/1.089, allocations: 2.656 MB / 0.5341 GB, free: 12.82 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.261e-05/1.09, allocations: 12.44 kB / 0.5341 GB, free: 12.82 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00416/1.094, allocations: 427.4 kB / 0.5345 GB, free: 12.64 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004637/1.098, allocations: 1.426 MB / 0.5359 GB, free: 11.95 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000184/1.099, allocations: 128.9 kB / 0.536 GB, free: 11.94 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006095/1.099, allocations: 160.5 kB / 0.5362 GB, free: 11.94 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006656/1.106, allocations: 2.504 MB / 0.5386 GB, free: 11.14 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.214e-05/1.106, allocations: 2.531 kB / 0.5386 GB, free: 11.14 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003115/1.106, allocations: 69.86 kB / 0.5387 GB, free: 11.14 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004023/1.107, allocations: 191.8 kB / 0.5389 GB, free: 11.1 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006817/1.114, allocations: 2.212 MB / 0.541 GB, free: 10.74 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.02441/1.138, allocations: 10.69 MB / 0.5515 GB, free: 2.523 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005524/1.144, allocations: 1.789 MB / 0.5532 GB, free: 1.164 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00159/1.145, allocations: 451.7 kB / 0.5536 GB, free: 0.6992 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00363/1.149, allocations: 1.138 MB / 0.5548 GB, free: 15.85 MB / 442.7 MB Notification: Performance of pre-optimization done (n=158): time 7.554e-06/1.149, allocations: 8 kB / 0.5548 GB, free: 15.84 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 Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=181): time 0.05073/1.2, allocations: 10.81 MB / 0.5653 GB, free: 7.242 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001769/1.2, allocations: 183.3 kB / 0.5655 GB, free: 7.031 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004227/1.204, allocations: 1.307 MB / 0.5668 GB, free: 6.031 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007106/1.205, allocations: 58.64 kB / 0.5668 GB, free: 5.992 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001495/1.206, allocations: 0.8969 MB / 0.5677 GB, free: 5.438 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001424/1.208, allocations: 0.6164 MB / 0.5683 GB, free: 4.91 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003476/1.208, allocations: 39.19 kB / 0.5683 GB, free: 4.902 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003051/1.209, allocations: 393.2 kB / 0.5687 GB, free: 4.547 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004212/1.213, allocations: 1.008 MB / 0.5697 GB, free: 3.867 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005082/1.218, allocations: 1.493 MB / 0.5712 GB, free: 2.57 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005111/1.223, allocations: 1.292 MB / 0.5724 GB, free: 1.738 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.383e-05/1.223, allocations: 4 kB / 0.5724 GB, free: 1.734 MB / 442.7 MB Notification: Performance of matching and sorting (n=271) (initialization): time 0.01272/1.236, allocations: 3.11 MB / 0.5755 GB, free: 15.52 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.003292/1.239, allocations: 5.259 MB / 0.5806 GB, free: 9.867 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.438e-05/1.239, allocations: 12 kB / 0.5806 GB, free: 9.855 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001077/1.24, allocations: 195.2 kB / 0.5808 GB, free: 9.68 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006432/1.247, allocations: 0.5609 MB / 0.5813 GB, free: 9.164 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002932/1.25, allocations: 2.333 MB / 0.5836 GB, free: 6.82 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005103/1.255, allocations: 212.9 kB / 0.5838 GB, free: 6.645 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005965/1.256, allocations: 192.1 kB / 0.584 GB, free: 6.477 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.713e-05/1.256, allocations: 4 kB / 0.584 GB, free: 6.473 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00812/1.264, allocations: 2.864 MB / 0.5868 GB, free: 4.512 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.672e-05/1.264, allocations: 12 kB / 0.5868 GB, free: 4.5 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006548/1.265, allocations: 195.4 kB / 0.587 GB, free: 4.324 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004558/1.269, allocations: 0.5535 MB / 0.5875 GB, free: 3.816 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002274/1.271, allocations: 2.337 MB / 0.5898 GB, free: 1.473 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003829/1.275, allocations: 206.5 kB / 0.59 GB, free: 1.301 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006168/1.276, allocations: 183.1 kB / 0.5902 GB, free: 1.141 MB / 458.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: 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 (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.001808/1.278, allocations: 0.6173 MB / 0.5908 GB, free: 0.707 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000699/1.279, allocations: 201.5 kB / 0.591 GB, free: 0.5078 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01323/1.292, allocations: 3.499 MB / 0.5944 GB, free: 13.96 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.328e-05/1.292, allocations: 23.95 kB / 0.5944 GB, free: 13.94 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.014e-05/1.292, allocations: 0 / 0.5944 GB, free: 13.94 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007892/1.3, allocations: 2.723 MB / 0.5971 GB, free: 11.84 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01985/1.32, allocations: 6.762 MB / 0.6037 GB, free: 6.516 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.302e-05/1.32, allocations: 8 kB / 0.6037 GB, free: 6.508 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005862/1.326, allocations: 446.2 kB / 0.6041 GB, free: 6.109 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001202/1.327, allocations: 193.2 kB / 0.6043 GB, free: 5.93 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000669/1.328, allocations: 100.6 kB / 0.6044 GB, free: 5.863 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004118/1.332, allocations: 3.073 MB / 0.6074 GB, free: 2.727 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-05/1.332, allocations: 10.81 kB / 0.6074 GB, free: 2.719 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.018/1.35, allocations: 4.63 MB / 0.6119 GB, free: 15.03 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003058/1.353, allocations: 0.5235 MB / 0.6124 GB, free: 14.59 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001344/1.354, allocations: 57.88 kB / 0.6125 GB, free: 14.56 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004744/1.359, allocations: 120.4 kB / 0.6126 GB, free: 14.46 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009803/1.36, allocations: 174.1 kB / 0.6128 GB, free: 14.32 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007169/1.361, allocations: 168 kB / 0.6129 GB, free: 14.17 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002958/1.364, allocations: 0.9922 MB / 0.6139 GB, free: 13.44 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.002e-06/1.364, allocations: 0 / 0.6139 GB, free: 13.44 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.007448/1.372, allocations: 1.689 MB / 0.6156 GB, free: 11.88 MB / 490.7 MB 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: 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 (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.004966/1.377, allocations: 1.266 MB / 0.6168 GB, free: 10.76 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01222/1.389, allocations: 4.348 MB / 0.621 GB, free: 7.625 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.809e-05/1.389, allocations: 4 kB / 0.621 GB, free: 7.621 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003859/1.393, allocations: 1.501 MB / 0.6225 GB, free: 6.492 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007836/1.401, allocations: 0.9045 MB / 0.6234 GB, free: 5.746 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01345/1.414, allocations: 5.651 MB / 0.6289 GB, free: 0.5586 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001901/1.416, allocations: 1.716 MB / 0.6306 GB, free: 14.88 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.00997/1.426, allocations: 1.531 MB / 0.6321 GB, free: 13.35 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001875/1.428, allocations: 288.6 kB / 0.6324 GB, free: 13.08 MB / 0.4948 GB Notification: Performance of SimCode: time 1.262e-06/1.428, allocations: 0 / 0.6324 GB, free: 13.08 MB / 0.4948 GB Notification: Performance of Templates: time 0.4336/1.862, allocations: 57.81 MB / 0.6888 GB, free: 226.4 MB / 0.5105 GB