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.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2") Notification: Performance of loadModel(ModelicaTest): time 2.236/2.236, allocations: 249.5 MB / 261.6 MB, free: 2.148 MB / 202.8 MB Notification: Performance of FrontEnd - loaded program: time 3.465e-05/3.479e-05, allocations: 6.656 kB / 323.4 MB, free: 4.316 MB / 266.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3156/0.3156, allocations: 58.84 MB / 382.2 MB, free: 10.32 MB / 314.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.746/7.062, allocations: 2.825 GB / 3.198 GB, free: 115.8 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002121/7.062, allocations: 74.66 kB / 3.198 GB, free: 115.7 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 2.587/9.65, allocations: 0.5766 GB / 3.775 GB, free: 42.24 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.097e-06/9.65, allocations: 0 / 3.775 GB, free: 42.24 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0001619/9.65, allocations: 45.28 kB / 3.775 GB, free: 42.23 MB / 0.5105 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.009985/9.66, allocations: 2.86 MB / 3.778 GB, free: 40.77 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.124e-05/9.66, allocations: 10.75 kB / 3.778 GB, free: 40.77 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005091/9.665, allocations: 0.5359 MB / 3.778 GB, free: 40.68 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004443/9.67, allocations: 1.434 MB / 3.78 GB, free: 40.32 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001626/9.67, allocations: 110.4 kB / 3.78 GB, free: 40.32 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003873/9.67, allocations: 132.2 kB / 3.78 GB, free: 40.31 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005881/9.676, allocations: 2.261 MB / 3.782 GB, free: 39.93 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.102e-05/9.676, allocations: 9.375 kB / 3.782 GB, free: 39.93 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002146/9.676, allocations: 53.67 kB / 3.782 GB, free: 39.93 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001545/9.677, allocations: 99.02 kB / 3.782 GB, free: 39.93 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005501/9.682, allocations: 1.953 MB / 3.784 GB, free: 39.92 MB / 0.5105 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.01482/9.697, allocations: 9.798 MB / 3.794 GB, free: 33.98 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003694/9.701, allocations: 1.339 MB / 3.795 GB, free: 33.95 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001126/9.702, allocations: 0.6267 MB / 3.796 GB, free: 33.94 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05694/9.759, allocations: 24.53 MB / 3.819 GB, free: 34.91 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003268/9.762, allocations: 1.052 MB / 3.821 GB, free: 34.82 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=96): time 5.395e-06/9.762, allocations: 0 / 3.821 GB, free: 34.82 MB / 0.5261 GB Notification: Performance of matching and sorting (n=104): time 0.01518/9.777, allocations: 4.473 MB / 3.825 GB, free: 34.09 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001512/9.778, allocations: 272.2 kB / 3.825 GB, free: 33.78 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001831/9.779, allocations: 1.026 MB / 3.826 GB, free: 33.61 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0002552/9.78, allocations: 48.3 kB / 3.826 GB, free: 33.58 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.000582/9.78, allocations: 0.6338 MB / 3.827 GB, free: 33.33 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003422/9.781, allocations: 360.8 kB / 3.827 GB, free: 33.11 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001139/9.781, allocations: 24.5 kB / 3.827 GB, free: 33.11 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002036/9.781, allocations: 352.9 kB / 3.828 GB, free: 32.8 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001262/9.782, allocations: 0.6167 MB / 3.828 GB, free: 32.8 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001431/9.784, allocations: 0.9048 MB / 3.829 GB, free: 32.48 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001408/9.785, allocations: 0.7544 MB / 3.83 GB, free: 32.42 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.345e-06/9.785, allocations: 7.719 kB / 3.83 GB, free: 32.42 MB / 0.5261 GB Notification: Performance of matching and sorting (n=156) (initialization): time 0.00412/9.789, allocations: 1.868 MB / 3.832 GB, free: 32.24 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.001348/9.791, allocations: 2.76 MB / 3.834 GB, free: 29.37 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.264e-05/9.791, allocations: 12.17 kB / 3.834 GB, free: 29.37 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005965/9.791, allocations: 136.1 kB / 3.834 GB, free: 29.35 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001882/9.793, allocations: 314.6 kB / 3.835 GB, free: 29.35 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001136/9.794, allocations: 1.252 MB / 3.836 GB, free: 28.31 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001854/9.796, allocations: 152.7 kB / 3.836 GB, free: 28.29 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001939/9.796, allocations: 66.16 kB / 3.836 GB, free: 28.29 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.106e-05/9.797, allocations: 4.938 kB / 3.836 GB, free: 28.29 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003573/9.8, allocations: 1.69 MB / 3.838 GB, free: 28.22 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.635e-05/9.8, allocations: 7.281 kB / 3.838 GB, free: 28.22 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006117/9.801, allocations: 133.6 kB / 3.838 GB, free: 28.2 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001792/9.803, allocations: 310.2 kB / 3.838 GB, free: 28.2 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001109/9.804, allocations: 1.252 MB / 3.839 GB, free: 27.16 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001852/9.806, allocations: 154.7 kB / 3.84 GB, free: 27.14 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001845/9.806, allocations: 62.64 kB / 3.84 GB, free: 27.14 MB / 0.5261 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.0004793/9.806, allocations: 217.1 kB / 3.84 GB, free: 26.99 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002683/9.807, allocations: 144 kB / 3.84 GB, free: 26.92 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00708/9.814, allocations: 4.729 MB / 3.845 GB, free: 26.38 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.372e-05/9.814, allocations: 56.19 kB / 3.845 GB, free: 26.38 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.145e-06/9.814, allocations: 0 / 3.845 GB, free: 26.38 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005515/9.819, allocations: 3.956 MB / 3.849 GB, free: 25.91 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01038/9.83, allocations: 6.778 MB / 3.855 GB, free: 23.34 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.059e-05/9.83, allocations: 4 kB / 3.855 GB, free: 23.33 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001345/9.831, allocations: 252 kB / 3.855 GB, free: 23.32 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008283/9.832, allocations: 176.3 kB / 3.856 GB, free: 23.26 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001338/9.832, allocations: 32.72 kB / 3.856 GB, free: 23.25 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001107/9.833, allocations: 1.291 MB / 3.857 GB, free: 22.11 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.928e-06/9.833, allocations: 3.953 kB / 3.857 GB, free: 22.1 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006688/9.84, allocations: 4.237 MB / 3.861 GB, free: 20.22 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001242/9.841, allocations: 0.5547 MB / 3.862 GB, free: 19.86 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003715/9.842, allocations: 31.47 kB / 3.862 GB, free: 19.85 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001339/9.843, allocations: 131.5 kB / 3.862 GB, free: 19.81 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002342/9.843, allocations: 89.55 kB / 3.862 GB, free: 19.8 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001409/9.843, allocations: 42.75 kB / 3.862 GB, free: 19.79 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.001777/9.845, allocations: 0.9764 MB / 3.863 GB, free: 19.41 MB / 0.5261 GB Notification: Performance of sort global known variables: time 9.57e-07/9.845, allocations: 4 kB / 3.863 GB, free: 19.4 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.007761/9.853, allocations: 2.218 MB / 3.865 GB, free: 18.92 MB / 0.5261 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.0105/9.864, allocations: 2.392 MB / 3.867 GB, free: 18.29 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.006038/9.87, allocations: 3.048 MB / 3.87 GB, free: 17.1 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 8.584e-06/9.87, allocations: 4.312 kB / 3.87 GB, free: 17.09 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.002364/9.872, allocations: 1.422 MB / 3.872 GB, free: 16.32 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003583/9.876, allocations: 0.6356 MB / 3.872 GB, free: 15.86 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006628/9.882, allocations: 3.806 MB / 3.876 GB, free: 12.47 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001536/9.884, allocations: 1.725 MB / 3.878 GB, free: 11.07 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.004145/9.888, allocations: 1.732 MB / 3.879 GB, free: 10.05 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004218/9.888, allocations: 107.1 kB / 3.879 GB, free: 9.949 MB / 0.5261 GB Notification: Performance of SimCode: time 1.637e-06/9.889, allocations: 0 / 3.879 GB, free: 9.949 MB / 0.5261 GB Notification: Performance of Templates: time 0.4767/10.37, allocations: 67.97 MB / 3.946 GB, free: 69.37 MB / 0.5418 GB