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.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1") Notification: Performance of loadModel(ModelicaTest): time 2.325/2.325, allocations: 234.9 MB / 249.4 MB, free: 9.789 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.095e-05/3.09e-05, allocations: 7.984 kB / 308 MB, free: 15.12 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3653/0.3653, allocations: 54.86 MB / 362.9 MB, free: 11.72 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1): time 0.127/0.4923, allocations: 75.56 MB / 438.4 MB, free: 15.97 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0625/0.5549, allocations: 29.74 MB / 468.2 MB, free: 2.168 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003946/0.5589, allocations: 99.19 kB / 468.3 MB, free: 2.07 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004062/0.563, allocations: 1.073 MB / 469.4 MB, free: 0.9922 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02071/0.5838, allocations: 5.195 MB / 474.5 MB, free: 11.78 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0255/0.6093, allocations: 6.522 MB / 481.1 MB, free: 5.246 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.007799/0.6171, allocations: 3.048 MB / 484.1 MB, free: 2.195 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002301/0.6195, allocations: 1.047 MB / 485.2 MB, free: 1.148 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.407/1.027, allocations: 18.12 MB / 0.4915 GB, free: 9.605 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.04079/1.067, allocations: 18.29 MB / 0.5094 GB, free: 1.941 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03278/1.1, allocations: 9.748 MB / 0.5189 GB, free: 13.51 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004886/1.105, allocations: 0.5859 MB / 0.5194 GB, free: 12.93 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001873/1.107, allocations: 0.7466 MB / 0.5202 GB, free: 12.63 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001448/1.109, allocations: 272 kB / 0.5204 GB, free: 12.37 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01668/1.125, allocations: 6.256 MB / 0.5265 GB, free: 8.684 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/1.125, allocations: 0 / 0.5265 GB, free: 8.684 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.446e-06/1.125, allocations: 4 kB / 0.5265 GB, free: 8.68 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001274/1.125, allocations: 0 / 0.5265 GB, free: 8.68 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: 518 * Number of variables: 518 Notification: Performance of Generate backend data structure: time 0.01638/1.142, allocations: 3.522 MB / 0.53 GB, free: 5.355 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.772e-05/1.142, allocations: 9.234 kB / 0.53 GB, free: 5.348 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008392/1.15, allocations: 0.8219 MB / 0.5308 GB, free: 4.59 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005139/1.156, allocations: 1.559 MB / 0.5323 GB, free: 3.406 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002882/1.156, allocations: 171 kB / 0.5325 GB, free: 3.309 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007267/1.157, allocations: 205.1 kB / 0.5327 GB, free: 3.18 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01304/1.17, allocations: 3.585 MB / 0.5362 GB, free: 428 kB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.042e-05/1.17, allocations: 3 kB / 0.5362 GB, free: 428 kB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004186/1.17, allocations: 89.39 kB / 0.5363 GB, free: 404 kB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004694/1.171, allocations: 196.9 kB / 0.5365 GB, free: 228 kB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01436/1.185, allocations: 3.501 MB / 0.5399 GB, free: 13.76 MB / 442.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.03167/1.217, allocations: 14.63 MB / 0.5542 GB, free: 320 kB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009056/1.226, allocations: 2.182 MB / 0.5563 GB, free: 14.77 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06586/1.292, allocations: 19.11 MB / 0.575 GB, free: 9.785 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006803/1.299, allocations: 1.645 MB / 0.5766 GB, free: 8.508 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001331/1.3, allocations: 178.9 kB / 0.5767 GB, free: 8.355 MB / 474.7 MB Notification: Performance of pre-optimization done (n=162): time 4.649e-06/1.3, allocations: 0 / 0.5767 GB, free: 8.355 MB / 474.7 MB Notification: Performance of matching and sorting (n=174): time 0.04304/1.343, allocations: 9.116 MB / 0.5856 GB, free: 1.246 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002266/1.343, allocations: 347.4 kB / 0.586 GB, free: 0.8398 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003206/1.347, allocations: 1.436 MB / 0.5874 GB, free: 15.76 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004689/1.347, allocations: 60.83 kB / 0.5874 GB, free: 15.71 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001136/1.348, allocations: 1.019 MB / 0.5884 GB, free: 15.06 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008821/1.349, allocations: 0.5876 MB / 0.589 GB, free: 14.56 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002144/1.349, allocations: 43.5 kB / 0.589 GB, free: 14.55 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002146/1.35, allocations: 385.7 kB / 0.5894 GB, free: 14.2 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003562/1.353, allocations: 1.14 MB / 0.5905 GB, free: 13.43 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003939/1.357, allocations: 1.647 MB / 0.5921 GB, free: 11.98 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003955/1.361, allocations: 1.404 MB / 0.5935 GB, free: 11.07 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.438e-05/1.361, allocations: 7.953 kB / 0.5935 GB, free: 11.06 MB / 490.7 MB Notification: Performance of matching and sorting (n=272) (initialization): time 0.01066/1.372, allocations: 3.495 MB / 0.5969 GB, free: 8.605 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002489/1.374, allocations: 5.562 MB / 0.6024 GB, free: 2.668 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.74e-05/1.374, allocations: 12 kB / 0.6024 GB, free: 2.656 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008384/1.383, allocations: 0.972 MB / 0.6033 GB, free: 1.797 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003872/1.387, allocations: 493.5 kB / 0.6038 GB, free: 1.363 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004289/1.391, allocations: 3.146 MB / 0.6069 GB, free: 14.51 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003503/1.395, allocations: 231.5 kB / 0.6071 GB, free: 14.31 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003168/1.395, allocations: 111.1 kB / 0.6072 GB, free: 14.22 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.501e-05/1.395, allocations: 4 kB / 0.6072 GB, free: 14.22 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01079/1.406, allocations: 3.189 MB / 0.6103 GB, free: 12.04 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.045e-05/1.406, allocations: 16 kB / 0.6103 GB, free: 12.03 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002078/1.408, allocations: 380 kB / 0.6107 GB, free: 11.72 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004174/1.412, allocations: 0.498 MB / 0.6112 GB, free: 11.27 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006424/1.419, allocations: 4.151 MB / 0.6152 GB, free: 7.461 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003783/1.423, allocations: 235.1 kB / 0.6154 GB, free: 7.262 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003918/1.423, allocations: 108.4 kB / 0.6155 GB, free: 7.176 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * Number of states: 0 () * Number of discrete variables: 29 (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,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,valveOpening2.nextEventScaled,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.002021/1.425, allocations: 0.6919 MB / 0.6162 GB, free: 6.699 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006798/1.426, allocations: 209.5 kB / 0.6164 GB, free: 6.492 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01739/1.443, allocations: 7.812 MB / 0.624 GB, free: 1.242 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001168/1.443, allocations: 84.3 kB / 0.6241 GB, free: 1.18 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.603e-06/1.443, allocations: 4 kB / 0.6241 GB, free: 1.176 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01464/1.458, allocations: 6.851 MB / 0.6308 GB, free: 12.49 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0246/1.483, allocations: 10.8 MB / 0.6414 GB, free: 5.113 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.686e-05/1.483, allocations: 0 / 0.6414 GB, free: 5.113 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002972/1.486, allocations: 346.2 kB / 0.6417 GB, free: 4.789 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008235/1.494, allocations: 2.149 MB / 0.6438 GB, free: 2.633 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005234/1.494, allocations: 59.97 kB / 0.6439 GB, free: 2.574 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005596/1.5, allocations: 4.084 MB / 0.6478 GB, free: 14.41 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/1.5, allocations: 384 / 0.6478 GB, free: 14.41 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01869/1.519, allocations: 7.879 MB / 0.6555 GB, free: 6.395 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002268/1.521, allocations: 0.7302 MB / 0.6562 GB, free: 5.641 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007734/1.522, allocations: 51.98 kB / 0.6563 GB, free: 5.59 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002808/1.525, allocations: 191.6 kB / 0.6565 GB, free: 5.402 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004438/1.525, allocations: 141.8 kB / 0.6566 GB, free: 5.262 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000235/1.526, allocations: 63.97 kB / 0.6567 GB, free: 5.199 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002768/1.528, allocations: 1.201 MB / 0.6578 GB, free: 3.98 MB / 0.5261 GB Notification: Performance of sort global known variables: time 7.62e-07/1.528, allocations: 0 / 0.6578 GB, free: 3.98 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.009814/1.538, allocations: 2.46 MB / 0.6603 GB, free: 1.52 MB / 0.5261 GB 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: 55 ($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,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 (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.01079/1.549, allocations: 1.969 MB / 0.6622 GB, free: 15.71 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01713/1.566, allocations: 5.656 MB / 0.6677 GB, free: 10.06 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.171e-05/1.566, allocations: 4 kB / 0.6677 GB, free: 10.05 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.006778/1.573, allocations: 2.457 MB / 0.6701 GB, free: 7.605 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007994/1.581, allocations: 0.8856 MB / 0.671 GB, free: 6.727 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3564/1.938, allocations: 8.718 MB / 0.6795 GB, free: 235.7 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004009/1.942, allocations: 2.303 MB / 0.6817 GB, free: 234.9 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.009679/1.951, allocations: 2.388 MB / 0.6841 GB, free: 234.9 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001112/1.953, allocations: 157.1 kB / 0.6842 GB, free: 234.9 MB / 0.5417 GB Notification: Performance of SimCode: time 1.653e-06/1.953, allocations: 0 / 0.6842 GB, free: 234.9 MB / 0.5417 GB Notification: Performance of Templates: time 0.1668/2.119, allocations: 77.92 MB / 0.7603 GB, free: 171.9 MB / 0.5417 GB