Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.h|junctionIdeal.medium.p|junctionVolume.medium.h|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_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18") Notification: Performance of loadModel(ModelicaTest): time 2.505/2.505, allocations: 270 MB / 283.6 MB, free: 3.027 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.499e-05/3.517e-05, allocations: 7.234 kB / 348.4 MB, free: 10.8 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1633/0.1634, allocations: 61.89 MB / 410.3 MB, free: 12.99 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.857/7.021, allocations: 2.852 GB / 3.252 GB, free: 74.27 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002257/7.021, allocations: 75.97 kB / 3.253 GB, free: 74.19 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 4.696/11.72, allocations: 1.025 GB / 4.277 GB, free: 31.08 MB / 0.5573 GB Notification: Performance of FrontEnd: time 2.054e-06/11.72, allocations: 0 / 4.277 GB, free: 31.08 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0003107/11.72, allocations: 73.39 kB / 4.277 GB, free: 31.07 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: 575 * Number of variables: 575 Notification: Performance of Generate backend data structure: time 0.01673/11.73, allocations: 4.252 MB / 4.282 GB, free: 29.09 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.336e-05/11.73, allocations: 13.47 kB / 4.282 GB, free: 29.08 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009835/11.74, allocations: 0.9351 MB / 4.283 GB, free: 28.93 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00754/11.75, allocations: 2.193 MB / 4.285 GB, free: 28.41 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003496/11.75, allocations: 202.3 kB / 4.285 GB, free: 28.41 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001034/11.75, allocations: 228 kB / 4.285 GB, free: 28.4 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01204/11.76, allocations: 3.859 MB / 4.289 GB, free: 27.78 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.416e-05/11.76, allocations: 7.531 kB / 4.289 GB, free: 27.78 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004539/11.77, allocations: 97.22 kB / 4.289 GB, free: 27.78 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002501/11.77, allocations: 175.2 kB / 4.289 GB, free: 27.77 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01147/11.78, allocations: 3.417 MB / 4.292 GB, free: 27.72 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.02976/11.81, allocations: 16.96 MB / 4.309 GB, free: 17.48 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00878/11.82, allocations: 3.056 MB / 4.312 GB, free: 16.88 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002926/11.82, allocations: 1.27 MB / 4.313 GB, free: 16.61 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05869/11.88, allocations: 24.42 MB / 4.337 GB, free: 16.55 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006266/11.88, allocations: 1.877 MB / 4.339 GB, free: 15.92 MB / 0.573 GB Notification: Performance of pre-optimization done (n=192): time 7.14e-06/11.88, allocations: 0 / 4.339 GB, free: 15.92 MB / 0.573 GB Notification: Performance of matching and sorting (n=212): time 0.03494/11.92, allocations: 8.928 MB / 4.348 GB, free: 11.96 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001987/11.92, allocations: 263.8 kB / 4.348 GB, free: 11.65 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002913/11.92, allocations: 1.504 MB / 4.349 GB, free: 10.26 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0006138/11.92, allocations: 69.7 kB / 4.349 GB, free: 10.18 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.001034/11.92, allocations: 1.032 MB / 4.35 GB, free: 9.242 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.001009/11.92, allocations: 0.7157 MB / 4.351 GB, free: 8.594 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000261/11.92, allocations: 48 kB / 4.351 GB, free: 8.547 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0002748/11.93, allocations: 398.6 kB / 4.352 GB, free: 8.184 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002484/11.93, allocations: 1.137 MB / 4.353 GB, free: 7.152 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003615/11.93, allocations: 1.643 MB / 4.354 GB, free: 5.469 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003588/11.93, allocations: 1.396 MB / 4.356 GB, free: 4.258 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.629e-05/11.94, allocations: 4 kB / 4.356 GB, free: 4.254 MB / 0.573 GB Notification: Performance of matching and sorting (n=303) (initialization): time 0.01003/11.95, allocations: 3.496 MB / 4.359 GB, free: 1.125 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.002816/11.95, allocations: 5.143 MB / 4.364 GB, free: 11.58 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.572e-05/11.95, allocations: 16 kB / 4.364 GB, free: 11.57 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001656/11.95, allocations: 331.2 kB / 4.364 GB, free: 11.29 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003903/11.95, allocations: 0.5978 MB / 4.365 GB, free: 10.79 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00308/11.96, allocations: 3.085 MB / 4.368 GB, free: 7.676 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004311/11.96, allocations: 344.2 kB / 4.368 GB, free: 7.41 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007787/11.96, allocations: 118.9 kB / 4.368 GB, free: 7.305 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.698e-05/11.96, allocations: 7.938 kB / 4.368 GB, free: 7.297 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008971/11.97, allocations: 3.205 MB / 4.372 GB, free: 4.453 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.826e-05/11.97, allocations: 12 kB / 4.372 GB, free: 4.441 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001529/11.97, allocations: 338.9 kB / 4.372 GB, free: 4.156 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003785/11.98, allocations: 0.5826 MB / 4.372 GB, free: 3.664 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003076/11.98, allocations: 3.092 MB / 4.375 GB, free: 0.5508 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004063/11.98, allocations: 338.4 kB / 4.376 GB, free: 300 kB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007953/11.98, allocations: 122.6 kB / 4.376 GB, free: 188 kB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * Number of states: 0 () * Number of discrete variables: 31 (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,junctionIdeal.medium.phase,junctionVolume.medium.phase,pipe3.state_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_b.phase,pipe1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (283): * Single equations (assignments): 276 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,1 6,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.3934/12.38, allocations: 315.8 kB / 4.376 GB, free: 61.46 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007828/12.38, allocations: 234 kB / 4.376 GB, free: 61.46 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01698/12.4, allocations: 8.216 MB / 4.384 GB, free: 60.89 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001198/12.4, allocations: 92.11 kB / 4.385 GB, free: 60.89 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.317e-05/12.4, allocations: 0.5625 kB / 4.385 GB, free: 60.89 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01324/12.41, allocations: 7.122 MB / 4.392 GB, free: 59.95 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02764/12.44, allocations: 13.2 MB / 4.404 GB, free: 58.48 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.467e-05/12.44, allocations: 6.5 kB / 4.404 GB, free: 58.48 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002805/12.44, allocations: 493.1 kB / 4.405 GB, free: 58.48 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002284/12.44, allocations: 459.4 kB / 4.405 GB, free: 58.44 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006057/12.44, allocations: 84.08 kB / 4.405 GB, free: 58.44 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002299/12.44, allocations: 3.223 MB / 4.409 GB, free: 55.86 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.596e-06/12.44, allocations: 8.281 kB / 4.409 GB, free: 55.86 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01483/12.46, allocations: 8.24 MB / 4.417 GB, free: 54.46 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002552/12.46, allocations: 0.8326 MB / 4.417 GB, free: 54.18 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00085/12.46, allocations: 65.61 kB / 4.417 GB, free: 54.18 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003089/12.47, allocations: 233.5 kB / 4.418 GB, free: 54.17 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005746/12.47, allocations: 202.5 kB / 4.418 GB, free: 54.16 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003279/12.47, allocations: 99.89 kB / 4.418 GB, free: 54.16 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.002664/12.47, allocations: 1.319 MB / 4.419 GB, free: 54 MB / 0.5886 GB Notification: Performance of sort global known variables: time 9.34e-07/12.47, allocations: 1.344 kB / 4.419 GB, free: 54 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01183/12.48, allocations: 2.963 MB / 4.422 GB, free: 54 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 9 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h,junctionIdeal.medium.p,junctionIdeal.medium.h,junctionVolume.medium.h) * Number of discrete variables: 59 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse12.phase,$cse12.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,$cse30.phase,$cse30.region,$cse31.phase,$cse31.region,$cse35.phase,$cse35.region,$cse38.phase,$cse38.region,$cse40.region3boundary,$cse41.region3boundary,$cse42.phase,$cse42.region,$cse44.region3boundary,$cse45.region3boundary,$cse46.phase,$cse46.region,$cse48.phase,$cse48.region,$cse49.region3boundary,$cse50.region3boundary,$cse51.phase,$cse51.region,$cse52.phase,$cse52.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,junctionIdeal.medium.phase,junctionVolume.medium.phase) * 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 (239): * Single equations (assignments): 208 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 24 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,2 4,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.013/12.49, allocations: 3.072 MB / 4.425 GB, free: 53.71 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.01211/12.51, allocations: 5.555 MB / 4.431 GB, free: 53.38 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.115e-05/12.51, allocations: 0 / 4.431 GB, free: 53.38 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.005976/12.51, allocations: 2.943 MB / 4.433 GB, free: 53.24 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007281/12.52, allocations: 1.216 MB / 4.435 GB, free: 53.21 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01374/12.53, allocations: 6.627 MB / 4.441 GB, free: 51.85 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002366/12.54, allocations: 2.393 MB / 4.443 GB, free: 51.07 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.008241/12.54, allocations: 2.771 MB / 4.446 GB, free: 51.01 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001183/12.55, allocations: 203.6 kB / 4.446 GB, free: 51 MB / 0.5886 GB Notification: Performance of SimCode: time 1.807e-06/12.55, allocations: 0 / 4.446 GB, free: 51 MB / 0.5886 GB Notification: Performance of Templates: time 0.2053/12.75, allocations: 101.6 MB / 4.546 GB, free: 35.37 MB / 0.5886 GB