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_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16") Notification: Performance of loadModel(ModelicaTest): time 2.22/2.22, allocations: 270.1 MB / 283.6 MB, free: 3.09 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.58e-05/3.594e-05, allocations: 8 kB / 348.4 MB, free: 10.81 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1176/0.1177, allocations: 61.89 MB / 410.3 MB, free: 12.99 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.53/1.648, allocations: 0.5613 GB / 0.962 GB, free: 55.59 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002206/1.648, allocations: 75.41 kB / 0.9621 GB, free: 55.56 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.622/4.27, allocations: 0.5061 GB / 1.468 GB, free: 52 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.016e-06/4.27, allocations: 0 / 1.468 GB, free: 52 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0002312/4.271, allocations: 59.41 kB / 1.468 GB, free: 52 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: 427 * Number of variables: 427 Notification: Performance of Generate backend data structure: time 0.008911/4.279, allocations: 2.806 MB / 1.471 GB, free: 50.99 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.169e-05/4.28, allocations: 12.78 kB / 1.471 GB, free: 50.99 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004516/4.284, allocations: 446.2 kB / 1.471 GB, free: 50.87 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006091/4.29, allocations: 1.922 MB / 1.473 GB, free: 50.53 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001358/4.29, allocations: 124.6 kB / 1.473 GB, free: 50.52 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005005/4.291, allocations: 171.7 kB / 1.474 GB, free: 50.52 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00535/4.296, allocations: 2.581 MB / 1.476 GB, free: 50.1 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.897e-05/4.296, allocations: 7.625 kB / 1.476 GB, free: 50.1 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003613/4.297, allocations: 80.27 kB / 1.476 GB, free: 50.1 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002394/4.297, allocations: 152.8 kB / 1.476 GB, free: 50.09 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004757/4.302, allocations: 2.17 MB / 1.478 GB, free: 50.09 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.018/4.32, allocations: 11.02 MB / 1.489 GB, free: 44.27 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00352/4.323, allocations: 1.759 MB / 1.491 GB, free: 43.95 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001967/4.325, allocations: 1.054 MB / 1.492 GB, free: 43.94 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001013/4.326, allocations: 0.5062 MB / 1.492 GB, free: 43.46 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002295/4.329, allocations: 1.265 MB / 1.494 GB, free: 43.3 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=162): time 5.72e-06/4.329, allocations: 0 / 1.494 GB, free: 43.3 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 Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=185): time 0.02938/4.358, allocations: 8.699 MB / 1.502 GB, free: 42.11 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001003/4.358, allocations: 363.7 kB / 1.502 GB, free: 41.71 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002532/4.361, allocations: 1.4 MB / 1.504 GB, free: 41.53 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0004159/4.361, allocations: 61.3 kB / 1.504 GB, free: 41.5 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007774/4.362, allocations: 0.8734 MB / 1.505 GB, free: 41.2 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006792/4.363, allocations: 0.6188 MB / 1.505 GB, free: 40.8 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002417/4.363, allocations: 42.38 kB / 1.505 GB, free: 40.8 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.000138/4.363, allocations: 389 kB / 1.506 GB, free: 40.5 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002241/4.365, allocations: 1.001 MB / 1.507 GB, free: 40.49 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002564/4.368, allocations: 1.429 MB / 1.508 GB, free: 40.07 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002624/4.371, allocations: 1.263 MB / 1.509 GB, free: 39.99 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.08e-05/4.371, allocations: 3.562 kB / 1.509 GB, free: 39.99 MB / 0.5417 GB Notification: Performance of matching and sorting (n=260) (initialization): time 0.007015/4.378, allocations: 3.055 MB / 1.512 GB, free: 39.7 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007514/4.378, allocations: 3.772 MB / 1.516 GB, free: 35.77 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.167e-05/4.378, allocations: 8.844 kB / 1.516 GB, free: 35.77 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006041/4.379, allocations: 193 kB / 1.516 GB, free: 35.73 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003373/4.382, allocations: 0.5409 MB / 1.517 GB, free: 35.73 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00146/4.384, allocations: 2.327 MB / 1.519 GB, free: 33.66 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003467/4.387, allocations: 216 kB / 1.519 GB, free: 33.64 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005995/4.388, allocations: 195 kB / 1.519 GB, free: 33.64 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.369e-05/4.388, allocations: 7.188 kB / 1.519 GB, free: 33.64 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006371/4.394, allocations: 2.774 MB / 1.522 GB, free: 33.5 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.216e-05/4.394, allocations: 7.906 kB / 1.522 GB, free: 33.5 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005514/4.395, allocations: 197.8 kB / 1.522 GB, free: 33.47 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003276/4.398, allocations: 0.5284 MB / 1.523 GB, free: 33.47 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001439/4.4, allocations: 2.328 MB / 1.525 GB, free: 31.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003338/4.403, allocations: 208.7 kB / 1.525 GB, free: 31.39 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006309/4.404, allocations: 183.6 kB / 1.525 GB, free: 31.39 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * 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 (246): * Single equations (assignments): 240 * 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.0007826/4.405, allocations: 305.5 kB / 1.526 GB, free: 31.21 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005989/4.405, allocations: 218 kB / 1.526 GB, free: 31.1 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01122/4.416, allocations: 4.6 MB / 1.53 GB, free: 30.8 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.027e-05/4.417, allocations: 19.25 kB / 1.53 GB, free: 30.8 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.265e-05/4.417, allocations: 8.891 kB / 1.53 GB, free: 30.8 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005417/4.422, allocations: 2.736 MB / 1.533 GB, free: 30.22 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01501/4.437, allocations: 6.969 MB / 1.54 GB, free: 28.63 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-05/4.437, allocations: 6.906 kB / 1.54 GB, free: 28.63 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003162/4.44, allocations: 439.6 kB / 1.54 GB, free: 28.63 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009398/4.441, allocations: 190.3 kB / 1.541 GB, free: 28.59 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006171/4.442, allocations: 104 kB / 1.541 GB, free: 28.59 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00299/4.445, allocations: 3.062 MB / 1.544 GB, free: 25.79 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.329e-05/4.445, allocations: 12.19 kB / 1.544 GB, free: 25.79 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01229/4.457, allocations: 4.718 MB / 1.548 GB, free: 24.42 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001775/4.459, allocations: 0.5356 MB / 1.549 GB, free: 24.21 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007214/4.46, allocations: 60.83 kB / 1.549 GB, free: 24.21 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002046/4.462, allocations: 137.8 kB / 1.549 GB, free: 24.2 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003699/4.462, allocations: 175 kB / 1.549 GB, free: 24.2 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003623/4.463, allocations: 165 kB / 1.549 GB, free: 24.2 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.001991/4.465, allocations: 1.087 MB / 1.55 GB, free: 24.04 MB / 0.5417 GB Notification: Performance of sort global known variables: time 9.45e-07/4.465, allocations: 0 / 1.55 GB, free: 24.04 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.006429/4.471, allocations: 1.799 MB / 1.552 GB, free: 23.83 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 29 * 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: 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 (191): * Single equations (assignments): 185 * 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.00524/4.476, allocations: 2.152 MB / 1.554 GB, free: 23.32 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.008775/4.485, allocations: 4.257 MB / 1.558 GB, free: 23.02 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.086e-05/4.485, allocations: 0 / 1.558 GB, free: 23.02 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.002864/4.488, allocations: 1.481 MB / 1.56 GB, free: 22.79 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006169/4.494, allocations: 0.9864 MB / 1.561 GB, free: 22.75 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009043/4.503, allocations: 4.076 MB / 1.565 GB, free: 21.76 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001533/4.505, allocations: 1.728 MB / 1.566 GB, free: 21.01 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.01105/4.516, allocations: 3.227 MB / 1.57 GB, free: 20.95 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001948/4.518, allocations: 330.2 kB / 1.57 GB, free: 20.92 MB / 0.5417 GB Notification: Performance of SimCode: time 1.97e-06/4.518, allocations: 0 / 1.57 GB, free: 20.92 MB / 0.5417 GB Notification: Performance of Templates: time 0.1619/4.68, allocations: 77.85 MB / 1.646 GB, free: 10.77 MB / 0.573 GB