Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13") Notification: Performance of loadModel(ModelicaTest): time 1.889/1.889, allocations: 209.3 MB / 223.8 MB, free: 440 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.022e-05/3.025e-05, allocations: 4 kB / 276.2 MB, free: 15.2 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3466/0.3466, allocations: 48.7 MB / 324.9 MB, free: 3.359 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13): time 0.1316/0.4783, allocations: 80.54 MB / 405.4 MB, free: 14.78 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.06379/0.5422, allocations: 30.29 MB / 435.7 MB, free: 444 kB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004257/0.5465, allocations: 103.2 kB / 435.8 MB, free: 340 kB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005142/0.5517, allocations: 1.097 MB / 436.9 MB, free: 15.23 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03101/0.5827, allocations: 5.413 MB / 442.3 MB, free: 9.801 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.03252/0.6153, allocations: 6.333 MB / 448.7 MB, free: 3.465 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.01112/0.6265, allocations: 2.842 MB / 451.5 MB, free: 0.6172 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003082/0.6296, allocations: 0.9742 MB / 452.5 MB, free: 15.64 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006519/0.6362, allocations: 1.664 MB / 454.1 MB, free: 13.97 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.05363/0.6899, allocations: 18.02 MB / 472.1 MB, free: 11.95 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02854/0.7185, allocations: 9.349 MB / 481.5 MB, free: 2.586 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004339/0.7229, allocations: 0.5664 MB / 482.1 MB, free: 2.02 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001713/0.7247, allocations: 0.6778 MB / 482.7 MB, free: 1.34 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001068/0.7258, allocations: 252 kB / 483 MB, free: 1.094 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.332/1.058, allocations: 6.016 MB / 489 MB, free: 34.12 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/1.058, allocations: 3.609 kB / 489 MB, free: 34.12 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.036e-06/1.058, allocations: 0 / 489 MB, free: 34.12 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001153/1.058, allocations: 0.9688 kB / 489 MB, free: 34.12 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: 472 * Number of variables: 472 Notification: Performance of Generate backend data structure: time 0.0145/1.073, allocations: 3.178 MB / 492.2 MB, free: 32.61 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.365e-05/1.073, allocations: 9.625 kB / 492.2 MB, free: 32.61 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008524/1.081, allocations: 0.7505 MB / 492.9 MB, free: 32.48 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004936/1.086, allocations: 1.483 MB / 494.4 MB, free: 32.09 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002711/1.086, allocations: 165.2 kB / 494.6 MB, free: 32.08 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006801/1.087, allocations: 175.4 kB / 494.8 MB, free: 32.08 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01166/1.099, allocations: 3.181 MB / 497.9 MB, free: 31.73 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001097/1.099, allocations: 6.438 kB / 497.9 MB, free: 31.73 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003459/1.099, allocations: 78.41 kB / 498 MB, free: 31.73 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004148/1.1, allocations: 171.8 kB / 498.2 MB, free: 31.73 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01182/1.112, allocations: 2.996 MB / 0.4894 GB, free: 31.71 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.02609/1.138, allocations: 13.93 MB / 0.503 GB, free: 23.18 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007573/1.145, allocations: 2.019 MB / 0.505 GB, free: 23.12 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05951/1.205, allocations: 19.09 MB / 0.5237 GB, free: 10.64 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006237/1.211, allocations: 1.519 MB / 0.5251 GB, free: 10.52 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001679/1.213, allocations: 155.7 kB / 0.5253 GB, free: 10.45 MB / 410.7 MB Notification: Performance of pre-optimization done (n=142): time 5.69e-06/1.213, allocations: 0 / 0.5253 GB, free: 10.45 MB / 410.7 MB Notification: Performance of matching and sorting (n=154): time 0.03544/1.248, allocations: 8.103 MB / 0.5332 GB, free: 8.312 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.855e-05/1.249, allocations: 171.5 kB / 0.5334 GB, free: 8.109 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002716/1.251, allocations: 1.304 MB / 0.5346 GB, free: 7.117 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004743/1.252, allocations: 58.02 kB / 0.5347 GB, free: 7.078 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008614/1.253, allocations: 0.9249 MB / 0.5356 GB, free: 6.484 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008417/1.254, allocations: 0.5117 MB / 0.5361 GB, free: 6.047 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002172/1.254, allocations: 37.75 kB / 0.5361 GB, free: 6.039 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001552/1.254, allocations: 385.3 kB / 0.5365 GB, free: 5.684 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003216/1.257, allocations: 0.9956 MB / 0.5375 GB, free: 5.012 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00341/1.261, allocations: 1.429 MB / 0.5389 GB, free: 3.773 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003831/1.265, allocations: 1.234 MB / 0.5401 GB, free: 2.969 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.771e-05/1.265, allocations: 4 kB / 0.5401 GB, free: 2.965 MB / 410.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.0119/1.276, allocations: 3.205 MB / 0.5432 GB, free: 0.6797 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002044/1.279, allocations: 5.148 MB / 0.5482 GB, free: 11.13 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.454e-05/1.279, allocations: 12 kB / 0.5482 GB, free: 11.12 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005166/1.284, allocations: 0.5999 MB / 0.5488 GB, free: 10.59 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003821/1.288, allocations: 453.8 kB / 0.5493 GB, free: 10.2 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003424/1.291, allocations: 2.802 MB / 0.552 GB, free: 7.566 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003826/1.295, allocations: 238.2 kB / 0.5522 GB, free: 7.363 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003715/1.295, allocations: 93.72 kB / 0.5523 GB, free: 7.289 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.637e-05/1.296, allocations: 4.781 kB / 0.5523 GB, free: 7.285 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009655/1.305, allocations: 2.764 MB / 0.555 GB, free: 5.398 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.969e-05/1.305, allocations: 12 kB / 0.555 GB, free: 5.387 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001009/1.306, allocations: 205.5 kB / 0.5552 GB, free: 5.219 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003988/1.31, allocations: 475.4 kB / 0.5557 GB, free: 4.797 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001824/1.312, allocations: 1.882 MB / 0.5575 GB, free: 2.973 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003785/1.316, allocations: 231.7 kB / 0.5577 GB, free: 2.777 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004337/1.317, allocations: 97.47 kB / 0.5578 GB, free: 2.699 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 57 * Number of states: 0 () * Number of discrete variables: 27 (pipe3.state_a.phase,pipe2.state_a.phase,pipe1.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.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,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (214): * Single equations (assignments): 208 * 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,2 9} Notification: Performance of prepare postOptimizeDAE: time 0.001937/1.318, allocations: 0.6387 MB / 0.5585 GB, free: 2.246 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000666/1.319, allocations: 181.8 kB / 0.5586 GB, free: 2.066 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0171/1.336, allocations: 7.404 MB / 0.5659 GB, free: 13.1 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001152/1.336, allocations: 83.89 kB / 0.5659 GB, free: 13.04 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.19e-05/1.336, allocations: 0 / 0.5659 GB, free: 13.04 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01387/1.35, allocations: 6.503 MB / 0.5723 GB, free: 8.598 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02285/1.373, allocations: 10.2 MB / 0.5823 GB, free: 1.977 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.436e-05/1.373, allocations: 0 / 0.5823 GB, free: 1.977 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002783/1.376, allocations: 327.6 kB / 0.5826 GB, free: 1.68 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005118/1.381, allocations: 1.338 MB / 0.5839 GB, free: 0.5156 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004644/1.382, allocations: 56.59 kB / 0.5839 GB, free: 500 kB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00402/1.386, allocations: 3.448 MB / 0.5873 GB, free: 13.5 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/1.386, allocations: 1.312 kB / 0.5873 GB, free: 13.5 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0166/1.402, allocations: 7.127 MB / 0.5943 GB, free: 8.832 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002373/1.405, allocations: 0.685 MB / 0.5949 GB, free: 8.242 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009602/1.406, allocations: 43.81 kB / 0.595 GB, free: 8.227 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003411/1.409, allocations: 177.4 kB / 0.5951 GB, free: 8.074 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005756/1.41, allocations: 128.7 kB / 0.5953 GB, free: 7.969 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002349/1.41, allocations: 67.25 kB / 0.5953 GB, free: 7.914 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.00262/1.413, allocations: 1.108 MB / 0.5964 GB, free: 7.07 MB / 458.7 MB Notification: Performance of sort global known variables: time 9.02e-07/1.413, allocations: 0 / 0.5964 GB, free: 7.07 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01255/1.425, allocations: 2.437 MB / 0.5988 GB, free: 4.785 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 53 ($cse6.phase,$cse6.region,$cse8.region3boundary,$cse9.region3boundary,$cse10.phase,$cse10.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.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,$cse28.phase,$cse28.region,$cse29.region3boundary,$cse30.region3boundary,$cse31.phase,$cse31.region,$cse33.phase,$cse33.region,$cse34.phase,$cse34.region,$cse36.phase,$cse36.region,$cse41.phase,$cse41.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 (164): * Single equations (assignments): 138 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 20 * 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,2 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.01398/1.44, allocations: 2.066 MB / 0.6008 GB, free: 2.961 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01502/1.455, allocations: 4.844 MB / 0.6055 GB, free: 15.56 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.156e-05/1.455, allocations: 4 kB / 0.6055 GB, free: 15.56 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005783/1.46, allocations: 2.271 MB / 0.6078 GB, free: 14.13 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008139/1.469, allocations: 0.8908 MB / 0.6086 GB, free: 13.4 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01887/1.488, allocations: 8.212 MB / 0.6166 GB, free: 6.289 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002923/1.491, allocations: 2.173 MB / 0.6188 GB, free: 4.16 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.008782/1.499, allocations: 2.353 MB / 0.6211 GB, free: 1.82 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009577/1.5, allocations: 155.3 kB / 0.6212 GB, free: 1.684 MB / 474.7 MB Notification: Performance of SimCode: time 2.795e-06/1.5, allocations: 0 / 0.6212 GB, free: 1.684 MB / 474.7 MB Notification: Performance of Templates: time 0.4532/1.954, allocations: 73.61 MB / 0.6931 GB, free: 199.8 MB / 0.4948 GB