Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe3.mediums.1..h|pipe3.mediums.1..p|valveIncompressible1.filter.x.1.|valveIncompressible1.filter.x.2.|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2") Notification: Performance of loadModel(ModelicaTest): time 1.851/1.851, allocations: 209.3 MB / 221.5 MB, free: 7.738 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.211e-05/3.231e-05, allocations: 3.984 kB / 273.1 MB, free: 3.168 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08892/0.08897, allocations: 48.69 MB / 321.8 MB, free: 2.383 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.106/6.195, allocations: 2.545 GB / 2.859 GB, free: 85.16 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002154/6.196, allocations: 73.66 kB / 2.859 GB, free: 85.12 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.569/8.765, allocations: 0.5598 GB / 3.419 GB, free: 8.133 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.235e-06/8.765, allocations: 0 / 3.419 GB, free: 8.133 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002137/8.765, allocations: 42.47 kB / 3.419 GB, free: 8.098 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 320 * Number of variables: 320 Notification: Performance of Generate backend data structure: time 0.01409/8.779, allocations: 2.765 MB / 3.422 GB, free: 5.301 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.467e-05/8.779, allocations: 12.03 kB / 3.422 GB, free: 5.289 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01046/8.79, allocations: 0.5296 MB / 3.422 GB, free: 4.762 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007584/8.797, allocations: 1.428 MB / 3.424 GB, free: 3.312 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002405/8.798, allocations: 115.7 kB / 3.424 GB, free: 3.203 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005395/8.798, allocations: 125.9 kB / 3.424 GB, free: 3.086 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005188/8.803, allocations: 2.251 MB / 3.426 GB, free: 0.7188 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.408e-05/8.803, allocations: 0 / 3.426 GB, free: 0.7188 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002048/8.804, allocations: 65.22 kB / 3.426 GB, free: 0.6641 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001382/8.804, allocations: 106.2 kB / 3.426 GB, free: 0.5586 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005369/8.809, allocations: 1.933 MB / 3.428 GB, free: 14.62 MB / 458.7 MB 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.01656/8.826, allocations: 9.631 MB / 3.437 GB, free: 4.254 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003987/8.83, allocations: 1.316 MB / 3.439 GB, free: 2.93 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001246/8.831, allocations: 0.6044 MB / 3.439 GB, free: 2.324 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3193/9.15, allocations: 18.81 MB / 3.458 GB, free: 28.54 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003488/9.154, allocations: 1.022 MB / 3.459 GB, free: 28.46 MB / 458.7 MB Notification: Performance of pre-optimization done (n=94): time 4.857e-06/9.154, allocations: 0.875 kB / 3.459 GB, free: 28.46 MB / 458.7 MB Notification: Performance of matching and sorting (n=102): time 0.01384/9.168, allocations: 4.383 MB / 3.463 GB, free: 27.93 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.423e-05/9.168, allocations: 277.9 kB / 3.463 GB, free: 27.61 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001702/9.17, allocations: 0.9682 MB / 3.464 GB, free: 27.46 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001599/9.17, allocations: 46.08 kB / 3.464 GB, free: 27.43 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005597/9.17, allocations: 0.6546 MB / 3.465 GB, free: 27.2 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003389/9.171, allocations: 351.9 kB / 3.465 GB, free: 27.03 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001104/9.171, allocations: 24.94 kB / 3.465 GB, free: 27.03 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001026/9.171, allocations: 363.1 kB / 3.466 GB, free: 26.73 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001181/9.172, allocations: 0.6026 MB / 3.466 GB, free: 26.73 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001399/9.174, allocations: 0.9265 MB / 3.467 GB, free: 26.38 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001474/9.175, allocations: 0.7552 MB / 3.468 GB, free: 26.34 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.559e-06/9.175, allocations: 8.625 kB / 3.468 GB, free: 26.34 MB / 458.7 MB Notification: Performance of matching and sorting (n=160) (initialization): time 0.004161/9.179, allocations: 1.845 MB / 3.47 GB, free: 26.16 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006522/9.18, allocations: 3.27 MB / 3.473 GB, free: 22.78 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.209e-05/9.18, allocations: 9.844 kB / 3.473 GB, free: 22.78 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000602/9.181, allocations: 136.9 kB / 3.473 GB, free: 22.77 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001869/9.183, allocations: 316.7 kB / 3.473 GB, free: 22.77 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008329/9.183, allocations: 1.257 MB / 3.475 GB, free: 21.73 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001868/9.185, allocations: 157.3 kB / 3.475 GB, free: 21.72 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001969/9.185, allocations: 64.59 kB / 3.475 GB, free: 21.72 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.414e-05/9.186, allocations: 7.312 kB / 3.475 GB, free: 21.72 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003748/9.189, allocations: 1.677 MB / 3.476 GB, free: 21.65 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.112e-05/9.189, allocations: 7.625 kB / 3.476 GB, free: 21.65 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005456/9.19, allocations: 138.1 kB / 3.477 GB, free: 21.62 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001574/9.191, allocations: 316.3 kB / 3.477 GB, free: 21.62 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007655/9.192, allocations: 1.254 MB / 3.478 GB, free: 20.59 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00172/9.194, allocations: 162.1 kB / 3.478 GB, free: 20.59 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001884/9.194, allocations: 61.53 kB / 3.478 GB, free: 20.59 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 16 (pipe3.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,pipe1.state_a.phase,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,pipe3.state_b.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (152): * Single equations (assignments): 147 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0004556/9.195, allocations: 218 kB / 3.478 GB, free: 20.45 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002772/9.195, allocations: 133.3 kB / 3.479 GB, free: 20.38 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007162/9.202, allocations: 4.685 MB / 3.483 GB, free: 19.93 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.674e-05/9.202, allocations: 58.31 kB / 3.483 GB, free: 19.93 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.026e-05/9.202, allocations: 2.391 kB / 3.483 GB, free: 19.93 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005466/9.208, allocations: 3.922 MB / 3.487 GB, free: 19.46 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009962/9.218, allocations: 6.648 MB / 3.494 GB, free: 18.94 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.143e-05/9.218, allocations: 0 / 3.494 GB, free: 18.94 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001406/9.219, allocations: 247.2 kB / 3.494 GB, free: 18.94 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009268/9.22, allocations: 173.9 kB / 3.494 GB, free: 18.92 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001407/9.22, allocations: 41.23 kB / 3.494 GB, free: 18.92 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007931/9.221, allocations: 1.284 MB / 3.495 GB, free: 17.88 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.76e-06/9.221, allocations: 0 / 3.495 GB, free: 17.88 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006642/9.228, allocations: 4.151 MB / 3.499 GB, free: 17.46 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001245/9.229, allocations: 0.5267 MB / 3.5 GB, free: 17.24 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000328/9.229, allocations: 31.75 kB / 3.5 GB, free: 17.24 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001247/9.231, allocations: 126.7 kB / 3.5 GB, free: 17.23 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002224/9.231, allocations: 86.59 kB / 3.5 GB, free: 17.23 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001301/9.231, allocations: 42.31 kB / 3.5 GB, free: 17.23 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001453/9.233, allocations: 0.8555 MB / 3.501 GB, free: 17.12 MB / 458.7 MB Notification: Performance of sort global known variables: time 9.2e-07/9.233, allocations: 0 / 3.501 GB, free: 17.12 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.009178/9.242, allocations: 2.168 MB / 3.503 GB, free: 17.04 MB / 458.7 MB 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,valveIncompressible1.filter.x[1],valveIncompressible1.filter.x[2],pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 35 ($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,$cse22.phase,$cse22.region,$cse24.region3boundary,$cse25.region3boundary,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent) * Number of discrete states: 5 (valveOpening1.last,valveOpening1.nextEvent,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (118): * Single equations (assignments): 100 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 15 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01715/9.259, allocations: 2.381 MB / 3.505 GB, free: 16.79 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.009779/9.269, allocations: 2.993 MB / 3.508 GB, free: 16.56 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.906e-06/9.269, allocations: 4.5 kB / 3.508 GB, free: 16.56 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002324/9.271, allocations: 1.403 MB / 3.51 GB, free: 16.5 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003222/9.274, allocations: 0.5813 MB / 3.51 GB, free: 16.48 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.549/9.823, allocations: 123.3 MB / 3.631 GB, free: 52.77 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00136/9.825, allocations: 1.72 MB / 3.632 GB, free: 52.04 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.004162/9.829, allocations: 1.689 MB / 3.634 GB, free: 52.02 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004351/9.83, allocations: 115.1 kB / 3.634 GB, free: 52.02 MB / 474.7 MB Notification: Performance of SimCode: time 1.736e-06/9.83, allocations: 0 / 3.634 GB, free: 52.02 MB / 474.7 MB Notification: Performance of Templates: time 0.1179/9.947, allocations: 65.27 MB / 3.698 GB, free: 49.18 MB / 474.7 MB