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.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13") Notification: Performance of loadModel(ModelicaTest): time 2.337/2.337, allocations: 234.9 MB / 249.4 MB, free: 10.01 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.966e-05/2.957e-05, allocations: 4 kB / 308 MB, free: 15.34 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4822/0.4822, allocations: 54.86 MB / 362.9 MB, free: 12.26 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13): time 0.1282/0.6105, allocations: 81.21 MB / 444.1 MB, free: 12.36 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.06909/0.6797, allocations: 30.44 MB / 474.5 MB, free: 13.85 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004155/0.6839, allocations: 103.2 kB / 474.6 MB, free: 13.75 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00429/0.6882, allocations: 1.1 MB / 475.7 MB, free: 12.64 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02156/0.7098, allocations: 5.487 MB / 481.2 MB, free: 7.137 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0238/0.7336, allocations: 6.373 MB / 487.6 MB, free: 0.7578 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.008669/0.7423, allocations: 2.888 MB / 490.5 MB, free: 13.87 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002382/0.7448, allocations: 0.9818 MB / 491.5 MB, free: 12.89 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00519/0.75, allocations: 1.679 MB / 493.1 MB, free: 11.2 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.4105/1.161, allocations: 18.2 MB / 0.4994 GB, free: 20.66 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02666/1.187, allocations: 9.505 MB / 0.5086 GB, free: 20.64 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.005011/1.192, allocations: 0.5825 MB / 0.5092 GB, free: 20.64 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001787/1.194, allocations: 0.6787 MB / 0.5099 GB, free: 20.63 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001355/1.196, allocations: 257.8 kB / 0.5101 GB, free: 20.63 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0168/1.212, allocations: 6.098 MB / 0.5161 GB, free: 20.23 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/1.212, allocations: 0 / 0.5161 GB, free: 20.23 MB / 426.7 MB Notification: Performance of FrontEnd: time 5.54e-06/1.212, allocations: 0 / 0.5161 GB, free: 20.23 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001429/1.213, allocations: 3.609 kB / 0.5161 GB, free: 20.23 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: 476 * Number of variables: 476 Notification: Performance of Generate backend data structure: time 0.01356/1.226, allocations: 3.249 MB / 0.5193 GB, free: 18.69 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.699e-05/1.226, allocations: 12.94 kB / 0.5193 GB, free: 18.69 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007836/1.234, allocations: 0.7748 MB / 0.52 GB, free: 18.56 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004407/1.239, allocations: 1.491 MB / 0.5215 GB, free: 18.15 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002419/1.239, allocations: 159.7 kB / 0.5216 GB, free: 18.15 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006354/1.24, allocations: 182.7 kB / 0.5218 GB, free: 18.14 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01085/1.25, allocations: 3.197 MB / 0.5249 GB, free: 17.77 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.721e-05/1.251, allocations: 6.5 kB / 0.5249 GB, free: 17.77 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003233/1.251, allocations: 79.33 kB / 0.525 GB, free: 17.77 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003528/1.251, allocations: 170.1 kB / 0.5252 GB, free: 17.77 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01173/1.263, allocations: 3.002 MB / 0.5281 GB, free: 17.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.02791/1.291, allocations: 13.95 MB / 0.5417 GB, free: 6.32 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007592/1.299, allocations: 2.014 MB / 0.5437 GB, free: 4.883 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06453/1.363, allocations: 19.11 MB / 0.5624 GB, free: 15.89 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00636/1.37, allocations: 1.532 MB / 0.5638 GB, free: 14.69 MB / 458.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00153/1.371, allocations: 171.4 kB / 0.564 GB, free: 14.55 MB / 458.7 MB Notification: Performance of pre-optimization done (n=146): time 4.588e-06/1.371, allocations: 0 / 0.564 GB, free: 14.55 MB / 458.7 MB Notification: Performance of matching and sorting (n=158): time 0.03547/1.407, allocations: 8.134 MB / 0.572 GB, free: 8.172 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001469/1.407, allocations: 175.5 kB / 0.5721 GB, free: 7.961 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003211/1.41, allocations: 1.314 MB / 0.5734 GB, free: 6.961 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005228/1.411, allocations: 52.2 kB / 0.5735 GB, free: 6.926 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001251/1.412, allocations: 0.9245 MB / 0.5744 GB, free: 6.324 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001103/1.413, allocations: 0.5338 MB / 0.5749 GB, free: 5.867 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000222/1.413, allocations: 37.88 kB / 0.5749 GB, free: 5.855 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002768/1.414, allocations: 382.6 kB / 0.5753 GB, free: 5.508 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003484/1.417, allocations: 0.9959 MB / 0.5763 GB, free: 4.836 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00396/1.421, allocations: 1.442 MB / 0.5777 GB, free: 3.594 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003886/1.425, allocations: 1.26 MB / 0.5789 GB, free: 2.77 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.634e-05/1.425, allocations: 4 kB / 0.5789 GB, free: 2.766 MB / 458.7 MB Notification: Performance of matching and sorting (n=239) (initialization): time 0.01198/1.437, allocations: 3.188 MB / 0.582 GB, free: 0.5 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002581/1.44, allocations: 5.152 MB / 0.587 GB, free: 10.95 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.677e-05/1.44, allocations: 12 kB / 0.5871 GB, free: 10.94 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005232/1.445, allocations: 0.6037 MB / 0.5876 GB, free: 10.41 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003763/1.449, allocations: 455.5 kB / 0.5881 GB, free: 10.01 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003422/1.452, allocations: 2.806 MB / 0.5908 GB, free: 7.375 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003695/1.456, allocations: 232.8 kB / 0.591 GB, free: 7.176 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004031/1.456, allocations: 97.72 kB / 0.5911 GB, free: 7.098 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.672e-05/1.456, allocations: 4 kB / 0.5911 GB, free: 7.094 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008956/1.465, allocations: 2.752 MB / 0.5938 GB, free: 5.227 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.922e-05/1.466, allocations: 12.12 kB / 0.5938 GB, free: 5.215 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009815/1.467, allocations: 204.3 kB / 0.594 GB, free: 5.047 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003931/1.47, allocations: 470.5 kB / 0.5945 GB, free: 4.633 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001892/1.472, allocations: 1.882 MB / 0.5963 GB, free: 2.809 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003882/1.476, allocations: 236.6 kB / 0.5965 GB, free: 2.605 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000416/1.477, allocations: 97.78 kB / 0.5966 GB, free: 2.527 MB / 474.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: 29 (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,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,valveOpening2.nextEventScaled,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.002061/1.479, allocations: 0.6427 MB / 0.5973 GB, free: 2.074 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006126/1.479, allocations: 189.8 kB / 0.5974 GB, free: 1.887 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01692/1.496, allocations: 7.41 MB / 0.6047 GB, free: 12.93 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001273/1.497, allocations: 90.89 kB / 0.6048 GB, free: 12.86 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.084e-05/1.497, allocations: 3.938 kB / 0.6048 GB, free: 12.86 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01394/1.511, allocations: 6.475 MB / 0.6111 GB, free: 8.457 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02256/1.533, allocations: 10.23 MB / 0.6211 GB, free: 1.816 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.03e-05/1.533, allocations: 0 / 0.6211 GB, free: 1.816 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002747/1.536, allocations: 331.8 kB / 0.6214 GB, free: 1.52 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005145/1.541, allocations: 1.321 MB / 0.6227 GB, free: 380 kB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004462/1.542, allocations: 62.84 kB / 0.6227 GB, free: 344 kB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004123/1.546, allocations: 3.453 MB / 0.6261 GB, free: 13.34 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.997e-06/1.546, allocations: 3.938 kB / 0.6261 GB, free: 13.34 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01701/1.563, allocations: 7.135 MB / 0.6331 GB, free: 8.664 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002523/1.566, allocations: 0.6913 MB / 0.6338 GB, free: 8.07 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000806/1.566, allocations: 48.19 kB / 0.6338 GB, free: 8.051 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002792/1.569, allocations: 181.8 kB / 0.634 GB, free: 7.895 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004282/1.57, allocations: 127.2 kB / 0.6341 GB, free: 7.789 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002159/1.57, allocations: 65.47 kB / 0.6342 GB, free: 7.738 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002431/1.572, allocations: 1.102 MB / 0.6352 GB, free: 6.898 MB / 0.4948 GB Notification: Performance of sort global known variables: time 6.71e-07/1.572, allocations: 0 / 0.6352 GB, free: 6.898 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01035/1.583, allocations: 2.471 MB / 0.6377 GB, free: 4.578 MB / 0.4948 GB 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: 55 ($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,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 (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.01153/1.594, allocations: 2.087 MB / 0.6397 GB, free: 2.723 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01497/1.609, allocations: 4.942 MB / 0.6445 GB, free: 15.3 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 8.326e-06/1.609, allocations: 0 / 0.6445 GB, free: 15.3 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.00622/1.616, allocations: 2.339 MB / 0.6468 GB, free: 13.84 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008204/1.624, allocations: 0.8937 MB / 0.6477 GB, free: 12.99 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01895/1.643, allocations: 8.264 MB / 0.6558 GB, free: 4.82 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002788/1.646, allocations: 2.184 MB / 0.6579 GB, free: 2.598 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.008526/1.654, allocations: 2.34 MB / 0.6602 GB, free: 280 kB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009294/1.655, allocations: 151.4 kB / 0.6603 GB, free: 128 kB / 0.5105 GB Notification: Performance of SimCode: time 1.413e-06/1.655, allocations: 0 / 0.6603 GB, free: 128 kB / 0.5105 GB Notification: Performance of Templates: time 0.5217/2.177, allocations: 74.21 MB / 0.7328 GB, free: 213.7 MB / 0.5417 GB