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_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2") Notification: Performance of loadModel(ModelicaTest): time 2.326/2.326, allocations: 270 MB / 283.6 MB, free: 1.797 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.235e-05/3.254e-05, allocations: 4 kB / 348.4 MB, free: 2.691 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3296/0.3296, allocations: 61.88 MB / 410.3 MB, free: 10.75 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.898/7.228, allocations: 2.83 GB / 3.23 GB, free: 91.25 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001879/7.228, allocations: 80.2 kB / 3.23 GB, free: 91.21 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.677/9.905, allocations: 0.5829 GB / 3.813 GB, free: 53.35 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.059e-06/9.905, allocations: 0 / 3.813 GB, free: 53.35 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0001613/9.905, allocations: 42 kB / 3.813 GB, free: 53.34 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 322 * Number of variables: 322 Notification: Performance of Generate backend data structure: time 0.01023/9.916, allocations: 2.853 MB / 3.816 GB, free: 51.88 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.176e-05/9.916, allocations: 15 kB / 3.816 GB, free: 51.88 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005003/9.921, allocations: 0.5355 MB / 3.817 GB, free: 51.79 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004499/9.925, allocations: 1.432 MB / 3.818 GB, free: 51.42 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001612/9.925, allocations: 114.5 kB / 3.818 GB, free: 51.41 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003832/9.926, allocations: 122.6 kB / 3.818 GB, free: 51.41 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005822/9.932, allocations: 2.262 MB / 3.821 GB, free: 51.04 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.051e-05/9.932, allocations: 8.312 kB / 3.821 GB, free: 51.04 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002229/9.932, allocations: 55.22 kB / 3.821 GB, free: 51.03 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001529/9.932, allocations: 101.2 kB / 3.821 GB, free: 51.03 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005392/9.938, allocations: 1.96 MB / 3.823 GB, free: 51.02 MB / 0.5417 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.01539/9.953, allocations: 9.798 MB / 3.832 GB, free: 45.09 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004143/9.957, allocations: 1.328 MB / 3.833 GB, free: 45.06 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001243/9.958, allocations: 0.6358 MB / 3.834 GB, free: 45.05 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05381/10.01, allocations: 24.52 MB / 3.858 GB, free: 29.88 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003299/10.02, allocations: 1.051 MB / 3.859 GB, free: 29.79 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=96): time 6.191e-06/10.02, allocations: 0 / 3.859 GB, free: 29.79 MB / 0.5417 GB Notification: Performance of matching and sorting (n=104): time 0.01503/10.03, allocations: 4.475 MB / 3.863 GB, free: 29.07 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.524e-05/10.03, allocations: 272 kB / 3.864 GB, free: 28.75 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001866/10.03, allocations: 1.019 MB / 3.865 GB, free: 28.59 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0002441/10.03, allocations: 46.89 kB / 3.865 GB, free: 28.56 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005587/10.03, allocations: 0.6455 MB / 3.865 GB, free: 28.3 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003524/10.03, allocations: 359.7 kB / 3.866 GB, free: 28.08 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001172/10.03, allocations: 27.62 kB / 3.866 GB, free: 28.08 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001005/10.03, allocations: 356.3 kB / 3.866 GB, free: 27.77 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001296/10.04, allocations: 0.6144 MB / 3.867 GB, free: 27.77 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001335/10.04, allocations: 0.9122 MB / 3.868 GB, free: 27.44 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001456/10.04, allocations: 0.7572 MB / 3.868 GB, free: 27.39 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.068e-06/10.04, allocations: 3.719 kB / 3.868 GB, free: 27.39 MB / 0.5417 GB Notification: Performance of matching and sorting (n=156) (initialization): time 0.004212/10.04, allocations: 1.862 MB / 3.87 GB, free: 27.21 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.000556/10.04, allocations: 2.761 MB / 3.873 GB, free: 24.34 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.956e-05/10.04, allocations: 12.62 kB / 3.873 GB, free: 24.34 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005998/10.04, allocations: 128.4 kB / 3.873 GB, free: 24.32 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001911/10.05, allocations: 319.4 kB / 3.873 GB, free: 24.32 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008271/10.05, allocations: 1.254 MB / 3.874 GB, free: 23.28 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001948/10.05, allocations: 154.4 kB / 3.875 GB, free: 23.26 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001979/10.05, allocations: 63.69 kB / 3.875 GB, free: 23.26 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.287e-05/10.05, allocations: 4 kB / 3.875 GB, free: 23.26 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003803/10.05, allocations: 1.695 MB / 3.876 GB, free: 23.18 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.733e-05/10.05, allocations: 7.219 kB / 3.876 GB, free: 23.18 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005988/10.05, allocations: 127.5 kB / 3.876 GB, free: 23.17 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001796/10.06, allocations: 314.4 kB / 3.877 GB, free: 23.16 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007985/10.06, allocations: 1.252 MB / 3.878 GB, free: 22.12 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001862/10.06, allocations: 165.6 kB / 3.878 GB, free: 22.1 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001848/10.06, allocations: 60.17 kB / 3.878 GB, free: 22.1 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 17 (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,valveOpening1.nextEventScaled,pipe3.state_b.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (147): * Single equations (assignments): 142 * 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.0004468/10.06, allocations: 222.5 kB / 3.878 GB, free: 21.95 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002758/10.06, allocations: 140.4 kB / 3.879 GB, free: 21.88 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006987/10.07, allocations: 4.734 MB / 3.883 GB, free: 21.33 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.523e-05/10.07, allocations: 58.14 kB / 3.883 GB, free: 21.33 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.867e-06/10.07, allocations: 0 / 3.883 GB, free: 21.33 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00564/10.07, allocations: 3.959 MB / 3.887 GB, free: 20.44 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01039/10.08, allocations: 6.771 MB / 3.894 GB, free: 17.48 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.065e-05/10.08, allocations: 3.75 kB / 3.894 GB, free: 17.48 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00152/10.08, allocations: 246.7 kB / 3.894 GB, free: 17.47 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009221/10.08, allocations: 177.1 kB / 3.894 GB, free: 17.42 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001632/10.08, allocations: 44.62 kB / 3.894 GB, free: 17.4 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001449/10.09, allocations: 1.285 MB / 3.895 GB, free: 32.25 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.541e-06/10.09, allocations: 0 / 3.895 GB, free: 32.25 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006716/10.09, allocations: 4.239 MB / 3.9 GB, free: 30.36 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001319/10.09, allocations: 0.5563 MB / 3.9 GB, free: 30 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003375/10.09, allocations: 33.42 kB / 3.9 GB, free: 29.98 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00134/10.1, allocations: 124.6 kB / 3.9 GB, free: 29.95 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002321/10.1, allocations: 90.75 kB / 3.9 GB, free: 29.94 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001404/10.1, allocations: 48.77 kB / 3.9 GB, free: 29.93 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0017/10.1, allocations: 0.9746 MB / 3.901 GB, free: 29.54 MB / 0.5573 GB Notification: Performance of sort global known variables: time 9.15e-07/10.1, allocations: 3.969 kB / 3.901 GB, free: 29.54 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.007801/10.11, allocations: 2.212 MB / 3.904 GB, free: 29.06 MB / 0.5573 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,valveIncompressible1.filter.x[1],valveIncompressible1.filter.x[2],pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 36 ($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,valveOpening1.nextEventScaled) * Number of discrete states: 6 (valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (119): * Single equations (assignments): 101 * 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.01079/10.12, allocations: 2.396 MB / 3.906 GB, free: 28.42 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.005957/10.12, allocations: 3.052 MB / 3.909 GB, free: 25.91 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 6.587e-06/10.12, allocations: 0 / 3.909 GB, free: 25.91 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.002324/10.13, allocations: 1.424 MB / 3.91 GB, free: 24.6 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003933/10.13, allocations: 0.642 MB / 3.911 GB, free: 24.13 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006915/10.14, allocations: 3.805 MB / 3.915 GB, free: 20.75 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001529/10.14, allocations: 1.723 MB / 3.916 GB, free: 19.34 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.004129/10.14, allocations: 1.725 MB / 3.918 GB, free: 18.33 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004754/10.14, allocations: 110.2 kB / 3.918 GB, free: 18.23 MB / 0.5573 GB Notification: Performance of SimCode: time 1.683e-06/10.14, allocations: 0 / 3.918 GB, free: 18.23 MB / 0.5573 GB Notification: Performance of Templates: time 0.4775/10.62, allocations: 67.52 MB / 3.984 GB, free: 64.54 MB / 0.5573 GB