Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.h|junctionIdeal.medium.p|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.BranchingPipes14") Notification: Performance of loadModel(ModelicaTest): time 2.263/2.263, allocations: 270 MB / 283.6 MB, free: 3.113 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.532e-05/4.53e-05, allocations: 4 kB / 348.4 MB, free: 10.8 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1215/0.1216, allocations: 61.88 MB / 410.3 MB, free: 13 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.037/7.158, allocations: 2.851 GB / 3.252 GB, free: 75.09 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002164/7.159, allocations: 79.95 kB / 3.252 GB, free: 75.02 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 4.052/11.21, allocations: 0.9176 GB / 4.169 GB, free: 14.63 MB / 0.573 GB Notification: Performance of FrontEnd: time 2.596e-06/11.21, allocations: 4 kB / 4.169 GB, free: 14.63 MB / 0.573 GB Notification: Performance of Transformations before backend: time 0.0002949/11.21, allocations: 67.92 kB / 4.17 GB, free: 14.56 MB / 0.573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 536 * Number of variables: 536 Notification: Performance of Generate backend data structure: time 0.01705/11.23, allocations: 3.969 MB / 4.173 GB, free: 10.52 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 4.735e-05/11.23, allocations: 11.97 kB / 4.173 GB, free: 10.51 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008865/11.24, allocations: 0.8904 MB / 4.174 GB, free: 9.621 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007698/11.24, allocations: 2.089 MB / 4.176 GB, free: 7.477 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003508/11.25, allocations: 183.9 kB / 4.177 GB, free: 7.297 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009704/11.25, allocations: 199.9 kB / 4.177 GB, free: 7.102 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01184/11.26, allocations: 3.631 MB / 4.18 GB, free: 3.27 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.828e-05/11.26, allocations: 7.938 kB / 4.18 GB, free: 3.262 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00044/11.26, allocations: 95.97 kB / 4.18 GB, free: 3.168 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003145/11.26, allocations: 167.6 kB / 4.181 GB, free: 3.004 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3891/11.65, allocations: 3.171 MB / 4.184 GB, free: 40.8 MB / 0.573 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.02736/11.68, allocations: 15.63 MB / 4.199 GB, free: 31.55 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007394/11.68, allocations: 2.701 MB / 4.202 GB, free: 30.96 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002723/11.69, allocations: 1.172 MB / 4.203 GB, free: 30.94 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05546/11.74, allocations: 24.57 MB / 4.227 GB, free: 31.93 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006156/11.75, allocations: 1.724 MB / 4.228 GB, free: 31.81 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=173): time 5.913e-06/11.75, allocations: 2.906 kB / 4.228 GB, free: 31.81 MB / 0.5886 GB Notification: Performance of matching and sorting (n=189): time 0.04096/11.79, allocations: 7.872 MB / 4.236 GB, free: 30.84 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002392/11.79, allocations: 260.6 kB / 4.236 GB, free: 30.55 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004324/11.79, allocations: 1.409 MB / 4.238 GB, free: 30.38 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.000714/11.79, allocations: 60.73 kB / 4.238 GB, free: 30.35 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.001475/11.8, allocations: 0.9703 MB / 4.239 GB, free: 30.06 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0013/11.8, allocations: 0.6248 MB / 4.239 GB, free: 29.75 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003463/11.8, allocations: 38.19 kB / 4.239 GB, free: 29.75 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0003504/11.8, allocations: 395.6 kB / 4.24 GB, free: 29.44 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003989/11.8, allocations: 1.034 MB / 4.241 GB, free: 29.43 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004726/11.81, allocations: 1.479 MB / 4.242 GB, free: 28.98 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004791/11.81, allocations: 1.281 MB / 4.243 GB, free: 28.9 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.204e-05/11.81, allocations: 3.438 kB / 4.243 GB, free: 28.9 MB / 0.5886 GB Notification: Performance of matching and sorting (n=264) (initialization): time 0.01311/11.82, allocations: 3.105 MB / 4.246 GB, free: 28.62 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.002868/11.83, allocations: 4.488 MB / 4.251 GB, free: 23.92 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.2e-05/11.83, allocations: 9.781 kB / 4.251 GB, free: 23.92 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001869/11.83, allocations: 238.2 kB / 4.251 GB, free: 23.89 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00576/11.83, allocations: 0.5209 MB / 4.252 GB, free: 23.89 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003355/11.84, allocations: 2.423 MB / 4.254 GB, free: 21.82 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006555/11.84, allocations: 312.7 kB / 4.254 GB, free: 21.81 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009432/11.85, allocations: 105.8 kB / 4.254 GB, free: 21.81 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 2.176e-05/11.85, allocations: 7.484 kB / 4.254 GB, free: 21.81 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007663/11.85, allocations: 2.844 MB / 4.257 GB, free: 21.67 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.214e-05/11.85, allocations: 14.47 kB / 4.257 GB, free: 21.67 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009835/11.85, allocations: 232.4 kB / 4.257 GB, free: 21.64 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003213/11.86, allocations: 0.5129 MB / 4.258 GB, free: 21.64 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00219/11.86, allocations: 2.428 MB / 4.26 GB, free: 19.57 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003584/11.86, allocations: 311.8 kB / 4.26 GB, free: 19.55 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006/11.86, allocations: 103.7 kB / 4.261 GB, free: 19.55 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 30 (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,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 (250): * Single equations (assignments): 244 * 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,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0008406/11.87, allocations: 308 kB / 4.261 GB, free: 19.38 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000601/11.87, allocations: 213 kB / 4.261 GB, free: 19.27 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01329/11.88, allocations: 7.568 MB / 4.268 GB, free: 18.57 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.201e-05/11.88, allocations: 85.14 kB / 4.269 GB, free: 18.57 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.13e-05/11.88, allocations: 2.406 kB / 4.269 GB, free: 18.57 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01094/11.89, allocations: 6.56 MB / 4.275 GB, free: 17.64 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02298/11.91, allocations: 12.25 MB / 4.287 GB, free: 16.04 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.157e-05/11.91, allocations: 7.031 kB / 4.287 GB, free: 16.04 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002608/11.92, allocations: 444.7 kB / 4.287 GB, free: 16.04 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00158/11.92, allocations: 337.1 kB / 4.288 GB, free: 16 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004308/11.92, allocations: 75.12 kB / 4.288 GB, free: 16 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002612/11.92, allocations: 2.527 MB / 4.29 GB, free: 29.93 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.054e-05/11.92, allocations: 10.38 kB / 4.29 GB, free: 29.93 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01282/11.93, allocations: 7.565 MB / 4.298 GB, free: 28.51 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002239/11.94, allocations: 0.7799 MB / 4.298 GB, free: 28.18 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007529/11.94, allocations: 59.61 kB / 4.298 GB, free: 28.18 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002885/11.94, allocations: 229.5 kB / 4.299 GB, free: 28.16 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000465/11.94, allocations: 175.9 kB / 4.299 GB, free: 28.16 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002772/11.94, allocations: 90.59 kB / 4.299 GB, free: 28.16 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.002347/11.94, allocations: 1.25 MB / 4.3 GB, free: 28 MB / 0.6042 GB Notification: Performance of sort global known variables: time 8.51e-07/11.94, allocations: 3.469 kB / 4.3 GB, free: 28 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.01084/11.95, allocations: 2.781 MB / 4.303 GB, free: 27.89 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 8 (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) * Number of discrete variables: 56 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse12.phase,$cse12.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,$cse26.phase,$cse26.region,$cse27.phase,$cse27.region,$cse29.phase,$cse29.region,$cse32.phase,$cse32.region,$cse34.region3boundary,$cse35.region3boundary,$cse36.phase,$cse36.region,$cse38.region3boundary,$cse39.region3boundary,$cse40.phase,$cse40.region,$cse42.phase,$cse42.region,$cse43.region3boundary,$cse44.region3boundary,$cse45.phase,$cse45.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) * 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 (214): * Single equations (assignments): 185 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 23 * 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,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01223/11.97, allocations: 2.894 MB / 4.306 GB, free: 27.57 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.01097/11.98, allocations: 5.105 MB / 4.311 GB, free: 27.23 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.252e-05/11.98, allocations: 3.969 kB / 4.311 GB, free: 27.23 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.004966/11.98, allocations: 2.658 MB / 4.313 GB, free: 27.09 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00654/11.99, allocations: 1.049 MB / 4.314 GB, free: 27.06 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01214/12, allocations: 6.176 MB / 4.32 GB, free: 25.75 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002383/12, allocations: 2.297 MB / 4.323 GB, free: 24.98 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.007143/12.01, allocations: 2.603 MB / 4.325 GB, free: 24.93 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001062/12.01, allocations: 177.6 kB / 4.325 GB, free: 24.92 MB / 0.6042 GB Notification: Performance of SimCode: time 1.788e-06/12.01, allocations: 2.531 kB / 4.325 GB, free: 24.92 MB / 0.6042 GB Notification: Performance of Templates: time 0.5596/12.57, allocations: 92.75 MB / 4.416 GB, free: 72.54 MB / 0.6042 GB