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_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13") Notification: Performance of loadModel(ModelicaTest): time 2.328/2.328, allocations: 270 MB / 283.6 MB, free: 1.809 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.021e-05/3.036e-05, allocations: 4 kB / 348.4 MB, free: 2.652 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3285/0.3285, allocations: 61.88 MB / 410.3 MB, free: 10.7 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.892/7.221, allocations: 2.831 GB / 3.231 GB, free: 88.25 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003219/7.221, allocations: 76.58 kB / 3.231 GB, free: 88.21 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 4.023/11.24, allocations: 0.8771 GB / 4.108 GB, free: 39.61 MB / 0.5573 GB Notification: Performance of FrontEnd: time 2.083e-06/11.24, allocations: 2.906 kB / 4.108 GB, free: 39.61 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.000255/11.24, allocations: 62.23 kB / 4.109 GB, free: 39.59 MB / 0.5573 GB 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.01403/11.26, allocations: 3.829 MB / 4.112 GB, free: 37.47 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.064e-05/11.26, allocations: 11.59 kB / 4.112 GB, free: 37.47 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008083/11.27, allocations: 0.7809 MB / 4.113 GB, free: 37.28 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006373/11.27, allocations: 1.931 MB / 4.115 GB, free: 36.4 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002393/11.27, allocations: 160.5 kB / 4.115 GB, free: 36.34 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006835/11.27, allocations: 195.3 kB / 4.115 GB, free: 36.28 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0092/11.28, allocations: 3.272 MB / 4.118 GB, free: 34.93 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.636e-05/11.28, allocations: 3.938 kB / 4.118 GB, free: 34.92 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003512/11.28, allocations: 88.95 kB / 4.119 GB, free: 34.87 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002353/11.28, allocations: 157.6 kB / 4.119 GB, free: 34.84 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009028/11.29, allocations: 2.881 MB / 4.122 GB, free: 33.94 MB / 0.5573 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.02306/11.32, allocations: 14.22 MB / 4.135 GB, free: 22.68 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005464/11.32, allocations: 1.971 MB / 4.137 GB, free: 21.03 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001865/11.32, allocations: 0.9854 MB / 4.138 GB, free: 20.14 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05122/11.37, allocations: 24.62 MB / 4.162 GB, free: 11.42 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005633/11.38, allocations: 1.582 MB / 4.164 GB, free: 9.809 MB / 0.573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001574/11.38, allocations: 177.4 kB / 4.164 GB, free: 9.637 MB / 0.573 GB Notification: Performance of pre-optimization done (n=146): time 6.18e-06/11.38, allocations: 0 / 4.164 GB, free: 9.637 MB / 0.573 GB Notification: Performance of matching and sorting (n=158): time 0.02609/11.41, allocations: 6.928 MB / 4.171 GB, free: 2.621 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001847/11.41, allocations: 248.6 kB / 4.171 GB, free: 2.324 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003187/11.41, allocations: 1.402 MB / 4.172 GB, free: 0.9219 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0004289/11.41, allocations: 53.7 kB / 4.172 GB, free: 0.8633 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.3784/11.79, allocations: 0.8797 MB / 4.173 GB, free: 58.57 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.001/11.79, allocations: 0.5272 MB / 4.174 GB, free: 58.57 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000274/11.79, allocations: 38.41 kB / 4.174 GB, free: 58.57 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001872/11.79, allocations: 374 kB / 4.174 GB, free: 58.27 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002762/11.8, allocations: 0.932 MB / 4.175 GB, free: 58.27 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002945/11.8, allocations: 1.295 MB / 4.176 GB, free: 57.88 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002668/11.8, allocations: 1.157 MB / 4.178 GB, free: 57.8 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.38e-05/11.8, allocations: 0 / 4.178 GB, free: 57.8 MB / 0.573 GB Notification: Performance of matching and sorting (n=224) (initialization): time 0.007941/11.81, allocations: 2.968 MB / 4.18 GB, free: 57.55 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008137/11.81, allocations: 3.852 MB / 4.184 GB, free: 53.52 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.557e-05/11.81, allocations: 8.812 kB / 4.184 GB, free: 53.52 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003591/11.81, allocations: 0.5888 MB / 4.185 GB, free: 53.49 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002639/11.82, allocations: 435.6 kB / 4.185 GB, free: 53.49 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002443/11.82, allocations: 2.82 MB / 4.188 GB, free: 51.41 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003215/11.82, allocations: 229.3 kB / 4.188 GB, free: 51.41 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004338/11.82, allocations: 95.89 kB / 4.188 GB, free: 51.41 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.411e-05/11.82, allocations: 5.469 kB / 4.188 GB, free: 51.41 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006252/11.83, allocations: 2.579 MB / 4.191 GB, free: 51.27 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.733e-05/11.83, allocations: 9.172 kB / 4.191 GB, free: 51.27 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008968/11.83, allocations: 196.6 kB / 4.191 GB, free: 51.25 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00281/11.83, allocations: 449.6 kB / 4.191 GB, free: 51.25 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001181/11.83, allocations: 1.874 MB / 4.193 GB, free: 49.69 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003051/11.84, allocations: 236.5 kB / 4.193 GB, free: 49.68 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000447/11.84, allocations: 88.5 kB / 4.194 GB, free: 49.68 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * Number of states: 0 () * Number of discrete variables: 29 (pipe3.state_a.phase,pipe2.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.state_a.phase,pipe1.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 (201): * Single equations (assignments): 195 * 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.0006954/11.84, allocations: 288.3 kB / 4.194 GB, free: 49.51 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005361/11.84, allocations: 195.4 kB / 4.194 GB, free: 49.41 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01215/11.85, allocations: 7.455 MB / 4.201 GB, free: 48.79 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.68e-05/11.85, allocations: 79.39 kB / 4.201 GB, free: 48.79 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.07e-05/11.85, allocations: 3.844 kB / 4.201 GB, free: 48.79 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009775/11.86, allocations: 6.519 MB / 4.208 GB, free: 47.91 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01726/11.88, allocations: 10.39 MB / 4.218 GB, free: 47.27 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-05/11.88, allocations: 0 / 4.218 GB, free: 47.27 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002175/11.88, allocations: 343.9 kB / 4.218 GB, free: 47.27 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004395/11.88, allocations: 1.579 MB / 4.22 GB, free: 47.2 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004113/11.88, allocations: 59.55 kB / 4.22 GB, free: 47.2 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002945/11.89, allocations: 3.474 MB / 4.223 GB, free: 45.1 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.444e-06/11.89, allocations: 1.859 kB / 4.223 GB, free: 45.1 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01219/11.9, allocations: 7.072 MB / 4.23 GB, free: 44.52 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002002/11.9, allocations: 0.7369 MB / 4.231 GB, free: 44.25 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000653/11.9, allocations: 46 kB / 4.231 GB, free: 44.25 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002556/11.91, allocations: 197.8 kB / 4.231 GB, free: 44.24 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000426/11.91, allocations: 134.7 kB / 4.231 GB, free: 44.24 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002422/11.91, allocations: 69.02 kB / 4.231 GB, free: 44.24 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.00243/11.91, allocations: 1.256 MB / 4.232 GB, free: 44.08 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.122e-06/11.91, allocations: 1.469 kB / 4.232 GB, free: 44.08 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01079/11.92, allocations: 2.73 MB / 4.235 GB, free: 44.06 MB / 0.573 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 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse30.phase,$cse30.region,$cse32.region3boundary,$cse33.region3boundary,$cse34.phase,$cse34.region,$cse36.phase,$cse36.region,$cse37.region3boundary,$cse38.region3boundary,$cse39.phase,$cse39.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 (166): * Single equations (assignments): 140 * 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.01253/11.93, allocations: 2.918 MB / 4.238 GB, free: 43.77 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.009725/11.94, allocations: 4.62 MB / 4.243 GB, free: 43.46 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 8.18e-06/11.94, allocations: 1.781 kB / 4.243 GB, free: 43.46 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.004287/11.95, allocations: 2.231 MB / 4.245 GB, free: 43.32 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006438/11.95, allocations: 0.9658 MB / 4.246 GB, free: 43.29 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01134/11.96, allocations: 5.514 MB / 4.251 GB, free: 42.25 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002219/11.97, allocations: 2.187 MB / 4.253 GB, free: 41.48 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.006762/11.97, allocations: 2.398 MB / 4.256 GB, free: 41.44 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007759/11.97, allocations: 154.2 kB / 4.256 GB, free: 41.43 MB / 0.573 GB Notification: Performance of SimCode: time 2.01e-06/11.97, allocations: 0 / 4.256 GB, free: 41.43 MB / 0.573 GB Notification: Performance of Templates: time 0.1744/12.15, allocations: 89.64 MB / 4.343 GB, free: 27.21 MB / 0.573 GB